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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x4a7476
xorps xmm0, xmm0
lea edi, [esi + 0x5d120]
push edi
movlpd qword [ebp - 0x23c], 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 - 0x23c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a7540
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x4a71dd
cmp eax, ecx
je 0x4a720b
cmp dword [ebp - 0x238], eax
ja 0x4a720b
jb 0x4a71ef
cmp dword [ebp - 0x23c], ecx
ja 0x4a720b
pop edi
mov dword [esi + 0x2470], 2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
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 0x4a752a
cmp dword [esi + 0x26f0], 0
je 0x4a7476
mov eax, dword [esi + 0x26e4]
push ebx
lea ebx, [esi + 0x26e4]
mov dword [ebp - 0x218], 0
mov dword [ebx + 4], eax
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], 0
call fcn.004bcaf0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x224], xmm0
push 2
push 0
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 0x6a
lea eax, [ebp - 0x214]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x218], 0x6a
jne 0x4a748b
mov ecx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x214]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a72f6
test dx, dx
je 0x4a72f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a72f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a72d0
xor eax, eax
jmp 0x4a72fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a748b
push 1
push eax
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x234]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x218]
push 1
push 0
neg eax
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
jbe 0x4a7441
mov eax, dword [ebp - 0x220]
lea edi, [esi + 0x5cfb8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
push 0
lea eax, [ebp - 0x218]
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 - 0x228]
adc eax, 0
mov dword [edi], 0
add dword [ebp - 0x230], 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 - 0x228], edx
mov dword [ebp - 0x220], edi
cmp dword [ebx + 8], eax
je 0x4a7408
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x4a741d
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, ebx
call fcn.004952b0
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x21c]
add edi, 0x20
inc eax
mov dword [ebp - 0x21c], eax
cmp eax, dword [ebp - 0x22c]
jb 0x4a7390
mov eax, dword [ebp - 0x230]
jmp 0x4a744d
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
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
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x4a74a1
mov dword [esi + 0x2468], 5
jmp 0x4a74b0
cmp eax, 0xa
jbe 0x4a74b0
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 - 0x220], eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a9a50
mov eax, dword [esi + 0x5d104]
push 0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x5d100]
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4a7475
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
xor ecx, ebp
pop esi
call fcn.0048e99c
mov esp, ebp
pop ebp
ret