decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
49
decomp/DBCServer_Release_x64/full/functions/0x14004c310.c
Normal file
49
decomp/DBCServer_Release_x64/full/functions/0x14004c310.c
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004c310 FUN_14004c310
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 *
|
||||
FUN_14004c310(undefined8 *param_1,undefined8 *param_2,ulonglong param_3,ulonglong param_4)
|
||||
|
||||
{
|
||||
code *pcVar1;
|
||||
char cVar2;
|
||||
undefined8 *puVar3;
|
||||
ulonglong _Size;
|
||||
|
||||
if (param_3 <= (ulonglong)param_2[2]) {
|
||||
_Size = param_2[2] - param_3;
|
||||
if (param_4 < _Size) {
|
||||
_Size = param_4;
|
||||
}
|
||||
if (param_1 == param_2) {
|
||||
FUN_14004c270(param_1,_Size + param_3,0xffffffffffffffff);
|
||||
FUN_14004c270(param_1,0,param_3);
|
||||
}
|
||||
else {
|
||||
cVar2 = FUN_14004c600(param_1,_Size);
|
||||
if (cVar2 != '\0') {
|
||||
if (0xf < (ulonglong)param_2[3]) {
|
||||
param_2 = (undefined8 *)*param_2;
|
||||
}
|
||||
puVar3 = param_1;
|
||||
if (0xf < (ulonglong)param_1[3]) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
memcpy(puVar3,(void *)((longlong)param_2 + param_3),_Size);
|
||||
param_1[2] = _Size;
|
||||
puVar3 = param_1;
|
||||
if (0xf < (ulonglong)param_1[3]) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
*(undefined1 *)((longlong)puVar3 + _Size) = 0;
|
||||
}
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
std::_Xout_of_range("invalid string position");
|
||||
pcVar1 = (code *)swi(3);
|
||||
puVar3 = (undefined8 *)(*pcVar1)();
|
||||
return puVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue