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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x4c
mov dword [esp + 0x44], ecx
mov ebp, eax
test ebp, ebp
je 0x43c1b6
mov ebx, dword [ebp + 0x34]
movsx esi, cl
test esi, esi
je 0x43bf7a
mov ebp, edx
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x40], edx
mov eax, ebp
call fcn.0040870c
mov edi, dword [esp + 0x6c]
neg edi
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x74]
neg ecx
mov esi, dword [ebx + 0x78]
mov edx, dword [esp + 0x70]
lea edx, [edx + esi - 1]
mov dword [esp + 0x44], edx
mov eax, dword [ebx + 0x7c]
mov esi, dword [esp + 0x78]
lea esi, [esi + eax - 1]
mov dword [esp + 0x38], esi
sub edx, edi
lea edi, [edx + 1]
mov dword [esp + 0x48], edi
sub esi, ecx
inc esi
test edi, edi
jle 0x43c0e5
test esi, esi
jle 0x43c0e5
lea eax, [edx*4 + 4]
cmp edi, 0x2000
jg 0x43c179
imul eax, esi
lea edx, [eax + edx*4 + 8]
push edx
mov dword [esp + 0x38], ecx
call fcn.004696fc
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x30], eax
mov edx, eax
test edx, edx
je 0x43c13e
mov edx, esi
imul edx, dword [esp + 0x48]
add edx, edx
add edx, edx
push dword [0x5b5738]
push edx
mov edi, dword [esp + 0x38]
push edi
mov dword [esp + 0x40], ecx
call dword [0x5d2488]
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x6c]
test edx, edx
jle 0x43c104
mov edx, dword [esp + 0x40]
mov byte [edx + 0x86], 1
mov edx, dword [esp + 0x30]
test edx, edx
je 0x43c0f7
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x90]
mov ecx, dword [esp + 0x3c]
call fcn.0043c1cc
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0x90]
test edx, edx
je 0x43c0bc
push edx
call fcn.0046995f
pop ecx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [ebx + 0x90], edx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], esi
mov eax, ebp
call fcn.0040870c
xor eax, eax
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret
push 0x80f618
push 0x80e270
call fcn.0040c598
add esp, 8
mov eax, 0xffffffff
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x70]
test edx, edx
jg 0x43c03f
mov edx, dword [esp + 0x74]
test edx, edx
jg 0x43c03f
mov edx, dword [esp + 0x78]
test edx, edx
jg 0x43c03f
movzx edx, byte [ebx + 0x86]
mov edi, dword [esp + 0x40]
mov byte [edi + 0x86], dl
jmp 0x43c04a
push esi
mov edx, edi
push edx
push 0
push 0x80f5a4
push 0x80e270
mov dword [esp + 0x48], ecx
call fcn.0049acf0
mov ecx, dword [esp + 0x48]
push 0
push 1
push 0x1965e
mov dword [esp + 0x54], ecx
call fcn.004667e0
mov ecx, dword [esp + 0x54]
add esp, 0x20
jmp 0x43c00b
push esi
mov edx, edi
push edx
push 0x80f57c
push 0x80e270
mov dword [esp + 0x44], ecx
call fcn.0040c598
mov ecx, dword [esp + 0x44]
push 1
push 0x186aa
mov dword [esp + 0x4c], ecx
call fcn.0046683c
mov ecx, dword [esp + 0x4c]
add esp, 0x18
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x43c00b
xor ebx, ebx
jmp 0x43bf71