Function at 0x1000b2e1
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 0x1000b312
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 0x1000b319
cmp ebx, dword [ebp + 8]
jae 0x1000b319
xor eax, eax
jmp 0x1000b4ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1000b32a
xor eax, eax
inc eax
jmp 0x1000b4fe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1000b33c
cmp ecx, edx
jae 0x1000b3a0
cmp dword [eax + 4], 0
je 0x1000b345
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1000b331
cmp dword [ebp + 8], 0
je 0x1000b35f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1000b3a0
cmp eax, esi
jae 0x1000b3a0
mov ecx, dword [0x1000d2e0]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x1000b381
cmp dword [eax*4 + 0x1000d2e8], esi
je 0x1000b3a7
inc eax
cmp eax, ecx
jl 0x1000b373
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 0x1000b417
mov eax, dword [ebp + 8]
jmp 0x1000b419
xor eax, eax
jmp 0x1000b4fe
test eax, eax
jle 0x1000b322
xor edx, edx
mov ebx, 0x1000d328
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x1000b322
cmp dword [eax*4 + 0x1000d2e8], esi
je 0x1000b3f6
lea eax, [ecx - 1]
test eax, eax
jl 0x1000b3e3
cmp dword [eax*4 + 0x1000d2e8], esi
je 0x1000b3df
dec eax
jns 0x1000b3d3
test eax, eax
jge 0x1000b3f4
cmp ecx, 0x10
jge 0x1000b3ef
inc ecx
mov dword [0x1000d2e0], ecx
lea eax, [ecx - 1]
jmp 0x1000b3f6
je 0x1000b40e
xor edx, edx
test eax, eax
jl 0x1000b40e
lea ecx, [edx*4 + 0x1000d2e8]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x1000b3fc
xor eax, eax
xchg dword [ebx], eax
jmp 0x1000b322
xor eax, eax
test eax, eax
je 0x1000b4fc
cmp dword [ebp - 8], 0x1000000
jne 0x1000b4fc
test byte [ebp - 0xc], 0xcc
je 0x1000b48e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1000b4fc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1000b4fc
cmp word [eax + 0x18], 0x10b
jne 0x1000b4fc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1000b4fc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1000b48e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1000b48e
test byte [ecx + 0x27], 0x80
jne 0x1000b3a0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x1000d328
xchg dword [edx], ecx
test ecx, ecx
jne 0x1000b4fe
mov ecx, dword [0x1000d2e0]
test ecx, ecx
mov edx, ecx
jle 0x1000b4bd
lea eax, [ecx*4 + 0x1000d2e4]
cmp dword [eax], esi
je 0x1000b4bd
dec edx
sub eax, 4
test edx, edx
jg 0x1000b4b1
test edx, edx
jne 0x1000b4ee
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1000b4ca
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1000b4e2
lea eax, [edx*4 + 0x1000d2e8]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x1000b4d0
cmp ecx, 0x10
jge 0x1000b4ee
inc ecx
mov dword [0x1000d2e0], ecx
xor eax, eax
mov ecx, 0x1000d328
xchg dword [ecx], eax
jmp 0x1000b322
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret