Function at 0x404f10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x98]
push 0x40
push ecx
push ebx
push edi
call esi
test eax, eax
je 0x40517e
cmp word [ebp - 0x98], 0x5a4d
jne 0x40517e
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x190]
push 0xf8
add ecx, ebx
push eax
push ecx
push edi
call esi
test eax, eax
je 0x40517e
cmp dword [ebp - 0x190], 0x4550
jne 0x40517e
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40517e
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x58]
push edx
push 0x28
add eax, ebx
push ecx
push eax
push edi
call esi
test eax, eax
je 0x40517e
mov edx, dword [ebp - 0x44]
lea ecx, [ebp + 0xc]
lea eax, [edx + edx]
push eax
call fcn.00405200
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x34]
push ecx
add edx, ebx
push eax
push edx
push edi
mov dword [ebp - 0x20], eax
call esi
test eax, eax
je 0x40516f
mov eax, dword [ebp - 0x44]
lea ecx, [eax*4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00405200
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
push edx
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
add eax, ebx
push eax
push edi
call esi
test eax, eax
je 0x405163
mov ecx, dword [ebp - 0x40]
lea edx, [ecx*4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00405200
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
lea ecx, [edx*4]
mov edx, dword [ebp - 0x38]
push ecx
add edx, ebx
push eax
push edx
push edi
mov dword [ebp - 0x1c], eax
call esi
test eax, eax
je 0x405157
mov eax, dword [ebp + 0x10]
test eax, 0xffff0000
jne 0x4050b9
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jb 0x405157
sub eax, ecx
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
jae 0x405157
lea ecx, [ebp - 0x14]
lea edx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
push 4
push edx
mov edx, dword [ecx + eax*4]
add edx, ebx
push edx
push edi
call esi
test eax, eax
je 0x405157
mov esi, dword [ebp + 8]
jmp 0x4051b5
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov edi, ecx
inc edi
test eax, eax
jbe 0x405157
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov si, word [edx]
call fcn.00405200
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], eax
push ecx
mov ecx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
add eax, ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x405193
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
push edi
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4051a1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00405220
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
inc eax
add esi, 2
add edx, 4
cmp eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
jb 0x4050e2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00405220
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00405220
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00405220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00405220
jmp 0x405157
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
mov esi, dword [ecx + esi*4]
lea ecx, [ebp - 0x24]
add esi, ebx
call fcn.00405220
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00405220
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00405220
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00405220
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc