Function at 0x4029f0
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], 0x406ca0
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.0040d980
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.00403ca0
sub eax, 1
sbb edx, 0
jl 0x402a93
jmp 0x402a6d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403ca0
mov edi, eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
jl 0x402aa2
jmp 0x402a93
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402aca
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403ca0
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 0x402aca
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.00403cc0
sub esp, 4
lea ecx, [esi + 0x50]
call fcn.00403de0
test al, 1
jne 0x402b05
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402df2
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.00403fa0
sub esp, 4
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x78], 2
mov eax, esp
mov dword [eax], ecx
call fcn.00403e00
mov dword [esi + 0x2c], eax
jmp 0x402b3c
lea ecx, [esi + 0x44]
call fcn.00403fd0
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.00404020
and eax, 0x1c0
cmp eax, 0x40
je 0x402c19
jmp 0x402b6a
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402c14
jmp 0x402b81
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404070
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404120
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404090
sub esp, 4
mov word [esi + 0x26], ax
jmp 0x402bc4
mov ax, word [esi + 0x26]
mov word [esi + 0x42], ax
call fcn.00404140
mov word [esi + 0x40], ax
lea ecx, [esi + 0x40]
lea eax, [esi + 0x42]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404040
test al, 1
jne 0x402bf4
jmp 0x402c02
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402c14
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402b6a
jmp 0x402c19
jmp 0x402c1e
xor eax, eax
cmp dword [esi + 0x68], 0
mov byte [esi + 0x1f], al
jne 0x402c3f
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 0x402c4f
jmp 0x402cf9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404070
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.00404150
sub esp, 4
mov word [esi + 0x1c], ax
jmp 0x402c86
mov ecx, dword [esi + 0x18]
mov ax, word [esi + 0x1c]
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404090
sub esp, 4
mov word [esi + 0x16], ax
jmp 0x402ca5
mov ax, word [esi + 0x16]
mov word [esi + 0x3e], ax
call fcn.00404140
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x3c]
lea eax, [esi + 0x3e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404040
test al, 1
jne 0x402cd5
jmp 0x402cde
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 0x402c1e
cmp dword [esi + 0x68], 0
jne 0x402db7
jmp 0x402d08
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402db2
jmp 0x402d1f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404070
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404120
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404090
sub esp, 4
mov word [esi + 0x14], ax
jmp 0x402d62
mov ax, word [esi + 0x14]
mov word [esi + 0x3a], ax
call fcn.00404140
mov word [esi + 0x38], ax
lea ecx, [esi + 0x38]
lea eax, [esi + 0x3a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404040
test al, 1
jne 0x402d92
jmp 0x402da0
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402db2
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402d08
jmp 0x402db7
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.00404180
sub esp, 8
jmp 0x402deb
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.004041d0
sub esp, 8
jmp 0x402e1e
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x50]
call fcn.00404220
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