Function at 0x405200
Capabilities:
Parse pe header

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429ffc
push eax
mov dword fs:[0], esp
sub esp, 0x188
lea eax, [esp + 0xc]
lea ecx, [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x19c]
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
push 0x40
push ecx
push ebp
push ebx
call edi
test eax, eax
je 0x4054d5
cmp word [esp + 0x60], 0x5a4d
jne 0x4054d5
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xa4]
push 0xf8
add ecx, ebp
push eax
push ecx
push ebx
call edi
test eax, eax
je 0x4054d5
cmp dword [esp + 0xa0], 0x4550
jne 0x4054d5
mov eax, dword [esp + 0x118]
test eax, eax
je 0x4054d5
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x38]
push edx
push 0x28
add eax, ebp
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x4054d5
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
lea eax, [edx + edx]
push eax
call fcn.00405560
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1a0], 0
push ecx
lea ecx, [edx + edx]
mov edx, dword [esp + 0x60]
push ecx
add edx, ebp
push eax
push edx
push ebx
mov dword [esp + 0x34], eax
call edi
test eax, eax
je 0x4054c1
mov eax, dword [esp + 0x4c]
lea ecx, [eax*4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405560
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], eax
push edx
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x1ac], 1
add eax, ebp
push eax
push ebx
call edi
test eax, eax
je 0x4054b0
mov ecx, dword [esp + 0x50]
lea edx, [ecx*4]
lea ecx, [esp + 0x18]
push edx
call fcn.00405560
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 2
push ecx
lea ecx, [edx*4]
mov edx, dword [esp + 0x5c]
push ecx
add edx, ebp
push eax
push edx
push ebx
mov esi, eax
call edi
test eax, eax
je 0x40549f
mov eax, dword [esp + 0x1b0]
test eax, 0xffff0000
jne 0x4053df
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x40549f
sub eax, ecx
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jae 0x40549f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2c]
push 4
push edx
mov edx, dword [ecx + eax*4]
add edx, ebp
push edx
push ebx
call edi
test eax, eax
je 0x40549f
mov esi, dword [esp + 0x28]
jmp 0x40551f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov edi, ecx
inc edi
test eax, eax
jbe 0x40549f
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
xor esi, esi
push edi
mov si, word [ecx]
lea ecx, [esp + 0x28]
call fcn.00405560
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
add ecx, ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4054f2
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1b0]
push edi
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x405505
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 2
call fcn.00405580
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
inc eax
add esi, 2
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], edx
jb 0x40540a
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 1
call fcn.00405580
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 0
call fcn.00405580
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00405580
xor eax, eax
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 2
call fcn.00405580
jmp 0x40549f
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1a0], 2
mov esi, dword [ecx + esi*4]
lea ecx, [esp + 0x24]
add esi, ebp
call fcn.00405580
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 1
call fcn.00405580
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 0
call fcn.00405580
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00405580
mov eax, esi
jmp 0x4054d7