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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00412250
mov ecx, dword [esi + 0x15c]
sub ecx, dword [esi + 0x4b8]
mov edi, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x160]
add edi, dword [esi + 0x4b0]
add edx, dword [esi + 0x4b4]
sub eax, dword [esi + 0x4bc]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x4cc]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x437e50
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x437e50
mov ecx, dword [esi + 0x4cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4d0]
test ecx, ecx
je 0x437e78
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x437e78
mov ecx, dword [esi + 0x4d0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [esi + 0x4a8], 0
jne 0x437e88
push 0
jmp 0x43823c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4d0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x437ec4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x437ec4
mov eax, dword [esi + 0x4d0]
add edi, dword [eax + 0x4a4]
mov dword [esp + 0x28], edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x4a8], ecx
jle 0x437fcc
mov ecx, dword [esi + 0x4a4]
mov edx, dword [esp + 0x18]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x437faf
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
jne 0x437faf
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
mov eax, dword [eax + 0x114]
push ebx
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call eax
cmp dword [esp + 0x10], 0
jne 0x437f3d
inc dword [esp + 0x14]
jmp 0x437f7b
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x10], eax
jge 0x437f59
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x10], eax
jle 0x437f7b
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov ebx, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
add dword [esp + 0x20], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4a8]
jl 0x437ee4
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x4c0]
dec eax
imul edx, eax
mov dword [esp + 0x30], eax
xor eax, eax
add ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp edi, eax
jle 0x438003
mov eax, ebx
sub eax, ecx
cdq
idiv edi
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x4cc]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x438032
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x438032
mov ecx, dword [esi + 0x4cc]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x4d0]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x438061
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x438061
mov ecx, dword [esi + 0x4d0]
sub edi, dword [ecx + 0x4a8]
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x4a8], 0
mov dword [esp + 0x18], 0
jle 0x43822c
mov edx, dword [esi + 0x4a4]
mov eax, dword [esp + 0x18]
mov edi, dword [edx + eax*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc8]
mov ecx, edi
call eax
test al, al
je 0x438217
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x4380bd
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x1b0]
push eax
mov ecx, esi
call edx
jmp 0x438217
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call edx
sub ebx, dword [esp + 0x40]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ebx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x10], 0
mov ecx, edi
jne 0x4380fb
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
call eax
cmp dword [esp + 0x10], eax
jge 0x438115
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x10], eax
jle 0x438137
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
mov dword [esp + 0xc], eax
test eax, eax
jne 0x438158
mov eax, ebx
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
test eax, eax
jns 0x438162
mov dword [esp + 0xc], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
cmp dword [esp + 0xc], eax
jge 0x43817e
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov dword [esp + 0xc], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
cmp dword [esp + 0xc], eax
jle 0x43819a
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
add ebx, eax
add eax, dword [esp + 0x10]
add edx, ecx
add eax, dword [esp + 0x14]
add ecx, dword [esp + 0xc]
mov dword [esp + 0x58], eax
add ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x60]
mov ebx, dword [edi]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 0x4c0]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
lea edi, [eax + ecx]
add edi, edx
add edi, dword [esp + 0x40]
add eax, ecx
add dword [esp + 0x14], edi
lea edi, [ecx + edx]
add edi, dword [esp + 0x40]
add eax, edx
add dword [esp + 0x20], edi
sub ebx, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4a8]
jl 0x438076
mov eax, dword [esi + 0x4c0]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1b4]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10