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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8a93
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
movzx edi, word [ebp + 8]
lea edx, [ebp - 0x228]
xor esi, esi
mov word [ebp - 0x228], di
xor eax, eax
lea ecx, [ebx + 0x78]
mov word [ebp - 0x226], ax
lea eax, [edx + 2]
mov dword [ebp - 0x21c], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a89c0
sub edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x228]
sar edx, 1
push edx
push eax
call fcn.0040c9d0
push 0x64edf4
lea ecx, [ebp - 0x224]
call fcn.0040c2f0
mov dword [ebp - 4], 0
mov edx, eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.0046e750
mov byte [ebp - 4], 1
mov edx, eax
push 0x3a
lea ecx, [ebp - 0x220]
call fcn.0046e810
add esp, 8
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8a3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8a60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
je 0x4a8e13
push 0
lea ecx, [ebp - 0x248]
push ecx
push 8
lea ecx, [ebp - 0x23c]
push ecx
push 0
push 0
push 0x7405c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a8aca
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], eax
jmp 0x4a8b54
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040c950
add eax, 0x10
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x218]
push 0x639ee0
push 0x63d048
call fcn.00414310
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8b54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x20]
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
mov ecx, dword [ebp - 0x224]
mov edi, eax
add esp, 4
cdq
sub ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x244], ecx
sbb eax, edx
push 0
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push ecx
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a8cc2
push edi
call fcn.00560596
push edi
push 0
push eax
mov dword [ebp - 0x218], eax
call fcn.00588800
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0
push eax
push edi
push dword [ebp - 0x218]
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a8cac
cmp dword [ebp - 0x21c], edi
jne 0x4a8cac
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x211]
push 8
mov ecx, 0x80
lea edi, [ebp - 0x214]
push 0x64f678
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x4a8caa
mov ax, word [ebp - 0x209]
mov word [ebx + 8], ax
movzx eax, ax
test ax, ax
jne 0x4a8c2d
mov eax, 0x200
mov word [ebx + 8], ax
movzx esi, ax
movzx eax, byte [ebp - 0x207]
imul esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x4a8c4d
mov dword [ebx + 0xc], 0x1000
mov esi, 0x1000
movsx ecx, byte [ebp - 0x1d4]
test ecx, ecx
jle 0x4a8c5f
mov eax, esi
imul eax, ecx
jmp 0x4a8c68
neg ecx
mov eax, 1
shl eax, cl
movsx ecx, byte [ebp - 0x1d0]
mov dword [ebx + 0x10], eax
test ecx, ecx
jle 0x4a8c7d
mov eax, esi
imul eax, ecx
jmp 0x4a8c86
neg ecx
mov eax, 1
shl eax, cl
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1e0]
mul esi
mov ecx, eax
mov eax, dword [ebp - 0x1e4]
mul esi
mov esi, 1
add ecx, edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
jmp 0x4a8cac
xor esi, esi
push dword [ebp - 0x218]
call fcn.00560591
add esp, 4
test esi, esi
jne 0x4a8e10
push dword [ebx + 0x20]
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
movlpd qword [ebp - 0x234], xmm0
push 0
push eax
push 0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a8e00
push edi
call fcn.00560596
push edi
push 0
push eax
mov dword [ebp - 0x218], eax
call fcn.00588800
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0
push eax
push edi
push dword [ebp - 0x218]
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a8dee
cmp dword [ebp - 0x21c], edi
jne 0x4a8dee
mov esi, dword [ebp - 0x218]
lea edi, [ebp - 0x214]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ax, word [ebp - 0x209]
movzx ecx, ax
mov word [ebx + 8], ax
test cx, cx
jne 0x4a8d6e
mov eax, 0x200
mov word [ebx + 8], ax
mov ecx, eax
mov eax, dword [ebp - 0x208]
shr eax, 8
movzx esi, al
movzx eax, cx
imul esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x4a8d93
mov dword [ebx + 0xc], 0x1000
mov esi, 0x1000
movsx ecx, byte [ebp - 0x1d4]
mov edx, 1
test ecx, ecx
jle 0x4a8daa
mov eax, esi
imul eax, ecx
jmp 0x4a8db0
neg ecx
mov eax, edx
shl eax, cl
movsx ecx, byte [ebp - 0x1d0]
mov dword [ebx + 0x10], eax
test ecx, ecx
jle 0x4a8dc8
mov eax, esi
imul eax, ecx
mov dword [ebx + 0x14], eax
jmp 0x4a8dcf
neg ecx
shl edx, cl
mov dword [ebx + 0x14], edx
mov eax, dword [ebp - 0x1e0]
mul esi
mov ecx, eax
mov eax, dword [ebp - 0x1e4]
mul esi
mov esi, 1
add ecx, edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
push dword [ebp - 0x218]
call fcn.00560591
add esp, 4
test esi, esi
jne 0x4a8e10
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20], 0
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4a8e35
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4