Function at 0x4029c0
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], 0x406c70
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.0040d950
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.00403c70
sub eax, 1
sbb edx, 0
jl 0x402a63
jmp 0x402a3d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c70
mov edi, eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
jl 0x402a72
jmp 0x402a63
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402a9a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c70
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 0x402a9a
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.00403c90
sub esp, 4
lea ecx, [esi + 0x50]
call fcn.00403db0
test al, 1
jne 0x402ad5
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402dc2
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.00403f70
sub esp, 4
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x78], 2
mov eax, esp
mov dword [eax], ecx
call fcn.00403dd0
mov dword [esi + 0x2c], eax
jmp 0x402b0c
lea ecx, [esi + 0x44]
call fcn.00403fa0
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.00403ff0
and eax, 0x1c0
cmp eax, 0x40
je 0x402be9
jmp 0x402b3a
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402be4
jmp 0x402b51
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404040
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040f0
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404060
sub esp, 4
mov word [esi + 0x26], ax
jmp 0x402b94
mov ax, word [esi + 0x26]
mov word [esi + 0x42], ax
call fcn.00404110
mov word [esi + 0x40], ax
lea ecx, [esi + 0x40]
lea eax, [esi + 0x42]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404010
test al, 1
jne 0x402bc4
jmp 0x402bd2
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402be4
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402b3a
jmp 0x402be9
jmp 0x402bee
xor eax, eax
cmp dword [esi + 0x68], 0
mov byte [esi + 0x1f], al
jne 0x402c0f
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 0x402c1f
jmp 0x402cc9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404040
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.00404120
sub esp, 4
mov word [esi + 0x1c], ax
jmp 0x402c56
mov ecx, dword [esi + 0x18]
mov ax, word [esi + 0x1c]
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404060
sub esp, 4
mov word [esi + 0x16], ax
jmp 0x402c75
mov ax, word [esi + 0x16]
mov word [esi + 0x3e], ax
call fcn.00404110
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x3c]
lea eax, [esi + 0x3e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404010
test al, 1
jne 0x402ca5
jmp 0x402cae
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 0x402bee
cmp dword [esi + 0x68], 0
jne 0x402d87
jmp 0x402cd8
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402d82
jmp 0x402cef
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404040
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040f0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404060
sub esp, 4
mov word [esi + 0x14], ax
jmp 0x402d32
mov ax, word [esi + 0x14]
mov word [esi + 0x3a], ax
call fcn.00404110
mov word [esi + 0x38], ax
lea ecx, [esi + 0x38]
lea eax, [esi + 0x3a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404010
test al, 1
jne 0x402d62
jmp 0x402d70
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402d82
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402cd8
jmp 0x402d87
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.00404150
sub esp, 8
jmp 0x402dbb
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.004041a0
sub esp, 8
jmp 0x402dee
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x50]
call fcn.004041f0
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