Function at 0x1002db10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push str.GetNativeSystemInfo
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002aa40
test eax, eax
jne 0x1002db61
xor eax, eax
jmp 0x1002df2d
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1002db86
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002aa40
test eax, eax
jne 0x1002dbaa
xor eax, eax
jmp 0x1002df2d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0x4550
je 0x1002dbd3
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 4]
cmp edx, 0x14c
je 0x1002dbf4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
and ecx, 1
je 0x1002dc11
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x50]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
jmp 0x1002dc46
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x54]
add eax, 0x28
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jae 0x1002dc88
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x10], 0
jne 0x1002dc69
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x58], edx
jmp 0x1002dc78
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x54]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x14]
jbe 0x1002dc86
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x14], ecx
jmp 0x1002dc34
lea edx, [ebp - 0x44]
push edx
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x40]
lea eax, [ecx + edx - 1]
mov ecx, dword [ebp - 0x40]
sub ecx, 1
not ecx
and eax, ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
sub edx, 1
not edx
and ecx, edx
cmp dword [ebp - 0x1c], ecx
je 0x1002dcd4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
push 4
push 0x3000
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002dd20
push 4
push 0x3000
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002dd20
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1002dd5a
push 0x8000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002df2d
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.1002aa40
test eax, eax
jne 0x1002ddc5
jmp 0x1002df1f
push 4
push 0x1000
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1002ab30
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002cc10
test eax, eax
jne 0x1002de31
jmp 0x1002df1f
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x4c], ecx
je 0x1002de5c
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002a740
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x18], eax
jmp 0x1002de66
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002d8f0
test eax, eax
jne 0x1002de7b
jmp 0x1002df1f
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.1002ca90
test eax, eax
jne 0x1002de90
jmp 0x1002df1f
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.1002a830
test eax, eax
jne 0x1002dea2
jmp 0x1002df1f
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x1002df10
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x14], 0
je 0x1002defd
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x60], edx
mov eax, dword [0x1008a9fc]
push eax
mov ecx, dword [0x1008a9f8]
push ecx
mov edx, dword [0x1008a9f4]
push edx
call dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1002def1
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002df1f
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x10], 1
jmp 0x1002df0e
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x2c], eax
jmp 0x1002df1a
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x48]
jmp 0x1002df2d
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1002c840
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18