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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xe0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 3
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
cmp dword [ebp + 0xc], 0
jne 0x401641
mov ebx, 0
mov esi, 0
jmp 0x4018ab
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40167d
mov ebx, 0
mov esi, 0
jmp 0x4018ab
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x10], 0
je 0x401765
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4016da
mov ebx, 0
mov esi, 0
jmp 0x4018ab
mov eax, dword [ebp - 0x10]
add eax, 0x3fffffff
lea edx, [eax*4]
mov eax, dword [ebp - 0x34]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00401562
test eax, eax
sete al
test al, al
je 0x40173f
mov eax, dword [ebp - 0x10]
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp - 0x38]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
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 - 0xc], eax
sub dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x401756
cmp dword [ebp - 0xc], 0
jne 0x401756
mov eax, 1
jmp 0x40175b
mov eax, 0
test al, al
jne 0x4016da
jmp 0x401782
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0x14]
sub edx, eax
shl edx, 2
mov eax, dword [ebp - 0x30]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x2c]
jb 0x4018a6
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
add eax, edx
cmp dword [ebp - 0xc], eax
jae 0x4018a6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], 0
jmp 0x4017dc
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x84]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov byte [edx], al
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2e
je 0x4017f3
add dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4017f4
cmp dword [ebp - 0x14], 0x3b
jbe 0x4017b1
jmp 0x4017f4
nop
mov eax, dword [ebp - 0x14]
add eax, 1
mov byte [ebp + eax - 0x84], 0x64
mov eax, dword [ebp - 0x14]
add eax, 2
mov byte [ebp + eax - 0x84], 0x6c
mov eax, dword [ebp - 0x14]
add eax, 3
mov byte [ebp + eax - 0x84], 0x6c
mov eax, dword [ebp - 0x14]
add eax, 4
mov byte [ebp + eax - 0x84], 0
mov eax, dword [ebp - 0x14]
add eax, 1
add dword [ebp - 0x40], eax
mov dword [ebp - 0x14], 0
jmp 0x40185a
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x40186f
cmp dword [ebp - 0x14], 0x3e
jbe 0x40183e
lea edx, [ebp - 0xc4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
lea eax, [ebp - 0xc4]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x84]
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 - 0xc], eax
mov esi, 1
lea eax, [ebp - 0xcc]
mov ecx, eax
call fcn.00500ca8
cmp esi, 1
jne 0x4018c1
nop
mov ebx, dword [ebp - 0xc]
mov eax, ebx
jmp 0x401933
add esp, 0xe0
pop ebx
pop esi
pop ebp
ret