Function at 0x100074c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x5a4d
push ebx
push esi
mov dword [ebp - 0xc], eax
cmp word [eax], cx
jne 0x100077c7
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100077c7
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000752a
push 4
push 0x2000
push dword [ebx + 0x50]
push eax
call esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100077c7
push edi
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov dword [ebp - 0x18], edi
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
push dword [ebx + 0x50]
push eax
call esi
push 4
push 0x1000
push dword [ebx + 0x54]
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push esi
call fcn.10010450
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x10], 0
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x14]
add eax, esi
mov dword [edi], eax
xor esi, esi
mov dword [eax + 0x34], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 8], edx
movzx eax, word [ecx + 0x14]
add eax, 0x28
cmp si, word [ecx + 6]
jae 0x10007637
lea edi, [eax + ecx]
nop
mov eax, dword [edi]
test eax, eax
jne 0x100075ef
mov esi, dword [ebx + 0x38]
test esi, esi
jle 0x1000761d
mov eax, dword [edi - 4]
push 4
push 0x1000
push esi
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push 0
push eax
mov dword [edi - 8], eax
call fcn.1000e720
jmp 0x10007617
push 4
push 0x1000
push eax
mov eax, dword [edi - 4]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi]
mov ecx, dword [edi + 4]
mov esi, eax
add ecx, dword [ebp - 0xc]
push ecx
push esi
call fcn.10010450
mov dword [edi - 8], esi
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
add edi, 0x28
mov esi, dword [ebp - 0x10]
inc esi
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
movzx eax, word [ecx + 6]
cmp esi, eax
jl 0x100075c0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
je 0x100076af
cmp dword [ecx + 0xa4], 0
jbe 0x100076af
mov edx, dword [edi + 4]
mov edi, dword [ecx + 0xa0]
add edi, edx
mov dword [ebp - 8], edx
mov eax, dword [edi]
test eax, eax
je 0x100076af
nop
mov ecx, dword [edi + 4]
lea ebx, [eax + edx]
xor esi, esi
lea edx, [edi + 8]
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x100076a3
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x10007693
mov ecx, dword [ebp - 0x10]
and eax, 0xfff
add dword [eax + ebx], ecx
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x10007675
mov eax, dword [edi + ecx]
add edi, ecx
mov edx, dword [ebp - 8]
test eax, eax
jne 0x10007660
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.10007380
test eax, eax
je 0x100077ad
mov edi, dword [ebx]
xor eax, eax
mov dword [ebp - 0x10], 0
movzx esi, word [edi + 0x14]
add esi, 0x28
cmp ax, word [edi + 6]
jae 0x1000777a
add esi, edi
nop
mov ebx, dword [esi + 0x14]
mov edx, dword [esi]
test ebx, 0x2000000
je 0x100076fe
push 0x4000
push edx
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000775f
mov ecx, ebx
mov eax, ebx
shr eax, 0x1e
and eax, 1
shr ecx, 0x1d
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, ebx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [eax*4 + 0x1002902c]
mov eax, ebx
mov dword [ebp - 0xc], ecx
or dword [ebp - 0xc], 0x200
and eax, 0x4000000
mov eax, dword [ebp - 0xc]
cmove eax, ecx
test edx, edx
jne 0x10007750
test bl, 0x40
je 0x10007745
mov edx, dword [edi + 0x20]
jmp 0x1000774c
test bl, bl
jns 0x1000775f
mov edx, dword [edi + 0x24]
test edx, edx
je 0x1000775f
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp - 0x18]
add esi, 0x28
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebx]
movzx eax, word [edi + 6]
cmp ecx, eax
jl 0x100076e0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x1000779a
mov ecx, dword [ebp - 0x14]
add eax, ecx
je 0x100077ad
push 0
push 1
push ecx
call eax
test eax, eax
je 0x100077ad
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c111
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10007870
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c111
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c111
mov esp, ebp
pop ebp
ret