Function at 0x4029b0
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], 0x406c60
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.0040d940
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.00403c60
sub eax, 1
sbb edx, 0
jl 0x402a53
jmp 0x402a2d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c60
mov edi, eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
sub ecx, edi
sbb eax, edx
jl 0x402a62
jmp 0x402a53
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
jmp 0x402a8a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00403c60
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 0x402a8a
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.00403c80
sub esp, 4
lea ecx, [esi + 0x50]
call fcn.00403da0
test al, 1
jne 0x402ac5
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402db2
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.00403f60
sub esp, 4
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x78], 2
mov eax, esp
mov dword [eax], ecx
call fcn.00403dc0
mov dword [esi + 0x2c], eax
jmp 0x402afc
lea ecx, [esi + 0x44]
call fcn.00403f90
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.00403fe0
and eax, 0x1c0
cmp eax, 0x40
je 0x402bd9
jmp 0x402b2a
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402bd4
jmp 0x402b41
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404030
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040e0
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404050
sub esp, 4
mov word [esi + 0x26], ax
jmp 0x402b84
mov ax, word [esi + 0x26]
mov word [esi + 0x42], ax
call fcn.00404100
mov word [esi + 0x40], ax
lea ecx, [esi + 0x40]
lea eax, [esi + 0x42]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404000
test al, 1
jne 0x402bb4
jmp 0x402bc2
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402bd4
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402b2a
jmp 0x402bd9
jmp 0x402bde
xor eax, eax
cmp dword [esi + 0x68], 0
mov byte [esi + 0x1f], al
jne 0x402bff
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 0x402c0f
jmp 0x402cb9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404030
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.00404110
sub esp, 4
mov word [esi + 0x1c], ax
jmp 0x402c46
mov ecx, dword [esi + 0x18]
mov ax, word [esi + 0x1c]
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404050
sub esp, 4
mov word [esi + 0x16], ax
jmp 0x402c65
mov ax, word [esi + 0x16]
mov word [esi + 0x3e], ax
call fcn.00404100
mov word [esi + 0x3c], ax
lea ecx, [esi + 0x3c]
lea eax, [esi + 0x3e]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404000
test al, 1
jne 0x402c95
jmp 0x402c9e
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 0x402bde
cmp dword [esi + 0x68], 0
jne 0x402d77
jmp 0x402cc8
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
sub ecx, 1
sbb eax, 0
jl 0x402d72
jmp 0x402cdf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00404030
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004040e0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x78], 1
movzx edx, ax
mov eax, esp
mov dword [eax], edx
call fcn.00404050
sub esp, 4
mov word [esi + 0x14], ax
jmp 0x402d22
mov ax, word [esi + 0x14]
mov word [esi + 0x3a], ax
call fcn.00404100
mov word [esi + 0x38], ax
lea ecx, [esi + 0x38]
lea eax, [esi + 0x3a]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404000
test al, 1
jne 0x402d52
jmp 0x402d60
mov eax, dword [esi + 0x68]
or eax, 4
mov dword [esi + 0x68], eax
jmp 0x402d72
mov eax, dword [esi + 0x5c]
add dword [esi + 0x58], 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5c], eax
jmp 0x402cc8
jmp 0x402d77
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.00404140
sub esp, 8
jmp 0x402dab
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.00404190
sub esp, 8
jmp 0x402dde
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x50]
call fcn.004041e0
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