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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 8], ebp
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [esi + 0x6c], eax
mov dword [esi + 0x78], 0xffffffff
lea eax, [esi + 0x70]
mov dword [esi + 0x74], 0x406c50
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov dword fs:[0], eax
mov dword [esi + 0x68], 0
mov ecx, dword [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
call fcn.0040d930
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c50
sub eax, 1
sbb edx, 0
jl 0x402a43
jmp 0x402a1d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c50
mov edi, eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
jl 0x402a52
jmp 0x402a43
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402a7a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c50
mov ecx, eax
mov eax, edx
mov edi, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402a7a
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x50]
mov dword [esp], eax
call fcn.00403c70
sub esp, 4
lea ecx, [esi + 0x50]
call fcn.00403d90
test al, 1
jne 0x402ab5
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402da2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, esp
lea edx, [esi + 0x44]
mov dword [esi + 0x28], edx
mov dword [eax], edx
call fcn.00403f50
sub esp, 4
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x78], 2
mov eax, esp
mov dword [eax], ecx
call fcn.00403db0
mov dword [esi + 0x2c], eax
jmp 0x402aec
lea ecx, [esi + 0x44]
call fcn.00403f80
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x4c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add ecx, dword [eax + 4]
call fcn.00403fd0
and eax, 0x1c0
cmp eax, 0x40
je 0x402bc9
jmp 0x402b1a
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402bc4
jmp 0x402b31
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404020
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040d0
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404040
sub esp, 4
mov word [esi + 0x26], ax
jmp 0x402b74
mov ax, word [esi + 0x26]
mov word [esi + 0x42], ax
call fcn.004040f0
mov word [esi + 0x40], ax
lea ecx, [esi + 0x40]
lea eax, [esi + 0x42]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00403ff0
test al, 1
jne 0x402ba4
jmp 0x402bb2
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402bc4
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402b1a
jmp 0x402bc9
jmp 0x402bce
xor eax, eax
cmp dword [esi + 0x68], 0
mov byte [esi + 0x1f], al
jne 0x402bef
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
xor eax, eax
neg edx
sbb eax, ecx
setl al
mov byte [esi + 0x1f], al
mov al, byte [esi + 0x1f]
test al, 1
jne 0x402bff
jmp 0x402ca9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404020
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ebp + 0xc]
movsx edx, byte [eax]
mov dword [esi + 0x78], 1
mov eax, esp
mov dword [eax], edx
call fcn.00404100
sub esp, 4
mov word [esi + 0x1c], ax
jmp 0x402c36
mov ecx, dword [esi + 0x18]
mov ax, word [esi + 0x1c]
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404040
sub esp, 4
mov word [esi + 0x16], ax
jmp 0x402c55
mov ax, word [esi + 0x16]
mov word [esi + 0x3e], ax
call fcn.004040f0
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x3c]
lea eax, [esi + 0x3e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00403ff0
test al, 1
jne 0x402c85
jmp 0x402c8e
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x64]
add dword [esi + 0x60], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
jmp 0x402bce
cmp dword [esi + 0x68], 0
jne 0x402d67
jmp 0x402cb8
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402d62
jmp 0x402ccf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404020
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040d0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404040
sub esp, 4
mov word [esi + 0x14], ax
jmp 0x402d12
mov ax, word [esi + 0x14]
mov word [esi + 0x3a], ax
call fcn.004040f0
mov word [esi + 0x38], ax
lea ecx, [esi + 0x38]
lea eax, [esi + 0x3a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00403ff0
test al, 1
jne 0x402d42
jmp 0x402d50
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402d62
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402cb8
jmp 0x402d67
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add ecx, dword [eax + 4]
mov eax, esp
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00404130
sub esp, 8
jmp 0x402d9b
mov dword [esi + 0x78], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esi + 0x68]
mov dword [esi + 0x78], 0
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], 0
call fcn.00404180
sub esp, 8
jmp 0x402dce
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x50]
call fcn.004041d0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x70]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret