Function at 0x1090c10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 1
call fcn.0104e120
mov ebx, eax
test ebx, ebx
je 0x1090fc3
push 0x40
lea eax, [ebp - 0x180]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [edi + 0x478]
add esp, 0xc
push 0
push 0x40
lea ecx, [ebp - 0x180]
push ecx
push ebx
push esi
call edx
test eax, eax
je 0x1090fc3
push 0x150
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, 0x10
lea esi, [ebp - 0x180]
lea edi, [ebp - 0x2bc]
mov dword [ebp - 0x2d0], 0x150
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
add esp, 0xc
mov dword [ebp - 0x2cc], ebx
cmp word [ebp - 0x180], cx
jne 0x1090fc3
push pe_nt_image_headers32
lea edx, [ebp - 0x140]
push 0
push edx
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp + 0xc]
add esp, 0xc
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp + 8]
add ecx, ebx
push ecx
mov ecx, dword [eax + 0x478]
push edx
call ecx
test eax, eax
je 0x1090fc3
cmp dword [ebp - 0x140], 0x4550
mov eax, dword [ebp - 0x144]
mov ecx, 0x3e
lea esi, [ebp - 0x140]
lea edi, [ebp - 0x27c]
lea edx, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c8], edx
jne 0x1090fc3
mov ecx, 0x14c
cmp word [ebp - 0x13c], cx
je 0x1090d4e
pop edi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
cmp dword [ebp - 0xc0], edi
je 0x1090fc3
movzx edx, word [ebp - 0x12c]
lea esi, [edx + eax + 0x18]
xor eax, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
cmp ax, word [ebp - 0x13a]
jae 0x1090def
add esi, ebx
lea ebx, [ebx]
mov edx, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x28
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x478]
push esi
push edx
call ecx
test eax, eax
je 0x1090de0
cmp dword [ebp - 0x68], 0
jne 0x1090de0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xc0], eax
jb 0x1090de0
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax]
cmp dword [ebp - 0xc0], edx
jae 0x1090de0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
movzx eax, word [ebp - 0x13a]
inc edi
add esi, 0x28
cmp edi, eax
jb 0x1090d80
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
push ecx
push ebx
push edx
push eax
call fcn.01039de0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0xbc]
movzx ecx, ax
lea eax, [esi + esi*4]
add eax, eax
add eax, eax
mov dword [ebp - 0x14], ecx
lea ecx, [edx + eax + 7]
mov dword [ebp - 0x20], eax
and ecx, 0xfffffff8
mov eax, esi
shl eax, 4
add eax, ecx
xor edi, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
mov edx, eax
mov dword [ebp + 0x14], eax
test esi, esi
jbe 0x1090e6a
lea esp, [esp]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + edi*4]
lea ecx, [eax + 1]
mov dword [ebp + 0x14], ecx
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1090e50
sub eax, dword [ebp + 0x14]
inc edi
add eax, 4
and eax, 0xfffffffc
add edx, eax
cmp edi, esi
jb 0x1090e40
mov dword [ebp + 0x14], edx
test edx, edx
je 0x1090fc3
inc edx
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1090fc3
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
add eax, edx
add eax, dword [ebp - 0x124]
mov ecx, ebx
add eax, dword [ebp - 0x114]
add eax, ebx
cmp ebx, eax
jae 0x1090eb2
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push ecx
push edi
push eax
call fcn.0104df90
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1090fb0
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push 0x40
push edx
mov edx, dword [ecx + 0x428]
add eax, ebx
push eax
push edi
mov dword [ebp - 0x2c0], 0
call edx
test eax, eax
je 0x1090fb0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc0]
add eax, edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x478]
add ecx, ebx
push ecx
push edi
call eax
test eax, eax
je 0x1090fb0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x18]
sub edi, ebx
push edi
push eax
mov eax, dword [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x140]
push ecx
push esi
push edx
call fcn.01090b10
test eax, eax
je 0x1090fb0
mov eax, dword [ebp + 0x14]
push eax
push edi
mov edi, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x140]
push edx
push esi
push edi
call fcn.0104dbf0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x140]
push eax
push ebx
push esi
push edi
call fcn.010909d0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10