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
138
decomp/DBCServer_Release_x64/full/functions/0x1401bcdb0.c
Normal file
138
decomp/DBCServer_Release_x64/full/functions/0x1401bcdb0.c
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401bcdb0 FUN_1401bcdb0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __chkstk replaced with injection: alloca_probe */
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
void FUN_1401bcdb0(wchar_t *param_1,uint param_2)
|
||||
|
||||
{
|
||||
wchar_t *_Src;
|
||||
errno_t eVar1;
|
||||
int iVar2;
|
||||
undefined1 auStack_1098 [32];
|
||||
uint local_1078;
|
||||
wchar_t local_1068;
|
||||
undefined1 local_1066 [4174];
|
||||
ulonglong local_18;
|
||||
undefined8 uStack_10;
|
||||
|
||||
uStack_10 = 0x1401bcdc0;
|
||||
local_18 = DAT_1403463c0 ^ (ulonglong)auStack_1098;
|
||||
eVar1 = _wcslwr_s(param_1,0x21);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
eVar1 = wcscpy_s(&local_1068,0x824,param_1 + 0x122);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
local_1078 = param_2;
|
||||
iVar2 = FUN_1401bcb60(&local_1068,param_1 + 0x122,param_1 + 0x122e,0x80);
|
||||
if (iVar2 != 0) {
|
||||
*(int *)(param_1 + 0x122e) = *(int *)(param_1 + 0x122e) + -1;
|
||||
eVar1 = wcscpy_s(&local_1068,0x824,param_1 + 0x1a3);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
local_1078 = param_2;
|
||||
iVar2 = FUN_1401bcb60(&local_1068,param_1 + 0x1a3,param_1 + 0x1230,0x80);
|
||||
if (iVar2 != 0) {
|
||||
*(int *)(param_1 + 0x1230) = *(int *)(param_1 + 0x1230) + -1;
|
||||
eVar1 = wcscpy_s(&local_1068,0x824,param_1 + 0x21);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
local_1078 = param_2;
|
||||
iVar2 = FUN_1401bcb60(&local_1068,param_1 + 0x21,param_1 + 0x122c,0x100);
|
||||
if (iVar2 != 0) {
|
||||
*(int *)(param_1 + 0x122c) = *(int *)(param_1 + 0x122c) + -1;
|
||||
eVar1 = wcscpy_s(&local_1068,0x824,param_1 + 0x224);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
local_1078 = param_2;
|
||||
iVar2 = FUN_1401bcb60(&local_1068,param_1 + 0x224,param_1 + 0x1232,0x800);
|
||||
if ((((iVar2 != 0) &&
|
||||
(*(int *)(param_1 + 0x1232) = *(int *)(param_1 + 0x1232) + -1, (param_2 & 0x20) == 0))
|
||||
&& (_Src = param_1 + 0xa25, _Src != (wchar_t *)0x0)) && (*_Src != L'\0')) {
|
||||
eVar1 = wcscpy_s(&local_1068,0x824,_Src);
|
||||
if (eVar1 != 0) {
|
||||
if (eVar1 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar1 == 0x16) || (eVar1 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar1 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
local_1078 = param_2;
|
||||
FUN_1401bcb60(local_1066,param_1 + 0xa26,param_1 + 0x1234,0x7ff);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue