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
60
decomp/DBCServer_Release_x64/full/functions/0x14015c800.c
Normal file
60
decomp/DBCServer_Release_x64/full/functions/0x14015c800.c
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14015c800 FUN_14015c800
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_14015c800(undefined8 *param_1,ulonglong param_2)
|
||||
|
||||
{
|
||||
longlong lVar1;
|
||||
ulonglong uVar2;
|
||||
code *pcVar3;
|
||||
char cVar4;
|
||||
undefined8 *puVar5;
|
||||
|
||||
uVar2 = param_1[3];
|
||||
puVar5 = param_1;
|
||||
if (7 < uVar2) {
|
||||
puVar5 = (undefined8 *)*param_1;
|
||||
}
|
||||
if (puVar5 < (undefined8 *)((longlong)L" Sessoion" + 1)) {
|
||||
puVar5 = param_1;
|
||||
if (7 < uVar2) {
|
||||
puVar5 = (undefined8 *)*param_1;
|
||||
}
|
||||
if (L" Sessoion" < (wchar_t *)((longlong)puVar5 + param_1[2] * 2)) {
|
||||
puVar5 = param_1;
|
||||
if (7 < uVar2) {
|
||||
puVar5 = (undefined8 *)*param_1;
|
||||
}
|
||||
puVar5 = (undefined8 *)
|
||||
FUN_14015adb0(param_1,param_1,(longlong)L" Sessoion" - (longlong)puVar5 >> 1,param_2)
|
||||
;
|
||||
return puVar5;
|
||||
}
|
||||
}
|
||||
if (param_2 < -param_1[2] - 1) {
|
||||
if (param_2 != 0) {
|
||||
lVar1 = param_1[2] + param_2;
|
||||
cVar4 = FUN_140055fc0(param_1,lVar1);
|
||||
if (cVar4 != '\0') {
|
||||
puVar5 = param_1;
|
||||
if (7 < (ulonglong)param_1[3]) {
|
||||
puVar5 = (undefined8 *)*param_1;
|
||||
}
|
||||
memcpy((void *)((longlong)puVar5 + param_1[2] * 2),L" Sessoion",param_2 * 2);
|
||||
param_1[2] = lVar1;
|
||||
puVar5 = param_1;
|
||||
if (7 < (ulonglong)param_1[3]) {
|
||||
puVar5 = (undefined8 *)*param_1;
|
||||
}
|
||||
*(undefined2 *)((longlong)puVar5 + lVar1 * 2) = 0;
|
||||
}
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
std::_Xlength_error("string too long");
|
||||
pcVar3 = (code *)swi(3);
|
||||
puVar5 = (undefined8 *)(*pcVar3)();
|
||||
return puVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue