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
73
decomp/DBCServer_Release_x64/full/functions/0x1401c1660.c
Normal file
73
decomp/DBCServer_Release_x64/full/functions/0x1401c1660.c
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401c1660 FUN_1401c1660
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401c1660(longlong param_1,longlong param_2,longlong param_3)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
int iVar2;
|
||||
undefined8 *puVar3;
|
||||
longlong lVar4;
|
||||
longlong lVar5;
|
||||
undefined8 uVar6;
|
||||
undefined8 uVar7;
|
||||
undefined8 uVar8;
|
||||
uint local_res18 [2];
|
||||
undefined8 *local_res20;
|
||||
undefined1 local_80 [72];
|
||||
|
||||
puVar3 = operator_new(0x48);
|
||||
*puVar3 = 0;
|
||||
puVar3[1] = 0;
|
||||
puVar3[2] = 0;
|
||||
puVar3[3] = 0;
|
||||
puVar3[4] = 0;
|
||||
puVar3[5] = 0;
|
||||
puVar3[6] = 0;
|
||||
puVar3[7] = 0;
|
||||
puVar3[8] = 0;
|
||||
uVar8 = 0;
|
||||
uVar7 = uVar8;
|
||||
if (*(int *)(param_3 + 0x18) != 0) {
|
||||
uVar7 = *(undefined8 *)(param_3 + 0x10);
|
||||
}
|
||||
local_res20 = puVar3;
|
||||
iVar2 = FUN_1401e4a40(uVar7,*(int *)(param_3 + 0x18),puVar3);
|
||||
if (iVar2 != 0) {
|
||||
FUN_14016d300(local_80,L"%s fail: %d",L"Proud::CRsaKey::FromBlob");
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_80,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
uVar1 = *(uint *)(param_2 + 0x18);
|
||||
local_res18[0] = uVar1;
|
||||
local_res18[0] = (*DAT_14039d2f0)(puVar3[3]);
|
||||
FUN_14004f0e0(param_1,local_res18[0]);
|
||||
uVar7 = uVar8;
|
||||
if (*(int *)(param_1 + 0x18) != 0) {
|
||||
uVar7 = *(undefined8 *)(param_1 + 0x10);
|
||||
}
|
||||
if (*(int *)(param_2 + 0x18) != 0) {
|
||||
uVar8 = *(undefined8 *)(param_2 + 0x10);
|
||||
}
|
||||
lVar4 = FUN_1401c13e0();
|
||||
lVar5 = FUN_1401c13e0();
|
||||
uVar6 = FUN_1401c13e0();
|
||||
iVar2 = FUN_1401e54b0(uVar8,uVar1,uVar7,local_res18,0,0,uVar6,*(undefined4 *)(lVar5 + 0x1058),
|
||||
*(undefined4 *)(lVar4 + 0x105c),2,puVar3);
|
||||
if (iVar2 != 0) {
|
||||
FUN_14016d300(local_80,L"%s fail: %d",L"Proud::CRsa::EncryptSessionKeyByPublicKey",1);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_80,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
if (*(uint *)(param_1 + 0x18) < local_res18[0]) {
|
||||
FUN_14016d300(local_80,L"Encryption result is larger! Memory corruption may occur!");
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_80,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
FUN_14004f0e0(param_1);
|
||||
FUN_1401e49f0(puVar3);
|
||||
operator_delete(puVar3);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue