667 lines
22 KiB
C
667 lines
22 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1400e5720 FUN_1400e5720
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
|
|
|
wchar_t * FUN_1400e5720(undefined8 *param_1,undefined8 *param_2)
|
|
|
|
{
|
|
undefined4 *puVar1;
|
|
IUnknown *pIVar2;
|
|
undefined6 uVar3;
|
|
IUnknown *This;
|
|
int iVar4;
|
|
HRESULT HVar5;
|
|
ULONG UVar6;
|
|
undefined8 *puVar7;
|
|
wchar_t *pwVar8;
|
|
longlong lVar9;
|
|
longlong *plVar10;
|
|
undefined8 uVar11;
|
|
undefined8 uVar12;
|
|
wchar_t *pwVar13;
|
|
char *riid;
|
|
short sVar14;
|
|
wchar_t *pwVar15;
|
|
char *ppvObject;
|
|
uint uVar16;
|
|
undefined1 auStackY_398 [32];
|
|
char local_358 [4];
|
|
int local_354;
|
|
uint local_350;
|
|
short local_34c;
|
|
short local_348;
|
|
longlong *local_340;
|
|
int local_338;
|
|
undefined8 local_330;
|
|
undefined4 local_328;
|
|
undefined2 uStack_324;
|
|
undefined1 uStack_322;
|
|
undefined2 uStack_321;
|
|
undefined7 uStack_31f;
|
|
undefined1 uStack_318;
|
|
undefined7 local_317;
|
|
undefined1 uStack_310;
|
|
undefined4 local_30f;
|
|
undefined4 local_30b;
|
|
undefined7 uStack_307;
|
|
undefined1 uStack_300;
|
|
undefined7 uStack_2ff;
|
|
undefined1 uStack_2f8;
|
|
wchar_t *local_2f0;
|
|
undefined8 *local_2e8;
|
|
wchar_t *local_2e0;
|
|
longlong *local_2d8;
|
|
LPUNKNOWN local_2d0;
|
|
IUnknown *local_2c8;
|
|
longlong *local_2c0;
|
|
undefined4 local_2b8;
|
|
undefined1 local_2a8 [24];
|
|
undefined1 local_290 [24];
|
|
undefined4 local_278;
|
|
undefined1 *local_270;
|
|
undefined4 local_268;
|
|
undefined8 local_260;
|
|
undefined1 *local_258;
|
|
wchar_t *local_248;
|
|
undefined8 *local_240;
|
|
undefined8 local_238;
|
|
undefined1 local_230;
|
|
undefined8 local_228;
|
|
undefined1 local_220;
|
|
wchar_t *local_218;
|
|
undefined8 local_210;
|
|
undefined1 local_208;
|
|
undefined8 local_200;
|
|
undefined1 local_1f8;
|
|
undefined8 local_1f0;
|
|
undefined1 local_1e8;
|
|
longlong *local_1e0;
|
|
undefined8 local_1d8;
|
|
undefined1 local_1d0;
|
|
undefined8 local_1c8;
|
|
undefined1 local_1c0;
|
|
undefined8 local_1b8;
|
|
undefined1 local_1b0;
|
|
undefined4 local_1a8;
|
|
undefined4 uStack_1a4;
|
|
undefined4 uStack_1a0;
|
|
undefined4 uStack_19c;
|
|
undefined4 local_198;
|
|
undefined4 uStack_194;
|
|
undefined4 uStack_190;
|
|
undefined4 uStack_18c;
|
|
undefined8 local_188;
|
|
undefined1 local_178 [16];
|
|
undefined1 local_168 [24];
|
|
undefined1 local_150 [24];
|
|
IID local_138;
|
|
undefined1 local_120 [24];
|
|
undefined1 local_108 [24];
|
|
longlong local_f0 [3];
|
|
undefined1 local_d8 [24];
|
|
undefined1 local_c0 [24];
|
|
undefined4 local_a8;
|
|
undefined4 uStack_a4;
|
|
undefined4 uStack_a0;
|
|
undefined4 uStack_9c;
|
|
undefined8 local_98;
|
|
undefined8 uStack_90;
|
|
undefined8 local_88;
|
|
ulonglong uStack_80;
|
|
undefined8 local_78;
|
|
undefined8 uStack_70;
|
|
undefined8 local_68;
|
|
undefined8 uStack_60;
|
|
undefined2 local_58;
|
|
undefined2 uStack_56;
|
|
undefined2 uStack_54;
|
|
undefined2 uStack_52;
|
|
undefined4 uStack_50;
|
|
undefined2 uStack_4c;
|
|
ulonglong local_48;
|
|
|
|
local_188 = 0xfffffffffffffffe;
|
|
local_48 = DAT_1403463c0 ^ (ulonglong)auStackY_398;
|
|
pwVar15 = (wchar_t *)0x0;
|
|
local_340 = (longlong *)0x0;
|
|
local_2e8 = param_1;
|
|
local_240 = param_2;
|
|
iVar4 = FUN_140001990(&local_340);
|
|
if ((iVar4 < 0) && (iVar4 != -0x7fffbffe)) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(iVar4);
|
|
}
|
|
local_2c8 = (IUnknown *)0x0;
|
|
local_2c0 = (longlong *)0x0;
|
|
Ordinal_8(local_2a8);
|
|
Ordinal_8(local_290);
|
|
pIVar2 = local_2c8;
|
|
if ((local_2c8 != (IUnknown *)0x0) && (local_2c8 = (IUnknown *)0x0, pIVar2 != (IUnknown *)0x0)) {
|
|
(*pIVar2->lpVtbl->Release)(pIVar2);
|
|
}
|
|
local_258 = &DAT_14029e010;
|
|
local_270 = &DAT_14029e010;
|
|
local_268 = 0;
|
|
local_260 = 0;
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
(*local_2c8->lpVtbl->Release)(local_2c8);
|
|
}
|
|
HVar5 = CoCreateInstance((IID *)&DAT_14029e088,(LPUNKNOWN)0x0,0x17,(IID *)&DAT_14029dfb0,
|
|
&local_2d0);
|
|
if (HVar5 < 0) {
|
|
LAB_1400e589d:
|
|
local_2c8 = (IUnknown *)0x0;
|
|
}
|
|
else {
|
|
HVar5 = OleRun(local_2d0);
|
|
if (-1 < HVar5) {
|
|
HVar5 = (*local_2d0->lpVtbl->QueryInterface)(local_2d0,(IID *)&DAT_14029e078,&local_2c8);
|
|
}
|
|
(*local_2d0->lpVtbl->Release)(local_2d0);
|
|
if (HVar5 < 0) goto LAB_1400e589d;
|
|
}
|
|
local_278 = 2;
|
|
local_2b8 = 1;
|
|
local_358[0] = '\x01';
|
|
local_328 = *(undefined4 *)(param_2 + 1);
|
|
local_330._4_4_ = (undefined4)((ulonglong)*param_2 >> 0x20);
|
|
local_330._0_4_ = CONCAT22(0x2354,(short)*param_2);
|
|
uStack_324 = 0x85;
|
|
local_30b = *(undefined4 *)((longlong)param_2 + 0x23);
|
|
local_30f = *(undefined4 *)((longlong)param_2 + 0x1f);
|
|
uStack_307 = (undefined7)*(undefined8 *)((longlong)param_2 + 0x27);
|
|
uStack_300 = (undefined1)((ulonglong)*(undefined8 *)((longlong)param_2 + 0x27) >> 0x38);
|
|
uStack_2ff = (undefined7)*(undefined8 *)((longlong)param_2 + 0x2f);
|
|
uStack_2f8 = (undefined1)((ulonglong)*(undefined8 *)((longlong)param_2 + 0x2f) >> 0x38);
|
|
uStack_322 = *(undefined1 *)((longlong)param_2 + 0xe);
|
|
uStack_31f = (undefined7)*(undefined8 *)((longlong)param_2 + 0xf);
|
|
uStack_318 = (undefined1)((ulonglong)*(undefined8 *)((longlong)param_2 + 0xf) >> 0x38);
|
|
local_317 = (undefined7)*(undefined8 *)((longlong)param_2 + 0x17);
|
|
uStack_310 = (undefined1)((ulonglong)*(undefined8 *)((longlong)param_2 + 0x17) >> 0x38);
|
|
local_354 = 0;
|
|
uStack_321._0_1_ = 0;
|
|
uStack_321._1_1_ = 0;
|
|
uVar16 = 0x39;
|
|
local_350 = 0x39;
|
|
pIVar2 = *(IUnknown **)*param_1;
|
|
if (pIVar2 != (IUnknown *)0x0) {
|
|
local_338 = 0;
|
|
UVar6 = (*pIVar2->lpVtbl[0xb].AddRef)(pIVar2);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e018);
|
|
}
|
|
if (local_338 != 0) goto LAB_1400e5ad0;
|
|
}
|
|
iVar4 = FUN_1400a80c0(param_1);
|
|
if (iVar4 == 0) {
|
|
FUN_1400a8040(param_1,param_2,0);
|
|
pIVar2 = local_2c8;
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
local_354 = 0;
|
|
UVar6 = (*local_2c8->lpVtbl[0x12].AddRef)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
pIVar2 = local_2c8;
|
|
if (local_354 != 0) {
|
|
if (local_2c8 == (IUnknown *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
UVar6 = (*local_2c8->lpVtbl[10].Release)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
}
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
(*local_2c8->lpVtbl->Release)(local_2c8);
|
|
local_2c8 = (IUnknown *)0x0;
|
|
}
|
|
}
|
|
local_260 = 0;
|
|
local_258 = &DAT_14029e010;
|
|
local_270 = &DAT_14029e010;
|
|
local_268 = 0;
|
|
local_278 = 0;
|
|
Ordinal_9(local_290);
|
|
Ordinal_9(local_2a8);
|
|
if (local_2c0 != (longlong *)0x0) {
|
|
(**(code **)(*local_2c0 + 0x10))();
|
|
}
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
(*local_2c8->lpVtbl->Release)(local_2c8);
|
|
}
|
|
if (local_340 != (longlong *)0x0) {
|
|
(**(code **)(*local_340 + 0x10))();
|
|
}
|
|
return (wchar_t *)0x0;
|
|
}
|
|
LAB_1400e5ad0:
|
|
puVar7 = (undefined8 *)FUN_140001f40(*param_1,&local_1e0);
|
|
FUN_140001700(&local_340,*puVar7,"dbo.up_read_guild_member");
|
|
if (local_1e0 != (longlong *)0x0) {
|
|
(**(code **)(*local_1e0 + 0x10))();
|
|
}
|
|
local_2d8 = local_f0;
|
|
local_1a8 = *(undefined4 *)((longlong)param_2 + 0xf);
|
|
uStack_1a4 = *(undefined4 *)((longlong)param_2 + 0x13);
|
|
uStack_1a0 = *(undefined4 *)((longlong)param_2 + 0x17);
|
|
uStack_19c = *(undefined4 *)((longlong)param_2 + 0x1b);
|
|
FUN_140063820(local_f0,&local_1a8);
|
|
pwVar8 = operator_new(0x18);
|
|
local_218 = pwVar15;
|
|
local_248 = pwVar8;
|
|
if (pwVar8 != (wchar_t *)0x0) {
|
|
pwVar8[4] = L'\0';
|
|
pwVar8[5] = L'\0';
|
|
pwVar8[6] = L'\0';
|
|
pwVar8[7] = L'\0';
|
|
pwVar8[8] = L'\x01';
|
|
pwVar8[9] = L'\0';
|
|
lVar9 = FUN_1402182d0("guild_id");
|
|
*(longlong *)pwVar8 = lVar9;
|
|
local_218 = pwVar8;
|
|
}
|
|
if (local_218 == (wchar_t *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x8007000e);
|
|
}
|
|
plVar10 = (longlong *)FUN_140001870(&local_340,local_178,&local_218,0xca);
|
|
local_2d8 = plVar10;
|
|
if (local_340 == (longlong *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
puVar7 = (undefined8 *)FUN_140001650(local_340,&local_248);
|
|
pIVar2 = (IUnknown *)*puVar7;
|
|
if (pIVar2 != (IUnknown *)0x0) {
|
|
UVar6 = (*pIVar2->lpVtbl[3].AddRef)(pIVar2);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029dfc0);
|
|
}
|
|
if (local_248 != (wchar_t *)0x0) {
|
|
(**(code **)(*(longlong *)local_248 + 0x10))();
|
|
}
|
|
if ((longlong *)*plVar10 != (longlong *)0x0) {
|
|
(**(code **)(*(longlong *)*plVar10 + 0x10))();
|
|
}
|
|
puVar7 = (undefined8 *)FUN_1400016c0(&local_340,&local_2d8);
|
|
This = local_2c8;
|
|
pIVar2 = (IUnknown *)*puVar7;
|
|
if (local_2c8 != pIVar2) {
|
|
local_2c8 = pIVar2;
|
|
if (pIVar2 != (IUnknown *)0x0) {
|
|
(*pIVar2->lpVtbl->AddRef)(pIVar2);
|
|
}
|
|
if (This != (IUnknown *)0x0) {
|
|
(*This->lpVtbl->Release)(This);
|
|
}
|
|
}
|
|
if (local_2d8 != (longlong *)0x0) {
|
|
(**(code **)(*local_2d8 + 0x10))();
|
|
}
|
|
pIVar2 = local_2c8;
|
|
if (local_2c8 == (IUnknown *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
local_34c = 0;
|
|
UVar6 = (*local_2c8->lpVtbl[6].Release)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
if (local_34c == -1) {
|
|
uStack_324 = 0x86;
|
|
pwVar15 = (wchar_t *)0x0;
|
|
sVar14 = uStack_321;
|
|
}
|
|
else {
|
|
while( true ) {
|
|
pIVar2 = local_2c8;
|
|
if (local_2c8 == (IUnknown *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
local_348 = 0;
|
|
UVar6 = (*local_2c8->lpVtbl[6].Release)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
if (local_348 == -1) break;
|
|
local_a8 = 0;
|
|
uStack_a4 = 0;
|
|
uStack_a0 = 0;
|
|
uStack_9c = 0;
|
|
local_58 = 0;
|
|
uStack_56 = 0;
|
|
uStack_54 = 0;
|
|
uStack_52 = 0;
|
|
uStack_50 = 0;
|
|
uStack_4c = 0;
|
|
local_98 = 0;
|
|
uStack_90 = 0;
|
|
local_88 = 0;
|
|
uStack_80 = 0;
|
|
local_78 = 0;
|
|
uStack_70 = 0;
|
|
local_68 = 0;
|
|
uStack_60 = 0;
|
|
uVar11 = FUN_140002290(&local_2c8,local_108,"character_id",local_358);
|
|
FUN_140063b70(uVar11,&local_198);
|
|
local_a8 = local_198;
|
|
uStack_a4 = uStack_194;
|
|
uStack_a0 = uStack_190;
|
|
uStack_9c = uStack_18c;
|
|
Ordinal_9(local_108);
|
|
uVar11 = FUN_140002290(&local_2c8,local_d8,"character_name",local_358);
|
|
FUN_140063de0(uVar11,&local_2f0);
|
|
FUN_14016d8c0();
|
|
pwVar8 = (wchar_t *)PTR_DAT_1403440a0;
|
|
if (PTR_DAT_1403440a0 == (undefined *)0x0) {
|
|
pwVar8 = pwVar15;
|
|
}
|
|
if (local_2f0 != (wchar_t *)PTR_DAT_1403440a0) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_1f8 = 0;
|
|
local_200 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_1f8 = 1;
|
|
if (((pwVar8 != (wchar_t *)0x0) && (pwVar8 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar8 + -4 != (wchar_t *)0x0)) {
|
|
uVar12 = FUN_14016d8c0();
|
|
local_230 = 0;
|
|
local_238 = uVar12;
|
|
FUN_14016db50(uVar12);
|
|
local_230 = 1;
|
|
pwVar13 = pwVar8 + -2;
|
|
*(int *)pwVar13 = *(int *)pwVar13 + -1;
|
|
if (*(int *)pwVar13 == 0) {
|
|
FUN_14016d970(pwVar8 + -4);
|
|
}
|
|
FUN_14016dbe0(uVar12);
|
|
local_230 = 0;
|
|
}
|
|
pwVar8 = local_2f0;
|
|
if (((local_2f0 != (wchar_t *)PTR_DAT_1403440a0) && (local_2f0 != (wchar_t *)0x0)) &&
|
|
(local_2f0 != (wchar_t *)0x8)) {
|
|
*(int *)(local_2f0 + -2) = *(int *)(local_2f0 + -2) + 1;
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_1f8 = 0;
|
|
}
|
|
pwVar13 = pwVar8;
|
|
if (pwVar8 == (wchar_t *)0x0) {
|
|
pwVar13 = (wchar_t *)PTR_DAT_1403440a0;
|
|
}
|
|
wcsncpy((wchar_t *)&local_98,pwVar13,0xf);
|
|
if (((pwVar8 != (wchar_t *)0x0) && (pwVar8 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar8 + -4 != (wchar_t *)0x0)) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_1c0 = 0;
|
|
local_1c8 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_1c0 = 1;
|
|
pwVar13 = pwVar8 + -2;
|
|
*(int *)pwVar13 = *(int *)pwVar13 + -1;
|
|
if (*(int *)pwVar13 == 0) {
|
|
FUN_14016d970(pwVar8 + -4);
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_1c0 = 0;
|
|
}
|
|
pwVar8 = local_2f0;
|
|
if (((local_2f0 != (wchar_t *)0x0) && (local_2f0 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar13 = local_2f0 + -4, pwVar13 != (wchar_t *)0x0)) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_220 = 0;
|
|
local_228 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_220 = 1;
|
|
pwVar8 = pwVar8 + -2;
|
|
*(int *)pwVar8 = *(int *)pwVar8 + -1;
|
|
if (*(int *)pwVar8 == 0) {
|
|
FUN_14016d970(pwVar13);
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_220 = 0;
|
|
}
|
|
local_2f0 = (wchar_t *)PTR_DAT_1403440a0;
|
|
Ordinal_9(local_d8);
|
|
uVar11 = FUN_140002290(&local_2c8,local_168,"alias_name",local_358);
|
|
FUN_140063de0(uVar11,&local_2e0);
|
|
FUN_14016d8c0();
|
|
pwVar8 = (wchar_t *)PTR_DAT_1403440a0;
|
|
if (PTR_DAT_1403440a0 == (undefined *)0x0) {
|
|
pwVar8 = pwVar15;
|
|
}
|
|
if (local_2e0 != (wchar_t *)PTR_DAT_1403440a0) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_1e8 = 0;
|
|
local_1f0 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_1e8 = 1;
|
|
if (((pwVar8 != (wchar_t *)0x0) && (pwVar8 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar8 + -4 != (wchar_t *)0x0)) {
|
|
uVar12 = FUN_14016d8c0();
|
|
local_208 = 0;
|
|
local_210 = uVar12;
|
|
FUN_14016db50(uVar12);
|
|
local_208 = 1;
|
|
pwVar13 = pwVar8 + -2;
|
|
*(int *)pwVar13 = *(int *)pwVar13 + -1;
|
|
if (*(int *)pwVar13 == 0) {
|
|
FUN_14016d970(pwVar8 + -4);
|
|
}
|
|
FUN_14016dbe0(uVar12);
|
|
local_208 = 0;
|
|
}
|
|
pwVar8 = local_2e0;
|
|
if (((local_2e0 != (wchar_t *)PTR_DAT_1403440a0) && (local_2e0 != (wchar_t *)0x0)) &&
|
|
(local_2e0 != (wchar_t *)0x8)) {
|
|
*(int *)(local_2e0 + -2) = *(int *)(local_2e0 + -2) + 1;
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_1e8 = 0;
|
|
}
|
|
pwVar13 = pwVar8;
|
|
if (pwVar8 == (wchar_t *)0x0) {
|
|
pwVar13 = (wchar_t *)PTR_DAT_1403440a0;
|
|
}
|
|
wcsncpy((wchar_t *)&local_78,pwVar13,0xf);
|
|
if (((pwVar8 != (wchar_t *)0x0) && (pwVar8 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar8 + -4 != (wchar_t *)0x0)) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_1d0 = 0;
|
|
local_1d8 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_1d0 = 1;
|
|
pwVar13 = pwVar8 + -2;
|
|
*(int *)pwVar13 = *(int *)pwVar13 + -1;
|
|
if (*(int *)pwVar13 == 0) {
|
|
FUN_14016d970(pwVar8 + -4);
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_1d0 = 0;
|
|
}
|
|
pwVar8 = local_2e0;
|
|
if (((local_2e0 != (wchar_t *)0x0) && (local_2e0 != (wchar_t *)PTR_DAT_1403440a0)) &&
|
|
(pwVar13 = local_2e0 + -4, pwVar13 != (wchar_t *)0x0)) {
|
|
uVar11 = FUN_14016d8c0();
|
|
local_1b0 = 0;
|
|
local_1b8 = uVar11;
|
|
FUN_14016db50(uVar11);
|
|
local_1b0 = 1;
|
|
pwVar8 = pwVar8 + -2;
|
|
*(int *)pwVar8 = *(int *)pwVar8 + -1;
|
|
if (*(int *)pwVar8 == 0) {
|
|
FUN_14016d970(pwVar13);
|
|
}
|
|
FUN_14016dbe0(uVar11);
|
|
local_1b0 = 0;
|
|
}
|
|
local_2e0 = (wchar_t *)PTR_DAT_1403440a0;
|
|
Ordinal_9(local_168);
|
|
uStack_80 = uStack_80 & 0xffffffffffff;
|
|
uStack_60 = uStack_60 & 0xffffffffffff;
|
|
uVar11 = FUN_140002290(&local_2c8,local_120,"grade",local_358);
|
|
FUN_140199590(uVar11);
|
|
local_58 = FUN_140063af0(uVar11);
|
|
Ordinal_9(local_120);
|
|
uVar11 = FUN_140002290(&local_2c8,local_c0,"class",local_358);
|
|
FUN_140199590(uVar11);
|
|
uStack_56 = FUN_140063af0(uVar11);
|
|
Ordinal_9(local_c0);
|
|
uVar11 = FUN_140002290(&local_2c8,local_150,"level",local_358);
|
|
FUN_140199590(uVar11);
|
|
uStack_54 = FUN_140063af0(uVar11);
|
|
Ordinal_9(local_150);
|
|
ppvObject = "LTime";
|
|
riid = (char *)&local_138;
|
|
uVar11 = FUN_140002290(&local_2c8,riid,"LTime",local_358);
|
|
FUN_140199590(uVar11);
|
|
uVar11 = FUN_14009f050(uVar11);
|
|
uStack_52 = (undefined2)uVar11;
|
|
uStack_50 = (undefined4)((ulonglong)uVar11 >> 0x10);
|
|
uStack_4c = (undefined2)((ulonglong)uVar11 >> 0x30);
|
|
Ordinal_9(&local_138);
|
|
lVar9 = (longlong)(int)uVar16;
|
|
puVar7 = (undefined8 *)(lVar9 + 0x130 + (longlong)param_1);
|
|
*puVar7 = CONCAT44(uStack_a4,local_a8);
|
|
puVar7[1] = CONCAT44(uStack_9c,uStack_a0);
|
|
puVar7 = (undefined8 *)(lVar9 + 0x140 + (longlong)param_1);
|
|
*puVar7 = local_98;
|
|
puVar7[1] = uStack_90;
|
|
puVar7 = (undefined8 *)(lVar9 + 0x150 + (longlong)param_1);
|
|
*puVar7 = local_88;
|
|
puVar7[1] = uStack_80;
|
|
puVar7 = (undefined8 *)(lVar9 + 0x160 + (longlong)param_1);
|
|
*puVar7 = local_78;
|
|
puVar7[1] = uStack_70;
|
|
puVar1 = (undefined4 *)(lVar9 + 0x170 + (longlong)param_1);
|
|
*puVar1 = (undefined4)local_68;
|
|
puVar1[1] = local_68._4_4_;
|
|
puVar1[2] = (undefined4)uStack_60;
|
|
puVar1[3] = uStack_60._4_4_;
|
|
*(ulonglong *)(lVar9 + 0x180 + (longlong)param_1) =
|
|
CONCAT26(uStack_52,CONCAT24(uStack_54,CONCAT22(uStack_56,local_58)));
|
|
*(undefined4 *)(lVar9 + 0x188 + (longlong)param_1) = uStack_50;
|
|
*(undefined2 *)(lVar9 + 0x18c + (longlong)param_1) = uStack_4c;
|
|
local_350 = uVar16 + 0x5e;
|
|
sVar14 = (short)local_354 + 1;
|
|
local_354 = CONCAT22((short)((uint)local_354 >> 0x10),sVar14);
|
|
uStack_321._0_1_ = (undefined1)sVar14;
|
|
uStack_321._1_1_ = (undefined1)((ushort)sVar14 >> 8);
|
|
if (50000 < local_350) {
|
|
uVar3 = local_330._2_6_;
|
|
local_330 = CONCAT62(local_330._2_6_,(short)local_350);
|
|
uVar11 = local_330;
|
|
riid = (char *)(param_1 + 0x26);
|
|
local_330._4_2_ = SUB62(uVar3,2);
|
|
local_330._6_2_ = SUB62(uVar3,4);
|
|
((IID *)riid)->Data1 = (undefined4)local_330;
|
|
((IID *)riid)->Data2 = local_330._4_2_;
|
|
((IID *)riid)->Data3 = local_330._6_2_;
|
|
param_1[0x27] =
|
|
CONCAT17((undefined1)uStack_321,CONCAT16(uStack_322,CONCAT24(uStack_324,local_328)));
|
|
param_1[0x28] = CONCAT71(uStack_31f,uStack_321._1_1_);
|
|
param_1[0x29] = CONCAT71(local_317,uStack_318);
|
|
param_1[0x2a] = CONCAT35((undefined3)local_30b,CONCAT41(local_30f,uStack_310));
|
|
param_1[0x2b] = CONCAT71(uStack_307,local_30b._3_1_);
|
|
param_1[0x2c] = CONCAT71(uStack_2ff,uStack_300);
|
|
*(undefined1 *)(param_1 + 0x2d) = uStack_2f8;
|
|
local_330 = uVar11;
|
|
uStack_321 = sVar14;
|
|
iVar4 = FUN_1400a7630(*(undefined8 *)(param_1[0x22] + 0xf0));
|
|
if (iVar4 == 0) {
|
|
ppvObject = "DB Result Queue push error";
|
|
riid = "DBResultQueue_Error.Log";
|
|
FUN_1400a6d80(param_1[0x23]);
|
|
}
|
|
local_350 = 0x39;
|
|
local_354 = 0;
|
|
sVar14 = 0;
|
|
}
|
|
pIVar2 = local_2c8;
|
|
uVar16 = local_350;
|
|
uStack_321 = sVar14;
|
|
if (local_2c8 == (IUnknown *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
HVar5 = (*local_2c8->lpVtbl[0xc].QueryInterface)(local_2c8,(IID *)riid,(void **)ppvObject);
|
|
if (HVar5 < 0) {
|
|
_com_issue_errorex(HVar5,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
}
|
|
sVar14 = uStack_321;
|
|
if (local_358[0] == '\0') {
|
|
uStack_324 = 0x87;
|
|
}
|
|
else {
|
|
pwVar15 = (wchar_t *)0x1;
|
|
}
|
|
}
|
|
uStack_321._1_1_ = (undefined1)((ushort)sVar14 >> 8);
|
|
uStack_321._0_1_ = (undefined1)sVar14;
|
|
local_330 = CONCAT62(local_330._2_6_,(short)uVar16);
|
|
param_1[0x26] = local_330;
|
|
param_1[0x27] =
|
|
CONCAT17((undefined1)uStack_321,CONCAT16(uStack_322,CONCAT24(uStack_324,local_328)));
|
|
param_1[0x28] = CONCAT71(uStack_31f,uStack_321._1_1_);
|
|
param_1[0x29] = CONCAT71(local_317,uStack_318);
|
|
param_1[0x2a] = CONCAT35((undefined3)local_30b,CONCAT41(local_30f,uStack_310));
|
|
param_1[0x2b] = CONCAT71(uStack_307,local_30b._3_1_);
|
|
param_1[0x2c] = CONCAT71(uStack_2ff,uStack_300);
|
|
*(undefined1 *)(param_1 + 0x2d) = uStack_2f8;
|
|
uStack_321 = sVar14;
|
|
iVar4 = FUN_1400a7630(*(undefined8 *)(param_1[0x22] + 0xf0));
|
|
if (iVar4 == 0) {
|
|
FUN_1400a6d80(param_1[0x23],"DBResultQueue_Error.Log","DB Result Queue push error");
|
|
}
|
|
pIVar2 = local_2c8;
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
local_350 = 0;
|
|
UVar6 = (*local_2c8->lpVtbl[0x12].AddRef)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
pIVar2 = local_2c8;
|
|
if (local_350 != 0) {
|
|
if (local_2c8 == (IUnknown *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
UVar6 = (*local_2c8->lpVtbl[10].Release)(local_2c8);
|
|
if ((int)UVar6 < 0) {
|
|
_com_issue_errorex(UVar6,pIVar2,(_GUID *)&DAT_14029e038);
|
|
}
|
|
}
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
(*local_2c8->lpVtbl->Release)(local_2c8);
|
|
local_2c8 = (IUnknown *)0x0;
|
|
}
|
|
}
|
|
local_260 = 0;
|
|
local_258 = &DAT_14029e010;
|
|
local_270 = &DAT_14029e010;
|
|
local_268 = 0;
|
|
local_278 = 0;
|
|
Ordinal_9(local_290);
|
|
Ordinal_9(local_2a8);
|
|
if (local_2c0 != (longlong *)0x0) {
|
|
(**(code **)(*local_2c0 + 0x10))();
|
|
}
|
|
if (local_2c8 != (IUnknown *)0x0) {
|
|
(*local_2c8->lpVtbl->Release)(local_2c8);
|
|
}
|
|
if (local_340 != (longlong *)0x0) {
|
|
(**(code **)(*local_340 + 0x10))();
|
|
}
|
|
return pwVar15;
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_140218220(0x80004003);
|
|
}
|
|
|