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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c1b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 0x8000000
push 4
push 0
push 1
push SysReAllocStringLen
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x48d71c
cmp edi, 0xffffffff
jne 0x48d81f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x48d81f
mov esi, dword [ebx + 0xc]
push 0x5c
push esi
call fcn.00493e9b
add esp, 8
test eax, eax
jne 0x48d75b
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48da75
cmp edi, 0xffffffff
je 0x48da75
push edi
jmp 0x48da6f
sub eax, esi
mov dword [ebp - 0x4c], 0
sar eax, 1
lea ecx, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.00404760
mov ecx, dword [ebp - 0x4c]
mov eax, 0x570fe0
test ecx, ecx
mov byte [ebp - 4], 1
cmovne eax, ecx
push eax
call fcn.00418080
mov ecx, dword [ebp - 0x4c]
add esp, 4
shr eax, 0x1f
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x48d7b1
push ecx
call fcn.0040bd60
mov eax, dword [ebp - 0x20]
add esp, 4
test al, al
jne 0x48d73d
push 0
push 0x8000000
push 4
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x48d7ed
cmp edi, 0xffffffff
je 0x48d7ed
xor esi, esi
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48d7f4
mov eax, dword [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x48d7f6
xor eax, eax
mov edi, eax
test edi, edi
je 0x48d801
cmp edi, 0xffffffff
jne 0x48d81f
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48da75
cmp edi, 0xffffffff
je 0x48da75
push esi
jmp 0x48da6f
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x48d801
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48d801
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], edi
lea eax, [edi - 1]
cmp eax, 0xffffe
ja 0x48d947
push edi
call fcn.00491441
mov edi, eax
add esp, 4
test edi, edi
je 0x48d878
push dword [ebp - 0x1c]
push 0
push edi
call fcn.00493640
add esp, 0xc
jmp 0x48d87a
xor edi, edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x48d944
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48d93b
push 0
push 0x400
push 0
lea ecx, [ebp - 0x88]
call fcn.0048d120
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
push edi
call fcn.0043db60
cmp dword [ebp - 0x58], 0
jne 0x48d930
push dword [ebp - 0x34]
mov eax, dword [ebx + 0xc]
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b2d0
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.0048d1f0
lea ecx, [ebp - 0x88]
call fcn.004401a0
push edi
call fcn.0049144a
add esp, 4
test esi, esi
je 0x48d919
cmp esi, 0xffffffff
je 0x48d919
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x88]
call fcn.004401a0
push edi
call fcn.0049144a
add esp, 4
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov eax, 3
mov word [ebp - 0x7a], ax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x400
push 0x14
mov byte [ebp - 4], 6
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00491411
add esp, 4
test eax, eax
je 0x48d9ec
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x48d9ee
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
push dword [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
push dword [ebp - 0x28]
mov byte [ebp - 4], 7
push edi
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0041b2d0
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x88]
push eax
mov ecx, edi
call fcn.0048d1f0
lea ecx, [ebp - 0x88]
call fcn.004401a0
test esi, esi
je 0x48da39
cmp esi, 0xffffffff
je 0x48da39
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebx + 8]
push 0x60
push 0
push esi
call fcn.00493640
add esp, 0xc
mov ecx, esi
push 0
push 0x400
push 0
call fcn.0048d120
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov word [esi + 0x38], ax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x5c], al
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret