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
254
decomp/DBCServer_Release_x64/full/functions/0x14014b020.c
Normal file
254
decomp/DBCServer_Release_x64/full/functions/0x14014b020.c
Normal file
|
|
@ -0,0 +1,254 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14014b020 FUN_14014b020
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_14014b020(undefined8 param_1,wchar_t *param_2)
|
||||
|
||||
{
|
||||
wchar_t *pwVar1;
|
||||
char cVar2;
|
||||
undefined8 uVar3;
|
||||
wchar_t *pwVar4;
|
||||
undefined1 local_res8;
|
||||
undefined1 uStackX_9;
|
||||
undefined2 uStackX_a;
|
||||
undefined4 uStackX_c;
|
||||
wchar_t *local_res10;
|
||||
wchar_t *local_res18;
|
||||
wchar_t *local_res20;
|
||||
|
||||
FUN_14016d8c0();
|
||||
local_res20 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
FUN_14016d8c0();
|
||||
local_res18 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
FUN_14016d8c0();
|
||||
local_res10 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
thunk_FUN_14016c760(param_1,&local_res20);
|
||||
pwVar4 = local_res20;
|
||||
if (local_res20 == (wchar_t *)0x0) {
|
||||
pwVar4 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
}
|
||||
wcscpy_s(param_2,0x10,pwVar4);
|
||||
FUN_14016e500(param_1,param_2 + 0x10);
|
||||
FUN_14016e500(param_1,param_2 + 0x18);
|
||||
FUN_14016e500(param_1,param_2 + 0x20);
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
param_2[0x28] = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
param_2[0x29] = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x2a) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
param_2[0x2c] = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x2d) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x2f) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
param_2[0x31] = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x32) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x34) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x36) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x38) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x3a) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x3c) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x3e) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
param_2[0x40] = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x41) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x43) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x45) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x47) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x49) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)(param_2 + 0x4b) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,1);
|
||||
if (cVar2 != '\0') {
|
||||
*(undefined1 *)(param_2 + 0x4d) = local_res8;
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,1);
|
||||
if (cVar2 != '\0') {
|
||||
*(undefined1 *)((longlong)param_2 + 0x9b) = local_res8;
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,1);
|
||||
if (cVar2 != '\0') {
|
||||
*(undefined1 *)(param_2 + 0x4e) = local_res8;
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0x9d) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0x9f) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xa1) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xa5) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xa9) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xad) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x10f) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0xb1) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0xb3) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xb5) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xb9) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
thunk_FUN_14016c760(param_1,&local_res18);
|
||||
pwVar4 = local_res18;
|
||||
if (local_res18 == (wchar_t *)0x0) {
|
||||
pwVar4 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
}
|
||||
wcscpy_s((wchar_t *)((longlong)param_2 + 0xbd),0x10,pwVar4);
|
||||
FUN_14016e500(param_1,(longlong)param_2 + 0xdd);
|
||||
FUN_14016e500(param_1,(longlong)param_2 + 0xed);
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xfd) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x101) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,8);
|
||||
if (cVar2 != '\0') {
|
||||
*(ulonglong *)((longlong)param_2 + 0x105) =
|
||||
CONCAT44(uStackX_c,CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8)));
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0x10d) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
thunk_FUN_14016c760(param_1,&local_res10);
|
||||
pwVar4 = local_res10;
|
||||
if (local_res10 == (wchar_t *)0x0) {
|
||||
pwVar4 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
}
|
||||
wcscpy_s((wchar_t *)((longlong)param_2 + 0x117),0x1e,pwVar4);
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,2);
|
||||
if (cVar2 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0x153) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
cVar2 = FUN_14016b370(param_1,&local_res8,4);
|
||||
pwVar4 = local_res10;
|
||||
if (cVar2 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x155) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
if (((local_res10 != (wchar_t *)0x0) && (local_res10 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
||||
(pwVar1 = local_res10 + -4, pwVar1 != (wchar_t *)0x0)) {
|
||||
uVar3 = FUN_14016d8c0();
|
||||
FUN_14016db50(uVar3);
|
||||
pwVar4 = pwVar4 + -2;
|
||||
*(int *)pwVar4 = *(int *)pwVar4 + -1;
|
||||
if (*(int *)pwVar4 == 0) {
|
||||
FUN_14016d970(pwVar1);
|
||||
}
|
||||
FUN_14016dbe0(uVar3);
|
||||
}
|
||||
pwVar4 = local_res18;
|
||||
local_res10 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
if (((local_res18 != (wchar_t *)0x0) && (local_res18 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
||||
(pwVar1 = local_res18 + -4, pwVar1 != (wchar_t *)0x0)) {
|
||||
uVar3 = FUN_14016d8c0();
|
||||
FUN_14016db50(uVar3);
|
||||
pwVar4 = pwVar4 + -2;
|
||||
*(int *)pwVar4 = *(int *)pwVar4 + -1;
|
||||
if (*(int *)pwVar4 == 0) {
|
||||
FUN_14016d970(pwVar1);
|
||||
}
|
||||
FUN_14016dbe0(uVar3);
|
||||
}
|
||||
pwVar4 = local_res20;
|
||||
if (((local_res20 != (wchar_t *)0x0) && (local_res20 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
||||
(pwVar1 = local_res20 + -4, pwVar1 != (wchar_t *)0x0)) {
|
||||
local_res18 = (wchar_t *)PTR_DAT_1403440a0;
|
||||
uVar3 = FUN_14016d8c0();
|
||||
FUN_14016db50(uVar3);
|
||||
pwVar4 = pwVar4 + -2;
|
||||
*(int *)pwVar4 = *(int *)pwVar4 + -1;
|
||||
if (*(int *)pwVar4 == 0) {
|
||||
FUN_14016d970(pwVar1);
|
||||
}
|
||||
FUN_14016dbe0(uVar3);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue