Function at 0x4029d0
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], 0x406c80
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.0040d960
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.00403c80
sub eax, 1
sbb edx, 0
jl 0x402a73
jmp 0x402a4d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c80
mov edi, eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
jl 0x402a82
jmp 0x402a73
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402aaa
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c80
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 0x402aaa
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.00403ca0
sub esp, 4
lea ecx, [esi + 0x50]
call fcn.00403dc0
test al, 1
jne 0x402ae5
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402dd2
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.00403f80
sub esp, 4
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x78], 2
mov eax, esp
mov dword [eax], ecx
call fcn.00403de0
mov dword [esi + 0x2c], eax
jmp 0x402b1c
lea ecx, [esi + 0x44]
call fcn.00403fb0
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.00404000
and eax, 0x1c0
cmp eax, 0x40
je 0x402bf9
jmp 0x402b4a
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402bf4
jmp 0x402b61
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404050
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404100
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404070
sub esp, 4
mov word [esi + 0x26], ax
jmp 0x402ba4
mov ax, word [esi + 0x26]
mov word [esi + 0x42], ax
call fcn.00404120
mov word [esi + 0x40], ax
lea ecx, [esi + 0x40]
lea eax, [esi + 0x42]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404020
test al, 1
jne 0x402bd4
jmp 0x402be2
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402bf4
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402b4a
jmp 0x402bf9
jmp 0x402bfe
xor eax, eax
cmp dword [esi + 0x68], 0
mov byte [esi + 0x1f], al
jne 0x402c1f
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 0x402c2f
jmp 0x402cd9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404050
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.00404130
sub esp, 4
mov word [esi + 0x1c], ax
jmp 0x402c66
mov ecx, dword [esi + 0x18]
mov ax, word [esi + 0x1c]
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404070
sub esp, 4
mov word [esi + 0x16], ax
jmp 0x402c85
mov ax, word [esi + 0x16]
mov word [esi + 0x3e], ax
call fcn.00404120
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x3c]
lea eax, [esi + 0x3e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404020
test al, 1
jne 0x402cb5
jmp 0x402cbe
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 0x402bfe
cmp dword [esi + 0x68], 0
jne 0x402d97
jmp 0x402ce8
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402d92
jmp 0x402cff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404050
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404100
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404070
sub esp, 4
mov word [esi + 0x14], ax
jmp 0x402d42
mov ax, word [esi + 0x14]
mov word [esi + 0x3a], ax
call fcn.00404120
mov word [esi + 0x38], ax
lea ecx, [esi + 0x38]
lea eax, [esi + 0x3a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404020
test al, 1
jne 0x402d72
jmp 0x402d80
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402d92
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402ce8
jmp 0x402d97
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.00404160
sub esp, 8
jmp 0x402dcb
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.004041b0
sub esp, 8
jmp 0x402dfe
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x50]
call fcn.00404200
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