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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4020ee
mov eax, 0
jmp 0x4023a0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402112
mov eax, 0
jmp 0x4023a0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], 0
jmp 0x402174
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
or eax, 0x20
mov edx, eax
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
add eax, ecx
mov byte [eax], dl
add dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x402153
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x228]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call fcn.004015ae
sub esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x10]
add eax, 0x3fffffff
lea edx, [eax*4]
mov eax, dword [ebp - 0x30]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004015ae
sub esp, 0xc
mov edx, 0
xor eax, dword [ebp - 0x40]
xor edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, ecx
xor eax, dword [ebp - 0x220]
xor edx, dword [ebp - 0x21c]
or eax, edx
sete al
test al, al
je 0x402379
mov eax, dword [ebp - 0x10]
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp - 0x34]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
jb 0x402374
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
add eax, edx
cmp dword [ebp - 0x14], eax
jae 0x402374
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
jmp 0x4022aa
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x18c]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov byte [edx], al
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2e
je 0x4022c1
add dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4022c2
cmp dword [ebp - 0xc], 0x3b
jbe 0x40227f
jmp 0x4022c2
nop
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x18c], 0x64
mov eax, dword [ebp - 0xc]
add eax, 2
mov byte [ebp + eax - 0x18c], 0x6c
mov eax, dword [ebp - 0xc]
add eax, 3
mov byte [ebp + eax - 0x18c], 0x6c
mov eax, dword [ebp - 0xc]
add eax, 4
mov byte [ebp + eax - 0x18c], 0
mov eax, dword [ebp - 0xc]
add eax, 1
add dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
jmp 0x402328
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x20c]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x40233d
cmp dword [ebp - 0xc], 0x7e
jbe 0x40230c
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
lea eax, [ebp - 0x20c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401c13
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x4023a0
sub dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x402390
cmp dword [ebp - 0x14], 0
jne 0x402390
mov eax, 1
jmp 0x402395
mov eax, 0
test al, al
jne 0x4021be
mov eax, dword [ebp - 0x14]
leave
ret