Function at 0x1001b020
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1001b06d
xor eax, eax
jmp 0x1001b4ab
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x200
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001b0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1001b0fc
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x200
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001b169
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x1001b196
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x5c]
and eax, 2
jne 0x1001b1bb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
mov edx, dword [ebp - 4]
mov ax, word [edx + 6]
mov word [ebp - 0x238], ax
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x14]
add eax, 0x18
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x200
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001b242
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
lea ecx, [ebp - 0x230]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x1001b25d
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
movzx eax, word [ebp - 0x238]
cmp dword [ebp - 0xc], eax
jae 0x1001b32f
push str..text
mov ecx, dword [ebp - 8]
push ecx
call fcn.10016d00
add esp, 8
test eax, eax
je 0x1001b306
mov edx, dword [ebp - 0x18]
add edx, 0x28
mov eax, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x200
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001b2f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001b4ab
lea eax, [ebp - 0x230]
mov dword [ebp - 8], eax
jmp 0x1001b254
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
jmp 0x1001b254
jmp 0x100578b2
mov esp, ebp
pop ebp
ret 0x10