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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x410008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], eax
push esi
push edi
test ebx, ebx
je 0x401cec
push 0x1000
call fcn.0040a48e
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
push 0
push 0x1000
push edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x401ce3
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x7c]
mov eax, dword [eax + edi + 0x78]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x401ce3
push ecx
call fcn.0040a48e
mov ecx, dword [ebp - 0x18]
add esp, 4
add ecx, dword [ebp - 0x10]
mov ebx, eax
push 0
push dword [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x401b79
push ebx
call fcn.0040a497
push edi
call fcn.0040a497
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov edx, ebx
sub edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, ecx
and eax, 0xffffff
mov dword [ebp - 0x24], edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffff
ja 0x401c09
sub cx, word [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
inc cx
movzx ecx, cx
push ebx
lea eax, [eax + ecx*4]
mov esi, dword [eax + edx]
call fcn.0040a497
push edi
call fcn.0040a497
mov eax, dword [ebp - 0x10]
add esp, 8
cmp esi, eax
jb 0x401bf0
add eax, dword [ebp - 0x14]
cmp esi, eax
jae 0x401bf0
push esi
lea ecx, [ebp - 0x38]
call fcn.00401d00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
pop edi
add eax, esi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x18]
dec edi
xor eax, eax
mov dword [ebp - 0x1c], eax
lea esi, [eax + edi]
mov eax, dword [ebx + 0x20]
shr esi, 1
lea eax, [eax + esi*4]
mov eax, dword [eax + edx]
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c42
test dl, dl
je 0x401c3e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c42
add eax, 2
add ecx, 2
test dl, dl
jne 0x401c22
xor eax, eax
jmp 0x401c47
sbb eax, eax
or eax, 1
test eax, eax
jns 0x401c53
lea eax, [esi + 1]
mov dword [ebp - 0x1c], eax
jmp 0x401c5b
jle 0x401c89
mov eax, dword [ebp - 0x1c]
lea edi, [esi - 1]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp eax, edi
jbe 0x401c12
push ebx
call fcn.0040a497
push dword [ebp - 0x28]
call fcn.0040a497
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x24]
push ebx
lea eax, [eax + esi*2]
mov esi, dword [ebp - 0x24]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
call fcn.0040a497
push dword [ebp - 0x28]
call fcn.0040a497
add esp, 8
test esi, esi
je 0x401cec
mov eax, dword [ebp - 0x10]
cmp esi, eax
jb 0x401cc6
add eax, dword [ebp - 0x14]
cmp esi, eax
jb 0x401bd6
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040a497
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a480
mov esp, ebp
pop ebp
ret