Function at 0x10032180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101c77d0
push 0x100d5830
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x16c0
call fcn.100049da
push ebx
push esi
push edi
lea edi, [ebp - 0x16d8]
mov ecx, 0x5b0
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push eax
call fcn.100010ff
test eax, eax
je 0x100321e4
jmp 0x1003250e
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1074], 0
cmp dword [ebp - 0x102c], 0x7fffffff
jae 0x1003250e
lea eax, [ebp - 0x1020]
test eax, eax
je 0x1003250e
mov esi, esp
push 0x1c
lea eax, [ebp - 0x1050]
push eax
mov ecx, dword [ebp - 0x102c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x1080], eax
cmp dword [ebp - 0x1080], 0x1c
jne 0x100324f8
mov eax, dword [ebp - 0x1040]
and eax, 0x1000
je 0x100324e1
mov eax, dword [ebp - 0x1038]
and eax, 0x1000000
jne 0x100324e1
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x108c], eax
mov eax, dword [ebp - 0x1050]
add eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1098], eax
mov dword [ebp - 0x10a4], 0
jmp 0x100322a9
mov eax, dword [ebp - 0x10a4]
add eax, 0x1000
mov dword [ebp - 0x10a4], eax
mov eax, dword [ebp - 0x1044]
sub eax, 0x1000
cmp dword [ebp - 0x10a4], eax
ja 0x100324e1
mov eax, dword [ebp - 0x108c]
add eax, dword [ebp - 0x10a4]
cmp eax, dword [ebp - 0x1098]
jae 0x100324e1
mov dword [ebp - 0x10b0], 0
mov esi, esp
lea eax, [ebp - 0x10b0]
push eax
push 0x1000
lea ecx, [ebp - 0x1020]
push ecx
mov edx, dword [ebp - 0x108c]
add edx, dword [ebp - 0x10a4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x100324a4
mov dword [ebp - 0x10bc], 0
jmp 0x10032338
mov eax, dword [ebp - 0x10bc]
add eax, 1
mov dword [ebp - 0x10bc], eax
cmp dword [ebp - 0x10bc], 0xfc0
jae 0x100324a4
mov eax, dword [ebp - 0x10bc]
lea ecx, [ebp + eax - 0x1020]
mov dword [ebp - 0x105c], ecx
mov eax, dword [ebp - 0x105c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x1003249f
mov eax, 0x1000
sub eax, dword [ebp - 0x10bc]
mov ecx, dword [ebp - 0x105c]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
cmp eax, edx
jbe 0x1003249f
mov eax, dword [ebp - 0x10bc]
lea ecx, [ebp + eax - 0x1020]
mov edx, dword [ebp - 0x105c]
add ecx, dword [edx + 0x3c]
mov dword [ebp - 0x1068], ecx
mov eax, dword [ebp - 0x1068]
cmp dword [eax], 0x4550
jne 0x1003249f
mov dword [ebp - 0x10c8], 0
mov dword [ebp - 0x10d4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c8], 0
push 0
lea eax, [ebp - 0x10c8]
push eax
mov ecx, dword [ebp - 0x108c]
add ecx, dword [ebp - 0x10bc]
add ecx, dword [ebp - 0x10a4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003d28
mov dword [ebp - 0x10d4], eax
cmp dword [ebp - 0x10d4], 0
je 0x1003245a
cmp dword [ebp - 0x10c8], 0
je 0x1003245a
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x108c]
add eax, dword [ebp - 0x10bc]
add eax, dword [ebp - 0x10a4]
cdq
push edx
push eax
push 0
push 2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10c8]
push eax
mov ecx, dword [ebp - 0x10d4]
push ecx
call fcn.1000191f
mov dword [ebp - 4], 0xfffffffe
jmp 0x10032473
cmp dword [ebp - 0x10d4], 0
je 0x1003249f
mov eax, dword [ebp - 0x10d4]
push eax
call fcn.100053ad
add esp, 4
mov eax, dword [ebp - 0x10a4]
add eax, dword [ebp - 0x10c8]
mov dword [ebp - 0x10a4], eax
jmp 0x100324a4
jmp 0x10032329
mov eax, dword [ebp - 0x1074]
add eax, 0x1000
mov dword [ebp - 0x1074], eax
cmp dword [ebp - 0x1074], 0xc350
jb 0x100324dc
mov dword [ebp - 0x1074], 0
mov esi, esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.1000318e
jmp 0x10032298
mov eax, dword [ebp - 0x102c]
add eax, dword [ebp - 0x1044]
mov dword [ebp - 0x102c], eax
jmp 0x100321f8
mov eax, dword [ebp - 0x102c]
add eax, 0x1000
mov dword [ebp - 0x102c], eax
jmp 0x100321f8
push edx
mov ecx, ebp
push eax
lea edx, [0x1003254c]
call fcn.10004b97
pop eax
pop edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10004d22
add esp, 0x16d8
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0x10