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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x4c74a4]
add byte [ebx + 0x56], dl
inc eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [0x4c74a4], eax
push edi
cmp eax, 0x30
jge 0x43e847
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x22], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], bl
call fcn.00405906
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xa8]
push 0x8000
push edi
call fcn.00405956
test al, al
je 0x43e861
lea ecx, [esp + 0x98]
call fcn.004077c7
lea ecx, [esp + 0x98]
call fcn.00420b9b
lea ecx, [esp + 0x88]
call fcn.004077c7
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.004048ae
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0x44]
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0xa8]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0x18
push eax
call fcn.004059b0
push ebx
push esi
push edi
lea ecx, [esp + 0xb4]
call fcn.00405c4e
cmp dword [esp + 0x70], 0x21335541
je 0x43e87b
lea ecx, [esp + 0x50]
call fcn.004077c7
lea ecx, [esp + 0x28]
call fcn.004077c7
push ebx
lea eax, [esp + 0x2c]
push ebx
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x94]
call fcn.004046f9
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.00407c8e
push dword [esp + 0x50]
call dword [0x48f208]
lea ecx, [esp + 0x28]
call fcn.00405a64
lea ecx, [esp + 0x50]
call fcn.00405a64
push 0x2000
call fcn.00420ff6
pop ecx
push eax
lea ecx, [esp + 0x48]
call fcn.0040538e
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x22], 1
jne 0x406e47
push ecx
push esi
lea ecx, [esp + 0xb0]
call fcn.004059cd
test al, al
je 0x406e47
mov eax, dword [esp + 0x14]
inc eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.004070bd
push esi
call fcn.0040702c
push esi
test al, al
je 0x43ec07
call fcn.0040710a
push esi
mov byte [esp + 0x27], bl
call fcn.00422e3c
mov dword [esp + 0x3c], eax
pop ecx
cmp eax, 2
jle 0x406dbb
mov ax, word [esi + eax*2 - 4]
push 0x7f
pop ecx
and ax, cx
movzx eax, ax
push eax
call fcn.0042387d
pop ecx
test eax, eax
jne 0x406eaf
cmp byte [esp + 0x24], 1
je 0x43ebfa
push dword [esp + 0x88]
add byte [eax], al
lea ecx, [esp + 0x7c]
call fcn.00407f41
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00406a3c
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], eax
call fcn.00405a64
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406eda
cmp eax, 1
jle 0x406ecd
cmp eax, 3
jg 0x406ec4
push dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, edi
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00407373
cmp byte [esp + 0x23], 1
sete byte [esp + 0x24]
cmp byte [esp + 0x13], 1
je 0x406d42
test bl, bh
invalid
lea ecx, [esp + 0xa8]
call fcn.00405dcf
push dword [esp + 0x98]
call dword [0x48f208]
mov eax, dword [esp + 0x38]
cmp word [esi + eax*2 - 2], 0x5f
jne 0x406dbb
jmp 0x43ebe9
cmp eax, 4
jne 0x406ecd
mov byte [esp + 0x22], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x406e32
mov byte [esp + 0x13], bl
jmp 0x406ecd
xor byte [edx + 0xc], ch
push 0x21471e8
add byte [ebx], dh
fucomi st(1)
and byte [edx + 0x7575fffc], al
adc al, 0x68
enter 0x4b9f, 0xffffffffffffff85
invalid
push 0
jmp 0x149bd078
invalid
invalid
leave
mov byte [esp + 0x23], 1
mov word [esi + eax*2 - 2], cx
jmp 0x406dcb
cmp esp, 0xcf8b56ff
call fcn.0045fb17
jmp 0x406e42