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

Disassembly:
sub esp, 0x58
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x68]
cmp esi, ebp
jne 0x40b190
lea ecx, [esp + 0x50]
call fcn.0040b6a0
mov ecx, eax
mov eax, dword [esp + 0x64]
pop esi
pop ebp
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
sub eax, 0
je 0x40b1e7
dec eax
je 0x40b1d3
dec eax
je 0x40b1be
lea ecx, [esp + 0x58]
call fcn.0040b6a0
mov edx, eax
mov eax, dword [esp + 0x64]
pop esi
pop ebp
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
add esp, 0x58
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
pop ebp
add esp, 0x58
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
pop esi
mov dword [eax + 4], edx
pop ebp
add esp, 0x58
ret
push edi
mov edi, esi
add esi, 8
cmp esi, ebp
je 0x40b431
push ebx
push esi
call fcn.00409b40
push edi
mov ebx, eax
call fcn.00409b40
add esp, 8
test ebx, ebx
je 0x40b219
test eax, eax
je 0x40b219
cmp ebx, eax
setb al
jmp 0x40b41f
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0040b720
mov ecx, dword [eax]
lea edx, [esp + 0x14]
mov dword [esp + 0x74], ecx
push edx
mov ecx, edi
call fcn.0040b720
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x40b327
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x40b327
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.0040b770
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
je 0x40b2fe
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call fcn.0040b760
mov eax, dword [eax]
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], eax
call fcn.00408070
test eax, eax
je 0x40b425
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0040b760
push eax
lea ecx, [esp + 0x7c]
call fcn.00408550
test al, al
jne 0x40b423
lea edx, [esp + 0x30]
lea ecx, [esp + 0x78]
push edx
call fcn.00408080
mov eax, dword [eax]
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], eax
call fcn.00408070
test eax, eax
jne 0x40b2ba
jmp 0x40b425
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0040b770
mov edx, dword [eax]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x78], edx
call fcn.0040b770
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
jmp 0x40b3c7
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x40b37a
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.0040b720
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
jne 0x40b425
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0040b770
mov eax, dword [eax]
mov dword [esp + 0x74], eax
jmp 0x40b3c7
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x40b3c7
lea edx, [esp + 0x50]
mov ecx, esi
push edx
call fcn.0040b720
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0040b770
mov ecx, eax
call fcn.00408550
test al, al
jne 0x40b423
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.0040b770
mov edx, dword [eax]
mov dword [esp + 0x70], edx
lea eax, [esp + 0x70]
lea ecx, [esp + 0x74]
push eax
call fcn.00408550
test al, al
jne 0x40b425
lea ecx, [esp + 0x74]
call fcn.00408f40
test al, al
jne 0x40b411
lea ecx, [esp + 0x70]
call fcn.00408f40
test al, al
jne 0x40b411
lea ecx, [esp + 0x70]
call fcn.0040b990
push eax
lea ecx, [esp + 0x78]
call fcn.0040b990
push eax
call fcn.00409a80
add esp, 8
jmp 0x40b41f
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x78]
call fcn.00408590
test al, al
je 0x40b425
mov edi, esi
add esi, 8
cmp esi, ebp
jne 0x40b1f6
pop ebx
mov eax, dword [esp + 0x68]
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [edi + 4]
pop edi
pop esi
mov dword [eax + 4], ecx
pop ebp
add esp, 0x58
ret