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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, 0x80000000
mov edi, 1
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov eax, 3
mov dword [ebp - 0x3c], eax
mov eax, 0x80
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, esp
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x80
mov dword [eax + 0x10], 3
mov dword [eax + 0xc], 0
mov dword [eax + 8], 1
mov dword [eax + 4], 0x80000000
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edi
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ecx, 0xffffffff
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ecx
jne 0x438786
lea eax, [0x7b332c]
add eax, 0x30
lea ecx, str.error:_could_not_open_file___s_._n
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0076e944
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x5c], eax
jmp 0x438a1f
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [ebp - 0x60], eax
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4387ed
lea eax, [0x7b332c]
add eax, 0x30
lea ecx, str.error:_could_not_determine_size_of_file___s_._n
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0076e944
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x64], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x10], 0x37
mov dword [ebp - 0x68], eax
jmp 0x438a1f
xor eax, eax
mov ecx, 0x1000
mov edx, 4
mov esi, dword [ebp - 0x20]
add esi, 1
mov edi, esp
mov dword [edi + 4], esi
mov dword [edi + 0xc], 4
mov dword [edi + 8], 0x1000
mov dword [edi], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], edx
call sub.KERNEL32.DLL_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x438875
lea eax, [0x7b332c]
add eax, 0x30
lea ecx, str.error:_could_not_allocate_memory_for_file___s_._n
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0076e944
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x78], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x7c], eax
jmp 0x438a1f
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jae 0x438920
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x28]
mov ebx, esp
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], esi
mov dword [ebx], edx
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x84], ecx
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 0
jne 0x438912
lea eax, [0x7b332c]
add eax, 0x30
lea ecx, str.error:_could_not_read_file___s_._n
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0076e944
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x88], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x10], 0x37
mov dword [ebp - 0x8c], eax
jmp 0x438a1f
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
jmp 0x43887c
lea eax, [ebp - 0x2c]
lea ecx, [0x7967ee]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x2c], 4
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0076d184
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x438a03
mov eax, dword [ebp - 0x30]
movsx eax, byte [eax]
cmp eax, 0
je 0x438998
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x90], eax
call fcn.0076d774
mov ecx, dword [ebp - 0x90]
add ecx, eax
add ecx, 0xffffffff
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
cmp eax, 0xd
jne 0x438996
mov eax, dword [ebp - 0x34]
mov byte [eax], 0
jmp 0x438998
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00438108
test al, 1
jne 0x4389a9
jmp 0x4389c4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004384e8
jmp 0x4389cf
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00439ba8
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [0x7967ee]
lea esi, [ebp - 0x14]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [ebp - 0x94], eax
call fcn.0076d184
mov dword [ebp - 0x30], eax
jmp 0x43894d
mov eax, dword [ebp - 0x1c]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x10]
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret