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

Disassembly:
sub esp, 0x58
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x10], esi
call fcn.004576b0
mov ecx, edi
call fcn.004112a0
test eax, eax
je 0x40b890
lea eax, [edi + 0x7e6c]
mov ebp, eax
mov ebx, dword [edi + 0x223c]
mov ecx, dword [esp + 0x78]
cmp ebx, 2
je 0x40b5fa
cmp ebx, 3
jne 0x40b6c7
mov eax, ebp
cmp byte [eax], 0
jne 0x40b6be
cmp byte [edi + 0x44cb], 0
je 0x40b6be
mov eax, dword [esi + 0x222c]
cmp byte [eax + 0x612a], 0
je 0x40b6be
cmp byte [eax + 0x6128], 0
je 0x40b6be
xor eax, eax
mov dword [esp + 0x1c], 0x47d694
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x32]
mov dword [esp + 0x20], 0x47d694
mov dword [esp + 0x24], 0x47d694
mov dword [esp + 0x28], 0x47d694
mov dword [esp + 0x2c], 0x47d694
mov dword [esp + 0x30], 0x47d694
mov dword [esp + 0x34], 0x47d694
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 1
call fcn.00458680
push 2
mov ecx, 0x49d17c
call fcn.00421270
mov ecx, dword [esp + 0x78]
cmp ebx, 2
je 0x40b867
cmp ebx, 5
je 0x40b890
cmp ebx, 0x77
je 0x40b739
cmp ebx, 3
jne 0x40b6e3
cmp byte [edi + 0x687a], 0
jne 0x40b739
cmp byte [edi + 0x33a4], 0
je 0x40b740
mov esi, dword [edi]
push 0
push dword [edi + 0x7e5c]
push dword [edi + 0x7e58]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x47d2b8]
mov ecx, edi
call esi
lea ebp, [edi + 0x7e6c]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x70], 0
call fcn.004576b0
mov ecx, edi
call fcn.004112a0
test eax, eax
je 0x40b890
lea eax, [edi + 0x7e6c]
jmp 0x40b5e0
cmp byte [esp + 0x70], 0
je 0x40b6ec
test ecx, ecx
je 0x40b784
cmp ebx, 3
jne 0x40b784
mov eax, ecx
lea ecx, [edi + 0x57a8]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40b777
test dx, dx
je 0x40b773
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40b777
add ecx, 4
add eax, 4
test dx, dx
jne 0x40b751
xor eax, eax
jmp 0x40b77c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b6ec
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40b7a2
mov eax, dword [ebp]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d2b8]
mov ecx, ebp
call esi
mov esi, dword [esp + 0x10]
cmp byte [edi + 0x7e6c], 0
lea ebp, [edi + 0x7e6c]
jne 0x40b818
cmp byte [esi + 0x7e6c], 0
je 0x40b818
push 0
cmp ebx, 3
je 0x40b7e3
mov esi, dword [edi]
push dword [edi + 0x7e5c]
push dword [edi + 0x7e58]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x47d2b8]
mov ecx, edi
call esi
jmp 0x40b711
push 0
lea eax, [edi + 0x5780]
mov ecx, esi
push eax
push 3
call fcn.0040de50
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x47d2b8]
mov ecx, edi
call esi
mov ecx, dword [edi + 0x7e58]
sub ecx, eax
mov eax, dword [edi + 0x7e5c]
sbb eax, edx
jmp 0x40b84f
mov esi, dword [edi]
push 0
push dword [edi + 0x7e54]
push dword [edi + 0x7e50]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x47d2b8]
mov ecx, edi
call esi
mov ecx, dword [edi + 0x7e58]
sub ecx, dword [edi + 0x7e50]
mov eax, dword [edi + 0x7e5c]
sbb eax, dword [edi + 0x7e54]
mov esi, dword [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
call fcn.00427ca0
mov byte [esp + 0x70], 1
jmp 0x40b71a
lea eax, [edi + 0x3430]
push eax
lea ecx, [esi + 0x3430]
call fcn.0042df00
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004669f1
add esp, 0x58
ret 0x10
mov ecx, dword [esp + 0x64]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x58
ret 0x10