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

Disassembly:
sub esp, 0xb8
test byte [esp + 0xdc], 0x40
jne 0x4065b3
push ebx
mov ebx, dword [esp + 0xc0]
push esi
push edi
mov edi, dword [esp + 0xd4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0xd4]
push dword [esp + 0xe0]
push edi
call fcn.00405860
cmp dword [esp + 0x90], 0xffffffff
lea esi, [edi + eax]
mov dword [esp + 0x30], esi
jne 0x4065a5
cmp dword [esp + 0x94], 0xffffffff
jne 0x4065a5
mov edx, dword [esp + 0xe8]
mov eax, edx
shr eax, 1
not al
and eax, 0xffffff01
cmp byte [esp + 0x5c], 0
push ebp
mov ebp, dword [esp + 0xf4]
mov dword [esp + 0x30], eax
je 0x406235
mov ecx, dword [esp + 0xd4]
mov eax, ecx
test ecx, ecx
je 0x405f6f
test dl, 1
jne 0x405f6f
lea eax, [ecx - 1]
lea edx, [esp + 0x40]
push edx
push ecx
push eax
push esi
mov eax, edx
push eax
call fcn.004083a0
push eax
call fcn.00407e50
cmp byte [esp + 0x30], 0
mov edx, eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x4061c6
test byte [esp + 0xec], 1
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
je 0x40603a
test al, 1
je 0x405ffd
mov eax, edi
and eax, 1
push eax
push dword [ebx]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 2
je 0x40601b
mov eax, edi
shr eax, 1
and eax, 1
push eax
push dword [ebx + 4]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 4
je 0x40603a
mov eax, edi
shr eax, 2
and eax, 1
push eax
push dword [ebx + 8]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 8
je 0x406059
mov eax, edi
shr eax, 3
and eax, 1
push eax
push dword [ebx + 0xc]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 0x20
je 0x406078
mov eax, edi
shr eax, 5
and eax, 1
push eax
push dword [ebx + 0x10]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 0x40
je 0x406097
mov eax, edi
shr eax, 6
and eax, 1
push eax
push dword [ebx + 0x14]
push ebp
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, al
jns 0x4060ad
shr edi, 7
and edi, 1
push edi
push dword [ebx + 0x18]
push ebp
call dword [esp + 0xfc]
cmp byte [esp + 0x5e], 0
jne 0x4060c1
mov ebx, dword [esp + 0x10]
add ebx, 0xfffffffc
add ebx, dword [esp + 0x18]
jmp 0x406113
cmp byte [esp + 0xe4], 0
je 0x4060e8
push dword [esp + 0xd4]
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00406850
mov ebx, dword [esp + 0x10]
add ebx, 0xfffffffc
add ebx, eax
jmp 0x406113
cmp byte [esp + 0x62], 0
je 0x40610b
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
add eax, 0xfffffffc
mov dword [esp + 0x20], eax
jmp 0x406117
mov ebx, dword [esp + 0x2c]
sub ebx, dword [esp + 0x48]
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x34]
push eax
call fcn.004077b0
test eax, eax
jne 0x4061e8
mov edx, dword [esp + 0x28]
lea edi, [eax + 1]
xor ebx, ebx
xor ebp, ebp
mov eax, edx
or eax, dword [esp + 0x24]
je 0x4061e8
cmp ebp, 0x100
jae 0x4061e8
mov ecx, edi
mov eax, ebx
and eax, dword [esp + 0x24]
and ecx, edx
or ecx, eax
je 0x4061b8
mov eax, dword [esp + 0x20]
mov edx, edi
sub eax, ebp
mov ecx, edi
and ecx, dword [esp + 0x1c]
not edx
and dword [esp + 0x28], edx
mov dword [esp + 0x34], eax
mov eax, ebx
not eax
and dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov eax, ebx
and eax, dword [esp + 0x14]
or ecx, eax
je 0x40619f
mov eax, dword [esp + 0x14]
and dword [esp + 0x1c], edx
and eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, 1
jmp 0x4061a1
xor eax, eax
push eax
push dword [esp + 0x38]
push dword [esp + 0xfc]
call dword [esp + 0xfc]
mov edx, dword [esp + 0x28]
shld ebx, edi, 1
add ebp, 4
add edi, edi
jmp 0x406134
mov eax, dword [esp + 0x9c]
cmp eax, 8
je 0x40642d
push eax
push ebx
call fcn.00407750
push 0
push eax
push ebp
call dword [esp + 0xfc]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x5e], 0
mov eax, dword [esp + 0x2c]
jne 0x4061fe
lea eax, [edx + ebx]
cmp byte [esp + 0xe8], 0
mov dword [esp + 0x14], eax
jne 0x4064ab
mov ebp, dword [esp + 0x74]
xor edi, edi
test ebp, ebp
je 0x4064ab
nop
mov bl, byte [esi]
dec ebp
inc esi
test bl, 0xc0
jne 0x406436
movzx eax, bl
jmp 0x40645c
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xd8]
push esi
push eax
call fcn.004083a0
push eax
call fcn.004077d0
cmp byte [esp + 0x30], 0
mov edx, eax
mov eax, dword [esp + 0xc0]
mov ebp, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
je 0x406405
test byte [esp + 0xa0], 0x80
mov eax, dword [esp + 0xa4]
je 0x4062c1
shr eax, 7
and eax, 1
push eax
mov eax, dword [esp + 0xd0]
push dword [eax + 0x18]
push dword [esp + 0xfc]
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa4]
test byte [esp + 0xa0], 0x40
je 0x4062ea
shr eax, 6
and eax, 1
push eax
mov eax, dword [esp + 0xd0]
push dword [eax + 0x14]
push dword [esp + 0xfc]
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 8
je 0x406322
mov eax, dword [esp + 0xa4]
shr eax, 3
and eax, 1
push eax
mov eax, dword [esp + 0xd0]
push dword [eax + 0xc]
push dword [esp + 0xfc]
call dword [esp + 0xfc]
mov eax, dword [esp + 0xa0]
test al, 0x20
je 0x40634c
mov eax, dword [esp + 0xa4]
shr eax, 5
and eax, 1
push eax
mov eax, dword [esp + 0xd0]
push dword [eax + 0x10]
push dword [esp + 0xfc]
call dword [esp + 0xfc]
test edi, edi
je 0x4063a5
mov ebp, dword [esp + 0xf4]
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x10]
mov al, byte [edi]
inc edi
movzx edx, al
test al, al
jns 0x406382
and edx, 0x7f
nop
mov cl, byte [edi]
inc edi
movzx eax, cl
and eax, 0x7f
shl edx, 7
add edx, eax
test cl, cl
js 0x406370
mov ecx, edx
and edx, 0xfffffffc
and ecx, 3
push ecx
lea eax, [edx + ebx]
push eax
push ebp
call dword [esp + 0xfc]
sub esi, 1
jne 0x406362
mov esi, dword [esp + 0x34]
jmp 0x4061ec
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc0]
mov eax, ebp
or eax, ebx
je 0x4061e8
mov eax, ebp
and eax, 1
or eax, 0
je 0x4063e8
mov eax, ecx
xor edx, edx
and eax, 1
or eax, edx
je 0x4063d4
mov edx, 1
push edx
push edi
push dword [esp + 0xfc]
call dword [esp + 0xfc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
shrd ecx, eax, 1
shrd ebp, ebx, 1
shr eax, 1
shr ebx, 1
add edi, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x4063b0
mov eax, dword [esp + 0x9c]
cmp eax, 8
je 0x40642d
push eax
push dword [esp + 0xd0]
call fcn.00407750
push 0
push eax
push dword [esp + 0xfc]
jmp 0x4061e1
mov ebx, dword [esp + 0x10]
jmp 0x4061f0
movzx edx, bl
and edx, 0x3f
test bl, bl
jns 0x406452
mov cl, byte [esi]
inc esi
movzx eax, cl
and eax, 0x7f
shl edx, 7
add edx, eax
test cl, cl
js 0x406440
mov eax, edx
neg eax
test bl, 0x40
cmove eax, edx
mov ebx, dword [esp + 0x14]
sub edi, eax
mov ecx, edi
mov dword [esp + 0x1c], edi
mov edx, ecx
and ecx, 0xfffffffc
and edx, 3
add ebx, ecx
cmp byte [esp + 0x5f], 0
je 0x406493
mov edi, dword [esp + 0x48]
lea eax, [edi - 4]
cmp ecx, eax
jl 0x40648f
mov ebx, dword [esp + 0x2c]
sub ecx, edi
add ebx, 4
add ebx, ecx
mov edi, dword [esp + 0x1c]
push edx
push ebx
push dword [esp + 0xfc]
call dword [esp + 0xfc]
test ebp, ebp
jne 0x406220
cmp byte [esp + 0x30], 0
mov ebp, dword [esp + 0x78]
je 0x4064d4
mov edx, dword [esp + 0xd4]
test byte [esp + 0xec], 1
lea eax, [edx - 1]
cmove edx, eax
mov dword [esp + 0xd4], edx
jmp 0x4064e2
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xd4], eax
xor ebx, ebx
test ebp, ebp
je 0x406596
nop dword [eax]
mov al, byte [esi]
dec ebp
inc esi
movzx edx, al
test al, al
jns 0x406512
and edx, 0x7f
nop
mov cl, byte [esi]
inc esi
movzx eax, cl
and eax, 0x7f
shl edx, 7
add edx, eax
test cl, cl
js 0x406500
mov al, byte [esi]
lea edi, [esi + 1]
movzx esi, al
test al, al
jns 0x406533
and esi, 0x7f
mov cl, byte [edi]
inc edi
movzx eax, cl
and eax, 0x7f
shl esi, 7
add esi, eax
test cl, cl
js 0x406521
mov al, byte [edi]
add ebx, esi
lea esi, [edi + 1]
movzx edi, al
test al, al
jns 0x406556
and edi, 0x7f
mov cl, byte [esi]
inc esi
movzx eax, cl
and eax, 0x7f
shl edi, 7
add edi, eax
test cl, cl
js 0x406544
mov eax, edx
add edi, ebx
and eax, 3
and edx, 0xfffffffc
cmp byte [esp + 0x5e], 0
je 0x406569
neg edx
mov ecx, dword [esp + 0x14]
add ecx, edx
mov edx, dword [esp + 0xd4]
cmp edx, ebx
jb 0x406596
cmp edx, edi
jae 0x40658e
push eax
push ecx
push dword [esp + 0xfc]
call dword [esp + 0xfc]
test ebp, ebp
jne 0x4064f0
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xb8
ret 0x2c
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xb8
ret 0x2c
mov al, 1
add esp, 0xb8
ret 0x2c