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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 8], 0
push 0x40
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.1000333d
test eax, eax
je 0x10004536
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x10004300
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004318
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebp - 4]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.1000333d
test eax, eax
jne 0x1000431f
xor eax, eax
jmp 0x10004535
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x10004335
cmp word [edi + 4], 0x14c
je 0x10004347
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004534
push ebx
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x100043a8
movzx edx, word [edi + 6]
test edx, edx
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
jbe 0x10004380
lea ecx, [eax + 0xc]
mov esi, dword [ecx + 4]
test esi, esi
mov eax, dword [ecx]
jne 0x10004370
add eax, ebx
jmp 0x10004372
add eax, esi
cmp eax, dword [ebp - 8]
jbe 0x1000437a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10004363
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea esi, [edx + eax - 1]
mov edx, dword [ebp - 8]
lea ecx, [eax - 1]
not ecx
lea eax, [eax + edx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
je 0x100043af
push 0xc1
jmp 0x10004403
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 8], eax
jne 0x100043db
push 4
push 0x3000
push esi
push eax
call ebx
test eax, eax
mov dword [ebp - 8], eax
je 0x10004401
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 0x1000440e
push 0x8000
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000451b
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
movzx eax, word [edi + 0x16]
mov ecx, dword [ebp - 4]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x30], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.1000333d
test eax, eax
je 0x10004512
push 4
push 0x1000
push dword [edi + 0x54]
push dword [ebp - 8]
call ebx
push dword [edi + 0x54]
mov ebx, eax
push dword [ebp + 8]
push ebx
call fcn.1000327b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
add eax, ebx
mov ebx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.10003359
test eax, eax
je 0x10004512
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x100044b0
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.10003655
mov dword [esi + 0x18], eax
jmp 0x100044b7
mov dword [esi + 0x18], 1
mov ecx, dword [ebp - 4]
push esi
call fcn.100036df
test eax, eax
je 0x10004512
mov ecx, dword [ebp - 4]
push esi
call fcn.10003505
test eax, eax
je 0x10004512
mov ecx, dword [ebp - 4]
push esi
call fcn.1000361d
test eax, eax
je 0x10004512
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000452d
add eax, ebx
cmp dword [esi + 0x14], 0
je 0x10004528
push dword [0x1007a4c4]
push dword [0x1007a4c0]
push dword [0x1007a4bc]
call eax
test eax, eax
jne 0x1000451f
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push esi
call fcn.100038fb
xor eax, eax
jmp 0x10004533
mov dword [esi + 0x10], 1
jmp 0x10004531
mov dword [esi + 0x2c], eax
jmp 0x10004531
and dword [esi + 0x2c], 0
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x18