Function at 0xffe14b2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0xffe14e3
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0xffe14ea
cmp ebx, dword [ebp + 8]
jae 0xffe14ea
xor eax, eax
jmp 0xffe16d0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xffe14fb
xor eax, eax
inc eax
jmp 0xffe16cf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xffe150d
cmp ecx, edx
jae 0xffe1571
cmp dword [eax + 4], 0
je 0xffe1516
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xffe1502
cmp dword [ebp + 8], 0
je 0xffe1530
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xffe1571
cmp eax, esi
jae 0xffe1571
mov ecx, dword [0xffec748]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0xffe1552
cmp dword [eax*4 + 0xffec750], esi
je 0xffe1578
inc eax
cmp eax, ecx
jl 0xffe1544
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0xffe15e8
mov eax, dword [ebp + 8]
jmp 0xffe15ea
xor eax, eax
jmp 0xffe16cf
test eax, eax
jle 0xffe14f3
xor edx, edx
mov ebx, 0xffec790
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0xffe14f3
cmp dword [eax*4 + 0xffec750], esi
je 0xffe15c7
lea eax, [ecx - 1]
test eax, eax
jl 0xffe15b4
cmp dword [eax*4 + 0xffec750], esi
je 0xffe15b0
dec eax
jns 0xffe15a4
test eax, eax
jge 0xffe15c5
cmp ecx, 0x10
jge 0xffe15c0
inc ecx
mov dword [0xffec748], ecx
lea eax, [ecx - 1]
jmp 0xffe15c7
je 0xffe15df
xor edx, edx
test eax, eax
jl 0xffe15df
lea ecx, [edx*4 + 0xffec750]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0xffe15cd
xor eax, eax
xchg dword [ebx], eax
jmp 0xffe14f3
xor eax, eax
test eax, eax
je 0xffe16cd
cmp dword [ebp - 8], 0x1000000
jne 0xffe16cd
test byte [ebp - 0xc], 0xcc
je 0xffe165f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xffe16cd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xffe16cd
cmp word [eax + 0x18], 0x10b
jne 0xffe16cd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xffe16cd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xffe165f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xffe165f
test byte [ecx + 0x27], 0x80
jne 0xffe1571
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0xffec790
xchg dword [edx], ecx
test ecx, ecx
jne 0xffe16cf
mov ecx, dword [0xffec748]
test ecx, ecx
mov edx, ecx
jle 0xffe168e
lea eax, [ecx*4 + 0xffec74c]
cmp dword [eax], esi
je 0xffe168e
dec edx
sub eax, 4
test edx, edx
jg 0xffe1682
test edx, edx
jne 0xffe16bf
push 0xf
pop ebx
cmp ecx, ebx
jg 0xffe169b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xffe16b3
lea eax, [edx*4 + 0xffec750]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0xffe16a1
cmp ecx, 0x10
jge 0xffe16bf
inc ecx
mov dword [0xffec748], ecx
xor eax, eax
mov ecx, 0xffec790
xchg dword [ecx], eax
jmp 0xffe14f3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret