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
150
decomp/MessageServer_Release_x64/full/functions/0x14005bc00.c
Normal file
150
decomp/MessageServer_Release_x64/full/functions/0x14005bc00.c
Normal file
|
|
@ -0,0 +1,150 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x14005bc00 FUN_14005bc00
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
uint * FUN_14005bc00(uint *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
wchar_t *pwVar1;
|
||||
wchar_t *pwVar2;
|
||||
undefined8 uVar3;
|
||||
int *piVar4;
|
||||
uint *puVar5;
|
||||
wchar_t *_Dst;
|
||||
undefined8 *puVar6;
|
||||
undefined8 uVar7;
|
||||
wchar_t *_Src;
|
||||
undefined1 local_res8;
|
||||
undefined1 uStackX_9;
|
||||
undefined2 uStackX_a;
|
||||
undefined4 uStackX_c;
|
||||
wchar_t *local_res10;
|
||||
|
||||
FUN_1400d9a90(param_1,param_2);
|
||||
FUN_1400d9a90(param_1,param_2 + 2);
|
||||
FUN_1400d9a90(param_1,param_2 + 4);
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,2);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(ushort *)(param_2 + 6) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,2);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(ushort *)((longlong)param_2 + 0x52) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x54) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,8);
|
||||
if ((char)uVar3 != '\0') {
|
||||
param_2[0xb] = CONCAT44(uStackX_c,CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8)));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,2);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(ushort *)(param_2 + 0xc) = CONCAT11(uStackX_9,local_res8);
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,8);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(ulonglong *)((longlong)param_2 + 0x62) =
|
||||
CONCAT44(uStackX_c,CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8)));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x6a) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x6e) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x72) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x76) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x7a) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x7e) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x82) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x86) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x8a) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x8e) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,1);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(undefined1 *)((longlong)param_2 + 0x92) = local_res8;
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x93) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x97) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x9b) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0x9f) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xa3) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar3 = FUN_1400bc930(param_1,(undefined8 *)&local_res8,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xa7) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
uVar7 = 4;
|
||||
puVar6 = (undefined8 *)&local_res8;
|
||||
puVar5 = param_1;
|
||||
uVar3 = FUN_1400bc930(param_1,puVar6,4);
|
||||
if ((char)uVar3 != '\0') {
|
||||
*(uint *)((longlong)param_2 + 0xab) = CONCAT22(uStackX_a,CONCAT11(uStackX_9,local_res8));
|
||||
}
|
||||
FUN_14006cb70(puVar5,puVar6,uVar7,param_4);
|
||||
local_res10 = (wchar_t *)PTR_DAT_1401ac010;
|
||||
thunk_FUN_1400bda70(param_1,(longlong *)&local_res10,uVar7,param_4);
|
||||
_Src = local_res10;
|
||||
if (local_res10 == (wchar_t *)0x0) {
|
||||
_Src = (wchar_t *)PTR_DAT_1401ac010;
|
||||
}
|
||||
_Dst = (wchar_t *)((longlong)param_2 + 0x32);
|
||||
uVar3 = 0x10;
|
||||
wcscpy_s(_Dst,0x10,_Src);
|
||||
pwVar2 = local_res10;
|
||||
if (((local_res10 != (wchar_t *)0x0) && (local_res10 != (wchar_t *)PTR_DAT_1401ac010)) &&
|
||||
(pwVar1 = local_res10 + -4, pwVar1 != (wchar_t *)0x0)) {
|
||||
piVar4 = (int *)FUN_14006cb70(_Dst,uVar3,_Src,param_4);
|
||||
FUN_14006b350(piVar4);
|
||||
pwVar2 = pwVar2 + -2;
|
||||
*(int *)pwVar2 = *(int *)pwVar2 + -1;
|
||||
if (*(int *)pwVar2 == 0) {
|
||||
FUN_14006cc60(pwVar1);
|
||||
}
|
||||
FUN_14006b3e0((longlong)piVar4);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue