Function at 0x1000bf60
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
push 0x1000
mov dword [esp + 0x40], edx
mov ebx, ecx
mov dword [esp + 0x18], 0
call fcn.1000e3a6
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x1000bf9a
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push 0
xorps xmm0, xmm0
push ebx
movlpd qword [esp + 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x30]
push eax
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000bfe7
push edi
xor bl, bl
call fcn.1000e356
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
mov byte [esp + 0x13], 1
cmp word [edi], ax
jne 0x1000c011
mov ecx, dword [edi + 0x3c]
cmp ecx, 0x1000
jg 0x1000c011
cmp dword [ecx + edi], 0x4550
lea eax, [ecx + edi]
mov dword [esp + 0x20], eax
je 0x1000c01b
mov byte [esp + 0x13], 0
jmp 0x1000c25a
movzx esi, word [eax + 6]
add edi, 0x18
movzx eax, word [eax + 0x14]
add eax, ecx
mov ecx, esi
add edi, eax
mov edx, edi
call fcn.1000c270
test esi, esi
je 0x1000c04a
mov eax, esi
lea esp, [esp]
xorps xmm0, xmm0
movq qword [edi], xmm0
dec eax
jne 0x1000c040
lea eax, [esp + 0x14]
mov ecx, edi
push eax
lea edx, [esi + esi*4]
push esi
shl edx, 3
call fcn.1000d950
mov eax, dword [esp + 0x28]
mov edx, edi
mov ecx, esi
push dword [eax + 0x80]
call fcn.1000c300
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1000c101
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x84]
push eax
mov dword [esp + 0x24], eax
call fcn.1000e3a6
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000c256
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
push ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.1000d950
push dword [esp + 0x20]
call fcn.1000e356
add esp, 0xc
mov eax, esi
shl eax, 4
push eax
mov dword [esp + 0x30], eax
call fcn.1000e3a6
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1000c256
test esi, esi
je 0x1000c191
mov dword [esp + 0x18], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
push dword [eax]
mov edx, edi
mov dword [esp + 0x34], 0
mov ecx, esi
call fcn.1000c300
add esp, 4
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
push 0
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x34]
push eax
push 0x10
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x10
add eax, 0x28
dec dword [esp + 0x28]
mov dword [esp + 0x1c], eax
jne 0x1000c132
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
mov ecx, eax
call fcn.1000d950
add esp, 8
test esi, esi
je 0x1000c226
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
nop
push dword [eax - 4]
mov edx, edi
mov dword [esp + 0x34], 0
mov ecx, esi
call fcn.1000c300
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x44], 0
mov ecx, dword [ecx]
shr ecx, 1
add eax, ecx
lea ecx, [esp + 0x44]
push 0
push ecx
push eax
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x34]
push eax
push 0x10
push dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x10
add eax, 0x28
dec dword [esp + 0x28]
mov dword [esp + 0x18], eax
jne 0x1000c1c0
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push eax
push dword [esp + 0x18]
call fcn.1000d950
push ebx
call fcn.1000e356
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov dword [ecx], eax
mov edi, dword [esp + 0x24]
mov bl, byte [esp + 0x13]
push edi
call fcn.1000e356
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret