Function at 0x403140
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x128
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x144]
push ebx
mov ebx, ecx
cmp dword [ebx + 0x2c], 0
mov ecx, dword [esp + 0x144]
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jne 0x4031f4
push 4
mov dword [ebx + 0x2c], 1
call fcn.00405c2e
mov dword [ebx + 0x30], eax
push 4
mov dword [eax], 1
call fcn.00405c2e
mov dword [ebx + 0x38], eax
push 4
mov dword [eax], 0
call fcn.00405c2e
mov dword [ebx + 0x34], eax
mov eax, str.dbprocore.dll
add esp, 0xc
lea esi, [eax + 1]
jmp 0x4031c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4031c0
sub eax, esi
add eax, 1
push eax
call fcn.00405c2e
mov ecx, dword [ebx + 0x34]
mov dword [ecx], eax
mov edx, dword [ebx + 0x34]
mov edx, dword [edx]
add esp, 4
mov ecx, str.dbprocore.dll
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4031e6
mov ecx, ebx
call fcn.00403070
mov byte [esp + 0xb], al
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x40324d
xor esi, esi
test eax, eax
jbe 0x40324d
lea esp, [esp]
mov eax, dword [ebx + 0x30]
cmp dword [eax + esi*4], 0xff
jg 0x403234
mov ecx, dword [ebx + 0x34]
mov eax, dword [ecx + esi*4]
push str.DBProBasic3DDebug.dll
push eax
call fcn.0041163b
add esp, 8
test eax, eax
je 0x40323e
add esi, 1
cmp esi, dword [ebx + 0x2c]
jb 0x403210
jmp 0x40324d
cmp byte [esp + 0xb], 0
jne 0x40324d
mov byte [esp + 0x144], 0
mov edx, dword [ebx + 0x1c]
push ebp
push edi
push 0x104
push edx
call fcn.004061c6
mov eax, dword [ebx + 0x20]
push eax
call fcn.004062d6
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
cmp byte [esp + 0x14c], 1
jne 0x403bab
cmp byte [esp + 0x158], 0
jne 0x4032ac
push 0x400
push 0
push 0x41a878
call fcn.00406fd0
push 0x100
push 0
push 0x41a728
call fcn.00406fd0
add esp, 0x18
xor eax, eax
cmp dword [ebx + 0x2c], eax
mov dword [esp + 0x28], eax
jbe 0x403bab
jmp 0x4032c0
mov ecx, dword [ebx + 0x30]
mov esi, dword [ecx + eax*4]
cmp esi, 0xff
mov dword [esp + 0x14], esi
jg 0x403b25
mov edx, dword [ebx + 0x38]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
jne 0x403b25
mov dword [ecx], 1
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx + eax*4]
push 0x415b84
push edi
mov dword [esp + 0x2c], edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403314
mov dword [esi*4 + 0x41a878], eax
jmp 0x40347c
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403320
sub eax, edx
lea edx, [eax + eax + 0x100]
push edx
call fcn.00405c2e
mov esi, eax
mov edx, esi
add esp, 4
mov dword [esp + 0x18], esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403347
push esi
mov ecx, ebx
call fcn.00402dd0
test al, al
jne 0x4033c4
mov eax, dword [str...plugins_user_]
mov dword [esi], eax
mov ecx, dword [0x415b74]
mov dword [esi + 4], ecx
mov edx, dword [0x415b78]
mov dword [esi + 8], edx
mov eax, dword [0x415b7c]
mov dword [esi + 0xc], eax
mov cl, byte [0x415b80]
mov byte [esi + 0x10], cl
mov eax, edi
jmp 0x403390
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403390
sub eax, edi
mov edx, edi
add esi, 0xffffffff
mov cl, byte [esi + 1]
add esi, 1
test cl, cl
jne 0x4033a0
mov edi, esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push esi
mov ecx, ebx
call fcn.00402dd0
test al, al
jne 0x403439
mov edx, dword [str...plugins_licensed_]
mov dword [esi], edx
mov eax, dword [0x415b5c]
mov dword [esi + 4], eax
mov ecx, dword [0x415b60]
mov dword [esi + 8], ecx
mov edx, dword [0x415b64]
mov dword [esi + 0xc], edx
mov eax, dword [0x415b68]
mov dword [esi + 0x10], eax
mov cl, byte [0x415b6c]
mov byte [esi + 0x14], cl
mov eax, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403405
sub eax, edi
mov edx, edi
add esi, 0xffffffff
mov cl, byte [esi + 1]
add esi, 1
test cl, cl
jne 0x403415
mov edi, esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push esi
mov ecx, ebx
call fcn.00402dd0
test al, al
je 0x403aab
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov edx, dword [esp + 0x14]
mov dword [edx*4 + 0x41a878], eax
je 0x403b3b
push str._ReceiveCoreDataPtr__YAXPAX_Z
push eax
call ebp
test esi, esi
je 0x403478
push esi
call fcn.004062d1
add esp, 4
mov esi, dword [esp + 0x14]
push str.dbprocore.dll
push edi
mov byte [esp + 0x1b], 0
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4035b2
mov eax, dword [esp + 0x14]
mov esi, dword [eax*4 + 0x41a878]
push str._PassCmdLineHandlerPtr__YAXPAX_Z
push esi
call ebp
push str._PassErrorHandlerPtr__YAXPAX_Z
push esi
mov dword [0x41ac90], eax
call ebp
push str._PassEscapePtr__YAXPAX_Z
push esi
mov dword [0x41a850], eax
call ebp
push str._PassBreakOutPtr__YAXPAX_Z
push esi
mov dword [0x41a868], eax
call ebp
push str._PassDataStatementPtr__YAXPAD0_Z
push esi
mov dword [0x41a854], eax
call ebp
push str._InitDisplay__YAKKKKKPAUHINSTANCE____PAD_Z
push esi
mov dword [0x41a830], eax
call ebp
push str._CloseDisplay__YAKXZ
push esi
mov dword [0x41a838], eax
call ebp
push str._PassDLLs__YAXXZ
push esi
mov dword [0x41ac8c], eax
call ebp
push str._ConstructDLLs__YAXXZ
push esi
mov dword [0x41a858], eax
call ebp
push str._GetGlobPtr__YAKXZ
push esi
mov dword [0x41a85c], eax
call ebp
push str._CreateVariableSpace__YAKK_Z
push esi
mov dword [0x41a828], eax
call ebp
push str._DeleteVariableSpace__YAXXZ
push esi
mov dword [0x41a870], eax
call ebp
push str._CreateDataSpace__YAKK_Z
push esi
mov dword [0x41a864], eax
call ebp
push str._DeleteDataSpace__YAXXZ
push esi
mov dword [0x41a83c], eax
call ebp
push str._DeleteSingleVariableAllocation__YAXPAK_Z
push esi
mov dword [0x41ac98], eax
call ebp
push str._UnDimDD__YAKK_Z
push esi
mov dword [0x41a86c], eax
call ebp
push str._Sync__YAXXZ
push esi
mov dword [0x41a844], eax
call ebp
push str._GetSecurityCode__YAHXZ
push esi
mov dword [0x41a82c], eax
call ebp
push str._WipeSecurityCode__YAXXZ
push esi
mov dword [0x41ac78], eax
call ebp
mov dword [0x41a834], eax
mov eax, dword [0x41a828]
test eax, eax
je 0x4035a9
call eax
mov dword [0x41acc4], eax
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
push str.DBProSetupDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4035d9
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x30], ecx
mov byte [esp + 0x13], 1
push str.DBProBasic2DDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403600
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x38], eax
mov byte [esp + 0x13], 1
push str.DBProTextDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403626
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x34], edx
mov byte [esp + 0x13], 1
push str.DBProSpritesDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40368e
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x3c], ecx
mov eax, dword [0x41acc4]
mov ecx, dword [eax + 0x3c]
push str._Constructor__YAXPAUHINSTANCE____0_Z
push ecx
call ebp
mov edx, dword [0x41acc4]
mov dword [0x41a840], eax
mov eax, dword [edx + 0x3c]
push str._Destructor__YAXXZ
push eax
call ebp
mov ecx, dword [0x41acc4]
mov dword [0x41a84c], eax
mov edx, dword [ecx + 0x3c]
push str._Update__YAXXZ
push edx
call ebp
mov dword [0x41a874], eax
mov byte [esp + 0x13], 1
push str.DBProImageDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4036e1
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x40], eax
mov edx, dword [0x41acc4]
mov eax, dword [edx + 0x40]
push str._Constructor__YAXPAUHINSTANCE_____Z
push eax
call ebp
mov ecx, dword [0x41acc4]
mov dword [0x41a860], eax
mov edx, dword [ecx + 0x40]
push str._Destructor__YAXXZ
push edx
call ebp
mov dword [0x41a848], eax
mov byte [esp + 0x13], 1
push str.DBProInputDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403708
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x44], eax
mov byte [esp + 0x13], 1
push str.DBProSystemDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40372e
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x48], edx
mov byte [esp + 0x13], 1
push str.DBProSoundDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403758
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x98], ecx
mov byte [esp + 0x13], 1
push str.DBProMusicDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403782
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x9c], eax
mov byte [esp + 0x13], 1
push str.DBProFileDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4037a8
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x4c], edx
mov byte [esp + 0x13], 1
push str.DBProFTPDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4037cf
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x50], ecx
mov byte [esp + 0x13], 1
push str.DBProMemblocksDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4037f6
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x54], eax
mov byte [esp + 0x13], 1
push str.DBProAnimationDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40381c
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x5c], edx
mov byte [esp + 0x13], 1
push str.DBProBitmapDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403843
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x58], ecx
mov byte [esp + 0x13], 1
push str.DBProMultiplayerDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40386a
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x60], eax
mov byte [esp + 0x13], 1
push str.DBProCameraDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403890
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x68], edx
mov byte [esp + 0x13], 1
push str.DBProLightDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4038b7
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x70], ecx
mov byte [esp + 0x13], 1
push str.DBProMatrixDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4038de
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x6c], eax
mov byte [esp + 0x13], 1
push str.DBProBasic3DDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403904
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x64], edx
mov byte [esp + 0x13], 1
push str.DBProWorld3DDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40392b
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x74], ecx
mov byte [esp + 0x13], 1
push str.DBProQ2BSPDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403955
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0xa4], eax
mov byte [esp + 0x13], 1
push str.DBProOwnBSPDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x40397e
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0xa8], edx
mov byte [esp + 0x13], 1
push str.DBProBSPCompilerDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4039a8
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0xac], ecx
mov byte [esp + 0x13], 1
push str.DBProParticlesDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4039cf
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x78], eax
mov byte [esp + 0x13], 1
push str.DBProPrimObjectDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4039f5
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0x7c], edx
mov byte [esp + 0x13], 1
push str.DBProVectorsDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403a1f
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0x80], ecx
mov byte [esp + 0x13], 1
push str.DBProLODTerrainDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403a49
mov eax, dword [esi*4 + 0x41a878]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0xa0], eax
mov byte [esp + 0x13], 1
push str.DBProCSGDebug.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403a72
mov edx, dword [esi*4 + 0x41a878]
mov eax, dword [0x41acc4]
mov dword [eax + 0xb0], edx
mov byte [esp + 0x13], 1
push str.IGL.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403a97
mov ecx, dword [esi*4 + 0x41a878]
mov edx, dword [0x41acc4]
mov dword [edx + 0xb4], ecx
cmp byte [esp + 0x13], 0
jne 0x403b25
mov byte [esi + 0x41a728], 1
jmp 0x403b25
push str.ConvX.dll
push edi
mov byte [esp + 0x1b], 0
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403ac7
mov byte [esp + 0x13], 1
push str.Conv3DS.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403ade
mov byte [esp + 0x13], 1
push str.ConvMDL.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403af5
mov byte [esp + 0x13], 1
push str.ConvMD2.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x403b0c
mov byte [esp + 0x13], 1
push str.ConvMD3.dll
push edi
call fcn.0041163b
add esp, 8
test eax, eax
je 0x403b25
cmp byte [esp + 0x13], 0
je 0x403b6c
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [ebx + 0x2c]
mov dword [esp + 0x28], eax
jb 0x4032c0
jmp 0x403bab
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x403b53
push 0x400
call fcn.00405c2e
add esp, 4
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
push esi
push eax
push str.Failed_to_load_DLL___d:__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x403b96
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x403b84
push 0x400
call fcn.00405c2e
add esp, 4
mov dword [edi], eax
mov edx, dword [edi]
push esi
push str.Could_not_find_a_DLL___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test esi, esi
je 0x403ba3
push esi
call fcn.004062d1
add esp, 4
mov byte [esp + 0x14c], 0
mov edx, dword [0x41acc4]
test edx, edx
je 0x403c0c
mov ecx, dword [ebx + 0x20]
add edx, 0x139
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x403bc0
mov eax, dword [ebx + 0x24]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x244], eax
mov edx, dword [ebx + 0x28]
mov eax, dword [0x41acc4]
mov dword [eax + 0x240], edx
mov ecx, dword [0x41acc4]
mov edx, dword [ecx + 0x25c]
push 0x65
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x270], eax
cmp byte [esp + 0x14c], 1
jne 0x403f87
cmp byte [esp + 0x158], 0
mov byte [esp + 0x13], 0
jne 0x403e72
mov edx, dword [esp + 0x20]
push edx
call dword [0x41ac90]
lea eax, [ebx + 0x4c]
push eax
call dword [0x41a850]
push 0x41aca0
call dword [0x41a868]
push 0x41aca4
call dword [0x41a854]
add esp, 0x10
call dword [0x41a858]
mov eax, dword [0x41ac78]
test eax, eax
mov dword [esp + 0x20], 0xffffffff
je 0x403c78
call eax
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x18], 0
jbe 0x403df7
lea ebx, [ebx]
mov ecx, dword [ebx + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
cmp eax, 0xff
mov dword [esp + 0x14], eax
jg 0x403de3
cmp byte [eax + 0x41a728], 1
jne 0x403de3
mov esi, eax
mov ecx, dword [esi*4 + 0x41a878]
push str._Constructor__YAXXZ
push ecx
call ebp
test eax, eax
je 0x403ccd
call eax
mov edx, dword [esi*4 + 0x41a878]
push str._OptionalSecurityCode__YAXH_Z
push edx
call ebp
test eax, eax
je 0x403cea
mov ecx, dword [esp + 0x20]
push ecx
call eax
add esp, 4
mov edx, dword [esi*4 + 0x41a878]
push str._GetNumDependencies__YAHXZ
xor edi, edi
push edx
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
je 0x403d0b
call eax
mov edi, eax
mov dword [esp + 0x24], eax
mov eax, dword [esi*4 + 0x41a878]
push str._ReceiveDependenciesHinstance__YAXPADPAUHINSTANCE_____Z
push eax
call ebp
test edi, edi
mov dword [esp + 0x30], eax
jle 0x403de3
cmp dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jle 0x403de3
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx*4 + 0x41a878]
push str._GetDependencyID__YAPBDH_Z
push edx
call ebp
mov ecx, dword [esp + 0x28]
push ecx
call eax
add esp, 4
lea edx, [esp + 0x34]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x403d61
xor esi, esi
cmp dword [ebx + 0x2c], esi
jbe 0x403dce
jmp 0x403d80
mov ecx, dword [ebx + 0x30]
mov edi, dword [ecx + esi*4]
cmp edi, 0xff
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + esi*4]
jg 0x403da6
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0041163b
add esp, 8
test eax, eax
je 0x403db0
add esi, 1
cmp esi, dword [ebx + 0x2c]
jb 0x403d80
jmp 0x403dce
mov edi, dword [edi*4 + 0x41a878]
test edi, edi
je 0x403dce
mov eax, dword [esp + 0x30]
test eax, eax
je 0x403dce
lea ecx, [esp + 0x34]
push edi
push ecx
call eax
add esp, 8
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x403d40
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ebx + 0x2c]
mov dword [esp + 0x18], eax
jb 0x403c90
mov eax, dword [0x41acc4]
cmp dword [eax + 0x398], 0
jne 0x403e65
mov dword [eax + 0x394], 0x500
mov edx, dword [0x41acc4]
mov eax, dword [edx + 0x394]
push eax
call fcn.00405c2e
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x398], eax
mov edx, dword [0x41acc4]
mov edi, dword [edx + 0x398]
mov ecx, 0x100
mov esi, 0x41a878
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x41acc4]
mov edi, dword [eax + 0x398]
add esp, 4
add edi, 0x400
mov ecx, 0x40
mov esi, 0x41a728
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x41a834]
test eax, eax
je 0x403e89
call eax
jmp 0x403e89
call dword [0x41a858]
mov ecx, dword [0x41acb0]
mov edx, dword [0x41acc4]
cmp ecx, dword [edx + 0x30]
je 0x403e8e
mov byte [esp + 0x13], 1
cmp byte [esp + 0x13], 1
mov eax, dword [0x41acc4]
mov dword [eax + 0x330], 0x41acb8
jne 0x403f17
mov eax, dword [0x41a674]
test eax, eax
je 0x403ecc
mov ecx, dword [0x41acc4]
mov dword [ecx + 0x280], eax
mov edx, dword [0x41acc4]
mov eax, dword [0x41a670]
mov dword [edx + 0x258], eax
jmp 0x403ee6
mov eax, dword [0x41a670]
test eax, eax
je 0x403ee6
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x41a670], 0
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
mov edx, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
push eax
call dword [0x41a838]
add esp, 0x18
cmp eax, 1
jne 0x403f17
mov byte [esp + 0x14c], 0
jmp 0x403f87
mov al, byte [esp + 0x158]
test al, al
jne 0x403f6f
xor esi, esi
cmp dword [ebx + 0x2c], esi
jbe 0x403f79
lea esp, [esp]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + esi*4]
cmp eax, 0xff
jg 0x403f65
cmp byte [eax + 0x41a728], 1
jne 0x403f65
mov edx, dword [eax*4 + 0x41a878]
push str._ReceiveCoreDataPtr__YAXPAX_Z
push edx
call ebp
test eax, eax
je 0x403f65
mov ecx, dword [0x41acc4]
push ecx
call eax
add esp, 4
add esi, 1
cmp esi, dword [ebx + 0x2c]
jb 0x403f30
jmp 0x403f79
cmp al, 1
jne 0x403f79
call dword [0x41a85c]
mov edx, dword [0x41acc4]
mov eax, dword [edx + 0x30]
mov dword [0x41acb0], eax
cmp byte [esp + 0x158], 0
jne 0x40407c
cmp byte [esp + 0x14c], 1
jne 0x4041c3
cmp dword [ebx + 0x90], 0
jne 0x403fb6
mov dword [ebx + 0x90], 1
mov ecx, dword [ebx + 0x90]
push ecx
call dword [0x41a870]
mov edx, dword [ebx + 0x90]
push edx
push 0
push eax
mov dword [ebx + 0x94], eax
call fcn.00406fd0
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebx + 0x9c]
add esp, 0x10
test eax, eax
jbe 0x4041c3
push eax
call dword [0x41a83c]
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ebx + 0x84]
push ecx
push edx
push eax
mov dword [ebx + 0xa0], eax
call fcn.004068f0
mov eax, dword [ebx + 0x9c]
mov dword [ebx + 0x98], eax
xor eax, eax
add esp, 0x10
cmp dword [ebx + 0x80], eax
jbe 0x40405e
xor ecx, ecx
mov edx, dword [ebx + 0x84]
cmp byte [ecx + edx], 2
jne 0x404050
mov edx, dword [ebx + 0x88]
mov esi, dword [ebx + 0xa0]
mov edx, dword [edx + eax*4]
mov dword [ecx + esi + 2], edx
add eax, 1
add ecx, 0xa
cmp eax, dword [ebx + 0x80]
jb 0x404031
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x9c]
add ecx, eax
push ecx
push eax
call dword [0x41a830]
add esp, 8
jmp 0x4041c3
cmp byte [esp + 0x14c], 1
jne 0x4041c3
cmp dword [ebx + 0x90], 0
jbe 0x4040fa
mov edx, dword [ebx + 0x8c]
push edx
call fcn.00405c2e
mov ecx, dword [ebx + 0x94]
mov esi, eax
mov eax, dword [ebx + 0x8c]
push eax
push ecx
push esi
call fcn.004068f0
call dword [0x41a864]
mov edx, dword [ebx + 0x90]
push edx
call dword [0x41a870]
mov edi, eax
mov eax, dword [ebx + 0x8c]
push eax
push esi
push edi
call fcn.004068f0
mov ecx, dword [ebx + 0x90]
add esp, 0x20
test esi, esi
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x94], edi
je 0x4040fa
push esi
call fcn.004062d1
add esp, 4
cmp dword [ebx + 0x9c], 0
jbe 0x4041c3
mov edx, dword [ebx + 0x98]
push edx
call fcn.00405c2e
mov ecx, dword [ebx + 0xa0]
mov edi, eax
mov eax, dword [ebx + 0x98]
push eax
push ecx
push edi
call fcn.004068f0
call dword [0x41ac98]
mov edx, dword [ebx + 0x9c]
push edx
call dword [0x41a83c]
mov esi, eax
mov eax, dword [ebx + 0x98]
push eax
push edi
push esi
call fcn.004068f0
mov ecx, dword [ebx + 0x9c]
xor eax, eax
add esp, 0x20
cmp dword [ebx + 0x80], eax
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0xa0], esi
jbe 0x40419d
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [ebx + 0x84]
cmp byte [ecx + edx], 2
jne 0x40418f
mov edx, dword [ebx + 0x88]
mov esi, dword [ebx + 0xa0]
mov edx, dword [edx + eax*4]
mov dword [ecx + esi + 2], edx
add eax, 1
add ecx, 0xa
cmp eax, dword [ebx + 0x80]
jb 0x404170
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x9c]
add ecx, eax
push ecx
push eax
call dword [0x41a830]
add esp, 8
test edi, edi
je 0x4041c3
push edi
call fcn.004062d1
add esp, 4
xor eax, eax
cmp byte [esp + 0x14c], 1
jne 0x404455
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405c2e
xor edi, edi
add esp, 4
cmp dword [ebx + 0x3c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
jbe 0x404412
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + edi*4]
test eax, eax
jle 0x4043fe
cmp eax, 1
mov ecx, dword [ebx + 0x48]
mov esi, dword [ecx + edi*4]
jne 0x404321
mov edx, dword [ebx + 0x70]
mov eax, dword [edx + esi*4]
mov ecx, dword [ebx + 0x74]
mov edx, dword [ecx + esi*4]
mov dword [esp + 0x2c], eax
mov eax, dword [eax*4 + 0x41a878]
test eax, eax
mov dword [esp + 0x18], edx
jne 0x4042a9
mov esi, edx
push str.DHookS
push esi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x404260
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x14]
mov dword [ecx + edi*4], eax
push str.DHookJ
push esi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x404280
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
mov dword [eax + edi*4], edx
push str.DHookR
push esi
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x4043fe
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], ecx
jmp 0x4043fe
mov ecx, dword [esp + 0x18]
push ecx
push eax
call ebp
test eax, eax
je 0x4042c1
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], eax
jmp 0x4043fe
mov eax, dword [esp + 0x1c]
mov byte [0x41ac9c], 0
cmp dword [eax], 0
mov edi, dword [ebx + 0x3c]
jne 0x4042e7
push 0x400
call fcn.00405c2e
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
add eax, 0xffffffff
jns 0x4042f2
xor eax, eax
mov edx, dword [ebx + 0x34]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
push esi
push ecx
push str.Could_not_find_function__s_in__d:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov byte [esp + 0x14c], 0
jmp 0x4043fe
cmp eax, 2
jne 0x40437c
mov ecx, dword [ebx + 0x7c]
mov esi, dword [ecx + esi*4]
test esi, esi
je 0x40433c
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], esi
jmp 0x4043fe
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x404358
push 0x400
call fcn.00405c2e
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x1c]
mov edi, dword [edx]
mov ecx, 0xc
mov esi, str.Could_not_find_dynamic_string_during_referencing
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x14c], 0
jmp 0x4043fe
cmp eax, 3
jne 0x4043ca
cmp esi, 4
jne 0x40438b
lea eax, [ebx + 0x4c]
jmp 0x4043f7
cmp esi, 8
jne 0x40439d
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], 0x41aca0
jmp 0x4043fe
cmp esi, 0xc
jne 0x4043af
mov eax, dword [esp + 0x14]
mov dword [eax + edi*4], 0x41aca4
jmp 0x4043fe
cmp esi, 0x10
jne 0x4043c0
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x50]
mov dword [edx + edi*4], ecx
jmp 0x4043fe
mov eax, dword [ebx + 0x94]
add eax, esi
jmp 0x4043f7
cmp eax, 4
jne 0x4043d8
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], esi
jmp 0x4043fe
cmp eax, 5
jne 0x4043e6
mov eax, dword [esp + 0x14]
mov dword [eax + edi*4], esi
jmp 0x4043fe
cmp eax, 6
jne 0x4043fe
mov edx, dword [ebx + 0xa0]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*2]
mov ecx, dword [esp + 0x14]
mov dword [ecx + edi*4], eax
add edi, 1
cmp edi, dword [ebx + 0x3c]
mov dword [esp + 0x20], edi
jb 0x404202
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x14c], 1
mov byte [0x41ac9c], 1
jne 0x404455
xor edx, edx
cmp dword [ebx + 0x3c], edx
jbe 0x404455
lea ebx, [ebx]
mov edi, dword [ebx + 0x44]
mov esi, dword [ebx + 0x40]
cmp dword [edi + edx*4], 5
mov ecx, dword [eax + edx*4]
mov esi, dword [esi + edx*4]
mov edi, dword [ebx + 0x64]
jne 0x40444a
sub ecx, esi
sub ecx, 4
add edx, 1
mov dword [esi + edi], ecx
cmp edx, dword [ebx + 0x3c]
jb 0x404430
cmp dword [esp + 0x140], 0
pop edi
pop ebp
je 0x404472
mov ecx, dword [0x41acc4]
test ecx, ecx
je 0x404472
mov byte [ecx + 0x37c], 0
test eax, eax
je 0x40447f
push eax
call fcn.004062d1
add esp, 4
mov edx, dword [ebx + 0x1c]
push edx
call fcn.004062d6
mov ecx, dword [esp + 0x130]
mov al, byte [esp + 0x148]
add esp, 4
pop esi
pop ebx
xor ecx, esp
call fcn.00405cae
add esp, 0x128
ret 0x20