Function at 0x100026f0
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x24
push ebp
xor ebp, ebp
cmp ecx, 0x40
jae 0x10002710
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 0x24
ret 8
mov eax, dword [esp + 0x2c]
mov edx, 0x5a4d
cmp word [eax], dx
je 0x10002732
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 0x24
ret 8
push edi
mov edi, dword [eax + 0x3c]
lea edx, [edi + 0xf8]
cmp ecx, edx
jae 0x10002752
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
add edi, eax
cmp dword [edi], 0x4550
jne 0x10002767
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x1000277c
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
push ebx
mov ebx, dword [edi + 0x38]
test bl, 1
je 0x1000279b
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
movzx eax, word [edi + 6]
movzx ecx, word [edi + 0x14]
push esi
lea ecx, [ecx + edi + 0x18]
test eax, eax
jbe 0x100027ce
add ecx, 0xc
mov esi, eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x100027be
add eax, ebx
jmp 0x100027c0
add eax, edx
cmp eax, ebp
jbe 0x100027c6
mov ebp, eax
add ecx, 0x28
sub esi, 1
jne 0x100027b1
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebp - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x1000280c
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x10002837
push 4
push 0x3000
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x1000285b
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x1000286f
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], 0x100026b0
mov dword [esi + 0x20], 0x100026c0
mov dword [esi + 0x24], 0x100026e0
mov dword [esi + 0x28], 0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x54]
push edx
call fcn.10002120
test eax, eax
je 0x10002959
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebp
call ebx
mov edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x38]
mov ebx, eax
call fcn.10002080
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x3c]
push esi
push edi
add ebx, ecx
push edx
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.10002140
test eax, eax
je 0x10002959
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x10002909
push eax
mov eax, esi
call fcn.100024a0
mov dword [esi + 0x18], eax
jmp 0x10002910
mov dword [esi + 0x18], 1
call fcn.10002530
test eax, eax
je 0x10002959
push esi
call fcn.10002300
test eax, eax
je 0x10002959
mov eax, esi
call fcn.10002460
test eax, eax
je 0x10002959
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1000298e
cmp dword [esi + 0x14], 0
je 0x1000297d
push 0
push 1
add ebp, eax
push 0x10000000
call ebp
test eax, eax
jne 0x1000296a
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10002a90
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret 8
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x24
ret 8
add eax, ebp
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x24
ret 8
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x24
ret 8