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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b6ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], 3
lea ecx, [ebp - 0x38]
call fcn.00402c50
cmp dword [ebp + 0xc], 0
jne 0x4015ff
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x38]
call fcn.00402cf0
mov eax, dword [ebp - 0x3c]
jmp 0x401870
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
add eax, 0x78
mov dword [ebp - 0x30], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x401648
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x38]
call fcn.00402cf0
mov eax, dword [ebp - 0x48]
jmp 0x401870
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x58], edx
cmp dword [ebp + 0x10], 0
je 0x4016ef
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x4016a1
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x38]
call fcn.00402cf0
mov eax, dword [ebp - 0x4c]
jmp 0x401870
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4 - 4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00401160
add esp, 8
test eax, eax
jne 0x4016dc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x58]
movzx eax, word [edx + ecx*2 - 2]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
je 0x4016ed
cmp dword [ebp - 0x18], 0
je 0x4016a1
jmp 0x401704
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
sub edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
jb 0x401818
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx + 4]
cmp dword [ebp - 0x18], eax
jae 0x401818
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
jmp 0x401743
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40177a
cmp dword [ebp - 0x14], 0x3c
jae 0x40177a
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov cl, byte [edx]
mov byte [ebp + eax - 0xa4], cl
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x2e
jne 0x401778
jmp 0x40177a
jmp 0x40173a
mov ecx, dword [ebp - 0x14]
mov byte [ebp + ecx - 0xa3], 0x64
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0xa2], 0x6c
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0xa1], 0x6c
mov ecx, dword [ebp - 0x14]
mov byte [ebp + ecx - 0xa0], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
jmp 0x4017c5
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4017ec
cmp dword [ebp - 0x14], 0x3f
jae 0x4017ec
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov cl, byte [edx]
mov byte [ebp + eax - 0xe4], cl
jmp 0x4017bc
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0xe4], 0
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401210
add esp, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
call fcn.00402cf0
jmp 0x40184f
mov dword [ebp - 4], 0xffffffff
jmp 0x40185f
jmp 0x40186d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret