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

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x64
push ebx
push ebp
push esi
or esi, 0xffffffff
cmp edx, esi
jne 0x437897
cmp dword [esp + 0x80], esi
jne 0x437897
cmp dword [esp + 0x7c], esi
jne 0x437897
cmp dword [esp + 0x84], esi
jne 0x437897
test byte [edi], 2
je 0x437875
mov eax, edi
call fcn.00437490
mov eax, dword [edi + 0x50]
mov edx, dword [edi + 0x4c]
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esp + 0x80], ebx
jle 0x437ac1
cmp edx, ecx
jge 0x437ac1
cmp eax, dword [esp + 0x7c]
jle 0x437ac1
cmp dword [esp + 0x84], ebx
jle 0x437ac1
cmp dword [edi + 0x28], ebx
je 0x437913
sub esp, 0x10
mov eax, esp
mov ecx, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov edx, esi
mov ebp, esi
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
mov esi, dword [edi + 0x28]
push ecx
call fcn.0040f9b0
mov eax, dword [edi + 0x28]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov dword [edi + 0x2c], ecx
xor edx, edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], esi
mov dword [edi + 0x38], eax
push edi
call fcn.004375d0
test byte [edi], 2
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
je 0x43798b
mov eax, edi
call fcn.00437490
mov eax, dword [edi + 0x4c]
cmp esi, eax
jge 0x437996
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x50]
cmp ebp, eax
jge 0x4379a1
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
cmp dword [esp + 0x18], eax
jle 0x4379ae
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x58]
cmp dword [esp + 0x1c], eax
jle 0x4379bb
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x2c]
mov esi, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ebp, dword [edi + 0x38]
add ecx, eax
add esi, eax
mov eax, dword [edi + 0x14]
add edx, eax
add ebp, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], esi
lea esi, [esp + 0x30]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ebp
call fcn.004363e0
cmp eax, ebx
jle 0x437ac1
lea ebp, [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
jle 0x437a27
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
cmp eax, ebx
setle dl
dec edx
and edx, eax
mov eax, dword [ebp]
cmp esi, eax
mov dword [esp + 0x14], edx
jle 0x437a45
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 4]
cmp ecx, eax
jle 0x437a52
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x10], esi
jge 0x437ab3
cmp edx, ecx
jge 0x437ab3
mov ebx, dword [edi + 0x10]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
mov esi, dword [edi + 0x38]
add eax, ebx
add edx, ebx
mov ebx, dword [edi + 0x14]
add ecx, ebx
add esi, ebx
mov ebx, dword [edi + 0x18]
add eax, ebx
add edx, ebx
mov ebx, dword [edi + 0x1c]
add edx, eax
add ecx, ebx
add esi, ebx
add esi, ecx
add ecx, ecx
mov dword [esp + 0x28], edx
lea edx, [eax + eax]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
push ecx
push edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], edx
call fcn.004376a0
xor ebx, ebx
add ebp, 0x10
sub dword [esp + 0xc], 1
jne 0x437a06
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 0x14