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
50
decomp/DBCServer_Release_x64/full/functions/0x14004c670.c
Normal file
50
decomp/DBCServer_Release_x64/full/functions/0x14004c670.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004c670 FUN_14004c670
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_14004c670(undefined8 *param_1,undefined8 *param_2,size_t param_3)
|
||||
|
||||
{
|
||||
ulonglong uVar1;
|
||||
char cVar2;
|
||||
undefined8 *puVar3;
|
||||
|
||||
if (param_2 != (undefined8 *)0x0) {
|
||||
uVar1 = param_1[3];
|
||||
puVar3 = param_1;
|
||||
if (0xf < uVar1) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
if (puVar3 <= param_2) {
|
||||
puVar3 = param_1;
|
||||
if (0xf < uVar1) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
if (param_2 < (undefined8 *)((longlong)puVar3 + param_1[2])) {
|
||||
puVar3 = param_1;
|
||||
if (0xf < uVar1) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
puVar3 = (undefined8 *)
|
||||
FUN_14004c310(param_1,param_1,(longlong)param_2 - (longlong)puVar3,param_3);
|
||||
return puVar3;
|
||||
}
|
||||
}
|
||||
}
|
||||
cVar2 = FUN_14004c600(param_1,param_3);
|
||||
if (cVar2 != '\0') {
|
||||
puVar3 = param_1;
|
||||
if (0xf < (ulonglong)param_1[3]) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
memcpy(puVar3,param_2,param_3);
|
||||
param_1[2] = param_3;
|
||||
puVar3 = param_1;
|
||||
if (0xf < (ulonglong)param_1[3]) {
|
||||
puVar3 = (undefined8 *)*param_1;
|
||||
}
|
||||
*(undefined1 *)((longlong)puVar3 + param_3) = 0;
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue