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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x10]
add eax, 0x78
mov dword [ebp - 0x50], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x28], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
push 0x104
push 0
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00402e50
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x260]
push edx
call fcn.00402e50
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x401790
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
jmp 0x4019d3
mov dword [ebp - 8], 0
jmp 0x4017a2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x14]
jae 0x4019d1
movzx eax, word [ebp + 0x10]
test eax, eax
jne 0x4017ef
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call fcn.004019e0
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0xc]
je 0x4017e2
mov dword [ebp - 0x38], 1
jmp 0x4017e9
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp - 0x28]
jbe 0x401978
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
cmp dword [eax + ecx*4], edx
jae 0x401978
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x40184c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x401960
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x15c], dl
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x40195b
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [edx]
mov byte [ebp + eax - 0x15c], cl
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x15b], 0x64
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x15a], 0x6c
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x159], 0x6c
movzx edx, word [ebp + 0x10]
test edx, edx
jne 0x40195b
cmp dword [ebp - 0x30], 0
jne 0x401959
lea eax, [ebp - 0x15c]
push eax
call dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x40192e
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
call fcn.00401610
add esp, 4
and eax, 0xffff
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401680
add esp, 0x14
jmp 0x4019d3
mov eax, dword [ebp - 0x24]
push eax
call fcn.004019e0
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00401680
add esp, 0x14
jmp 0x4019d3
jmp 0x401960
jmp 0x401843
push 0x104
push 0
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00402e50
add esp, 0xc
jmp 0x4019cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x20], eax
movzx ecx, word [ebp + 0x10]
test ecx, ecx
jne 0x4019af
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
cmp dword [eax + edx*4], 0
je 0x4019ad
cmp dword [ebp - 0x30], 0
jne 0x4019ad
mov eax, dword [ebp - 0x20]
jmp 0x4019d3
jmp 0x4019cc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + ecx*2]
movzx ecx, word [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
sub ecx, dword [edx + 0x10]
cmp eax, ecx
jne 0x4019cc
mov eax, dword [ebp - 0x20]
jmp 0x4019d3
jmp 0x401799
xor eax, eax
mov esp, ebp
pop ebp
ret