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
41
decomp/DBCServer_Release_x64/full/functions/0x14016ee50.c
Normal file
41
decomp/DBCServer_Release_x64/full/functions/0x14016ee50.c
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14016ee50 FUN_14016ee50
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14016ee50(wchar_t *param_1,int param_2,wchar_t *param_3,uint param_4)
|
||||
|
||||
{
|
||||
wchar_t wVar1;
|
||||
errno_t eVar2;
|
||||
longlong lVar3;
|
||||
wchar_t *pwVar4;
|
||||
|
||||
if (param_4 == 0xffffffff) {
|
||||
lVar3 = -1;
|
||||
pwVar4 = param_3;
|
||||
do {
|
||||
if (lVar3 == 0) break;
|
||||
lVar3 = lVar3 + -1;
|
||||
wVar1 = *pwVar4;
|
||||
pwVar4 = pwVar4 + 1;
|
||||
} while (wVar1 != L'\0');
|
||||
param_4 = ~(uint)lVar3;
|
||||
}
|
||||
eVar2 = wmemcpy_s(param_1,(longlong)param_2,param_3,(longlong)(int)param_4);
|
||||
if (eVar2 != 0) {
|
||||
if (eVar2 == 0xc) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x8007000e);
|
||||
}
|
||||
if ((eVar2 == 0x16) || (eVar2 == 0x22)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if (eVar2 != 0x50) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue