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

Disassembly:
sub esp, 0x40
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x24]
push esi
push edi
mov edi, dword [ecx]
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call fcn.00438645
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40b776
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x28]
call fcn.0043866d
lea edx, [esp + 0x10]
push edx
call fcn.0040ada0
add esp, 4
mov ebx, eax
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.00438645
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40b7ad
cmp eax, 0xffffffff
jae 0x40b7ad
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x10]
and esi, edi
call fcn.0043866d
test esi, esi
je 0x40b7cf
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call edx
mov al, byte [ebp]
cmp al, 0x2b
je 0x40b80b
cmp al, 0x2d
je 0x40b80b
cmp al, 0x30
jne 0x40b801
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x40b7f7
cmp al, 0x58
jne 0x40b801
mov dword [esp + 0x10], 2
jmp 0x40b813
mov dword [esp + 0x10], 0
jmp 0x40b813
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov eax, edx
cmp ecx, 0x10
jae 0x40b826
lea eax, [esp + 0x34]
cmp byte [eax], 0x7f
je 0x40b8a6
mov eax, edx
cmp ecx, 0x10
jae 0x40b836
lea eax, [esp + 0x34]
cmp byte [eax], 0
jle 0x40b8a6
cmp ecx, 0x10
jb 0x40b846
mov dword [esp + 0x20], edx
jmp 0x40b84e
lea eax, [esp + 0x34]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov al, byte [ecx]
mov ebx, dword [esp + 0x70]
mov esi, ebx
cmp al, 0x7f
je 0x40b8aa
mov edi, edi
test al, al
jle 0x40b8aa
mov edx, esi
sub edx, dword [esp + 0x10]
movsx eax, al
cmp eax, edx
jae 0x40b8aa
sub esi, eax
mov eax, ebx
sub eax, esi
inc eax
push eax
lea edi, [esi + ebp]
push edi
push eax
lea ecx, [esi + ebp + 1]
push ecx
call fcn.00439142
mov eax, dword [esp + 0x30]
add esp, 0x10
mov byte [edi], 0
inc ebx
cmp byte [eax + 1], 0
jle 0x40b89e
inc eax
mov dword [esp + 0x20], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x40b860
jmp 0x40b8aa
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x18]
test edi, edi
jle 0x40b8bd
cmp edi, ebx
jbe 0x40b8bd
sub edi, ebx
jmp 0x40b8bf
xor edi, edi
mov esi, dword [esp + 0x54]
mov eax, edx
mov eax, dword [eax + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x40b962
mov edx, dword [esp + 0x60]
cmp eax, 0x100
mov eax, dword [esp + 0x5c]
je 0x40b90a
mov ecx, dword [esp + 0x68]
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.00409c90
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x60], eax
jmp 0x40b960
mov ecx, dword [esp + 0x10]
push ecx
push ebp
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00409c20
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x28]
push edi
push edx
mov edx, dword [eax]
add ebp, ecx
sub ebx, ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00409c90
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x60], edx
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x1c]
push eax
push ebx
push ebp
push ecx
push edx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00409d00
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0x18], 0
mov edx, dword [esp + 0x88]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0x94], eax
call fcn.00409c90
add esp, 0x34
cmp dword [esp + 0x48], 0x10
jb 0x40b9d5
mov eax, dword [esp + 0x34]
push eax
call fcn.004390ba
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x40
ret