Function at 0x1000143f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
nop
mov eax, 0
push eax
mov eax, pe_nt_image_headers32
push eax
mov eax, 3
push eax
mov eax, 0
push eax
mov eax, 1
push eax
mov eax, 0x80000000
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x1000148f
mov eax, 0
jmp 0x10001657
mov eax, 0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
jne 0x100014c0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
jmp 0x10001657
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 8]
shl ecx, 1
inc ecx
push ecx
mov ecx, 8
push ecx
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x100014ed
jmp 0x10001500
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
jmp 0x10001657
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 8]
push ecx
mov ecx, 8
push ecx
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x10001529
jmp 0x10001551
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, 0
push ecx
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
jmp 0x10001657
mov eax, 0
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 0
je 0x1000157a
jmp 0x100015b7
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, 0
push ecx
push eax
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, 0
push ecx
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
jmp 0x10001657
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
mov dword [ebp - 0x18], eax
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x10001630
jmp 0x100015ee
mov eax, dword [ebp - 0x20]
mov ecx, eax
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100015d0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, eax
lea eax, [ebp - 0x1b]
push eax
movsx eax, byte [ecx]
push eax
call fcn.10001416
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, ecx
movsx ecx, byte [ebp - 0x1b]
mov byte [eax], cl
mov eax, dword [ebp - 0x18]
mov ecx, eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, ecx
movsx ecx, byte [ebp - 0x1a]
mov byte [eax], cl
jmp 0x100015e3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, 0
mov byte [ecx], al
call sub.kernel32.dll_GetProcessHeap
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, 0
push ecx
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0xc]
leave
ret