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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000431a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
push 0
push 0x80
push 3
push 0
push 1
push accept
mov edx, dword [ebp - 8]
add edx, 0x11c
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1000435b
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], 0x1b6b
jmp 0x1000437f
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
push 0x220
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000e640
add esp, 0xc
test eax, eax
je 0x100043bc
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 4], 0
jne 0x100043bc
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax]
or edx, dword [ecx + 4]
test edx, edx
jne 0x100043d1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x100043cc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100044e3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x100000
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x14], 0
jl 0x100044c7
jg 0x10004420
cmp dword [ebp - 0x18], 0
jbe 0x100044c7
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jl 0x1000444a
jg 0x1000443d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jbe 0x1000444a
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
jmp 0x10004456
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.1000e640
add esp, 0xc
test eax, eax
jne 0x100044ad
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100044e3
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x18]
sub ecx, edx
mov edx, dword [ebp - 0x14]
sbb edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x1000440a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret