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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x404084]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0xffffffff
test eax, eax
je 0x401b0b
mov dword [0x404080], eax
cmp dword [esi + 0x7c], 0
jne 0x401b19
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x78]
add ecx, edi
lea edx, [eax + 0x7c0]
mov dword [0x404080], edx
cmp dword [ecx + 0x18], 0
mov dword [ebp - 8], ecx
je 0x401b11
cmp dword [ecx + 0x14], 0
je 0x401b11
xor edx, edx
push ebx
lea ebx, [eax + 0x7c1]
div ebx
mov dword [0x404080], ebx
mov edx, eax
mov eax, dword [ebp + 0xc]
inc edx
mov dword [0x404084], edx
test eax, 0xffff0000
jne 0x401b72
test ebx, ebx
je 0x401b6a
lea edx, [ebx + 7]
mov dword [0x404084], edx
sub eax, dword [ecx + 0x10]
jmp 0x401c7c
mov esi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
add edx, 0x7c0
mov dword [0x404080], edx
lea edx, [ebp - 0x114]
add esi, edi
add ebx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b90
lea eax, [ebp - 0x114]
push eax
call fcn.00401aa0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
add esp, 4
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jbe 0x401c30
lea ecx, [ecx]
mov edx, dword [esi]
lea eax, [edx + edi]
lea edx, [ebp - 0x218]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401bd0
lea eax, [ebp - 0x218]
push eax
call fcn.00401aa0
add esp, 4
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c15
test dl, dl
je 0x401c11
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c15
add eax, 2
add ecx, 2
test dl, dl
jne 0x401bf5
xor eax, eax
jmp 0x401c1a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401c48
mov eax, dword [ebp + 8]
inc eax
add esi, 4
add ebx, 2
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x10]
jb 0x401bc0
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x404080]
test ecx, ecx
je 0x401c4d
add ecx, 7
mov dword [0x404084], ecx
jmp 0x401c53
movzx eax, word [ebx]
jmp 0x401c33
mov ecx, dword [0x404084]
test ecx, ecx
je 0x401c5d
mov dword [0x404080], ecx
cmp eax, 0xffffffff
je 0x401c6a
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x14]
jbe 0x401c73
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
mov ebx, dword [0x404080]
mov ecx, dword [ecx + 0x1c]
lea edx, [ecx + eax*4]
mov eax, dword [edx + edi]
mov ecx, dword [esi + 0x78]
add eax, edi
lea edx, [ecx + edi]
cmp eax, edx
jb 0x401d18
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x7c]
add edx, ecx
add edx, edi
cmp eax, edx
jae 0x401d18
mov cl, byte [eax]
mov esi, eax
test cl, cl
je 0x401cbd
jmp 0x401cb0
cmp cl, 0x2e
je 0x401cbd
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x401cb0
test ebx, ebx
je 0x401ccc
lea ecx, [ebx + 7]
mov dword [0x404084], ecx
jmp 0x401cd2
mov ecx, dword [0x404084]
test ecx, ecx
je 0x401cdc
mov dword [0x404080], ecx
mov edi, esi
sub edi, eax
push edi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00402b10
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp + edi - 0x114], 0
call dword [0x404010]
inc esi
push esi
push eax
call fcn.00401ae0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x401d25
add ebx, 7
mov dword [0x404084], ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret