Function at 0x48f4b0
Capabilities:
Get disk size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x48f7c5
xorps xmm0, xmm0
lea edi, [esi + 0x5d120]
push edi
movlpd qword [ebp - 0x240], xmm0
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 0xc], ax
xor eax, eax
push eax
push eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x48f890
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x48f52e
cmp eax, ecx
je 0x48f55d
cmp dword [ebp - 0x23c], eax
ja 0x48f55d
jb 0x48f540
cmp dword [ebp - 0x240], ecx
ja 0x48f55d
mov dword [esi + 0x2470], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x48f87a
cmp dword [esi + 0x26f0], 0
je 0x48f7c5
mov eax, dword [esi + 0x26e4]
lea ebx, [esi + 0x26e4]
push 0x208
mov dword [ebx + 4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0
call fcn.0056f6e0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x228], xmm0
push 2
push 0
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x6a
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x21c], 0x6a
jne 0x48f7db
mov ecx, 0x5d48a8
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48f646
test dx, dx
je 0x48f642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48f646
add eax, 4
add ecx, 4
test dx, dx
jne 0x48f620
xor eax, eax
jmp 0x48f64b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48f7db
push 1
push eax
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x238]
add eax, dword [ebp - 0x21c]
push 1
push 0
neg eax
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x230]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
jbe 0x48f791
mov eax, dword [ebp - 0x224]
lea edi, [esi + 0x5cfb8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x20
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x18]
add dword [edi + 8], eax
mov eax, dword [edi + 0x1c]
adc dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [edi + 0x14]
sbb eax, dword [edi + 0xc]
add ecx, 1
mov edx, dword [ebp - 0x22c]
adc eax, 0
mov dword [edi], 0
add dword [ebp - 0x234], ecx
mov dword [edi + 4], 0
adc edx, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x224], edi
cmp dword [ebx + 8], eax
je 0x48f758
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x48f76d
lea ecx, [ebp - 0x224]
push ecx
push eax
mov ecx, ebx
call fcn.00407870
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x220]
add edi, 0x20
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x230]
jb 0x48f6e0
mov eax, dword [ebp - 0x234]
jmp 0x48f79d
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
mov ecx, dword [esi + 0x5d100]
sub ecx, eax
mov eax, dword [esi + 0x5d104]
mov dword [esi + 0x5d118], ecx
sbb eax, edx
mov dword [esi + 0x5d110], ecx
mov dword [esi + 0x5d11c], eax
mov dword [esi + 0x5d114], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x48f7f1
mov dword [esi + 0x2468], 5
jmp 0x48f800
cmp eax, 0xa
jbe 0x48f800
mov dword [esi + 0x2468], 0xa
mov dword [esi + 0x5cfc0], 0
mov ecx, ebx
mov dword [esi + 0x5cfc4], 0
mov edx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
add edx, 0xffffffff
mov dword [esi + 0x5cfc8], edx
adc eax, 0xffffffff
mov dword [esi + 0x5cfcc], eax
lea eax, [esi + 0x5cfb8]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
call fcn.00490210
mov eax, dword [esi + 0x5d104]
push 0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0x5d100]
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x48f7c5
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550156
mov esp, ebp
pop ebp
ret