Function at 0x40db60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xd8]
cmp dword [esi + 0x14], 0x24
push edi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0xc], eax
jae 0x40dbb1
xor ebx, ebx
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
jmp 0x40dfd9
mov eax, dword [esp + 0xe0]
push eax
call fcn.0040c5f0
mov ecx, 0x10
add esp, 4
cmp dword [esi + 0x18], ecx
jb 0x40dbd0
mov esi, dword [esi + 4]
jmp 0x40dbd3
add esi, 4
cmp dword [edi + 0x18], ecx
jb 0x40dbdd
mov edx, dword [edi + 4]
jmp 0x40dbe0
lea edx, [edi + 4]
cmp dword [ebx + 0x18], ecx
jb 0x40dbea
mov ecx, dword [ebx + 4]
jmp 0x40dbed
lea ecx, [ebx + 4]
push ebp
mov ebp, dword [esp + 0xe8]
push ebp
push esi
push edx
push ecx
lea ecx, [esp + 0x5c]
push ecx
call eax
add esp, 0x14
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401550
mov esi, 0x10
cmp dword [esp + 0x64], esi
jb 0x40dc3a
mov edx, dword [esp + 0x50]
push edx
call fcn.004192f0
add esp, 4
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x40dc48
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xbc]
push ecx
push edx
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004032ce
lea ecx, [esp + 0xb0]
push ecx
call fcn.0040230e
push ebx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004013ba
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00401550
cmp dword [esp + 0x64], esi
jb 0x40dca6
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004192f0
add esp, 4
mov eax, dword [esp + 0xe4]
mov edi, eax
and edi, 0x80000001
jns 0x40dcbc
dec edi
or edi, 0xfffffffe
inc edi
cmp eax, 0xa
jge 0x40dd3e
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jbe 0x40dd1c
jmp 0x40dce0
mov edx, esi
and edx, 1
cmp edx, edi
jne 0x40dd15
cmp esi, eax
jbe 0x40dcf2
call fcn.004196a6
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x40dd01
lea eax, [esp + 0x34]
movzx eax, byte [eax + esi]
push eax
push 1
lea ecx, [esp + 0x54]
call fcn.00404888
mov eax, dword [esp + 0x44]
add esi, 1
cmp esi, eax
jb 0x40dce0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040491e
cmp dword [esp + 0x64], 0x10
jb 0x40dd3e
mov edx, dword [esp + 0x50]
push edx
call fcn.004192f0
add esp, 4
mov edi, ebp
and edi, 0x80000001
jns 0x40dd4d
dec edi
or edi, 0xfffffffe
inc edi
cmp ebp, 0xa
jge 0x40de1d
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jbe 0x40ddac
mov ecx, esi
and ecx, 1
cmp ecx, edi
jne 0x40dda5
cmp esi, eax
jbe 0x40dd82
call fcn.004196a6
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x40dd91
lea eax, [esp + 0x34]
movzx edx, byte [eax + esi]
push edx
push 1
lea ecx, [esp + 0x54]
call fcn.00404888
mov eax, dword [esp + 0x44]
add esi, 1
cmp esi, eax
jb 0x40dd70
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
cmp eax, 0x10
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x64], eax
jb 0x40de16
push ecx
call fcn.004192f0
add esp, 4
mov ebp, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push eax
lea ecx, [esp + 0x6c]
push 0x435c78
mov esi, 7
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.004023b3
push ebp
lea edx, [esp + 0x94]
push 0x435c78
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
call fcn.004023b3
add esp, 0x18
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004013ba
add esp, 0xc
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0040b960
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00401550
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jb 0x40dec3
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004192f0
add esp, 4
cmp dword [esp + 0x2c], ebp
mov edi, 0xf
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40dee7
mov edx, dword [esp + 0x18]
push edx
call fcn.004192f0
add esp, 4
push ebx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004013ba
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.004059c0
cmp dword [esp + 0x2c], ebp
jb 0x40df1d
mov edx, dword [esp + 0x18]
push edx
call fcn.004192f0
add esp, 4
mov ebp, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00401550
mov edi, 8
cmp dword [esp + 0x9c], edi
jb 0x40df57
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004192f0
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
jb 0x40df83
mov edx, dword [esp + 0x6c]
push edx
call fcn.004192f0
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
jb 0x40dfac
mov eax, dword [esp + 0xa4]
push eax
call fcn.004192f0
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
jb 0x40dfd6
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004192f0
add esp, 4
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419b4f
add esp, 0xc0
ret 0x18