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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7fbe
mov eax, dword fs:[0]
push eax
sub esp, 0xad0
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa88], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa74], 0
push 0
push eax
call fcn.00588800
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 1
push 3
push 0
push 3
push SysReAllocString
push dword [ebx + 0x910]
call esi
mov edi, eax
mov dword [ebp - 0xa80], edi
cmp edi, 0xffffffff
je 0x4a48a6
cmp dword [ebx + 0x918], 0
je 0x4a48a6
push 0
lea eax, [ebp - 0xaa0]
mov dword [ebp - 0xaa4], 9
push eax
push 9
push edi
mov dword [ebp - 0xaa0], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa68]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4924
push 0
push 1
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, dword [ebx + 0x918]
mov dword [ecx + 0xb94], eax
mov eax, dword [ebx + 0x918]
cmp dword [eax + 0xb94], 0xffffffff
jne 0x4a44d8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa6c], esp
push 0x6b1070
call fcn.00420d90
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 4]
call fcn.004e1110
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a491a
push 0
lea eax, [ebp - 0xa68]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0xa94]
movlpd qword [ebp - 0xa94], xmm0
push eax
push edi
movq qword [ebp - 0xa9c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xa68]
push eax
push 8
lea eax, [ebp - 0xa9c]
push eax
mov eax, dword [ebx + 0x918]
push 0
push 0
push 0x7405c
push dword [eax + 0xb94]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a48ca
mov eax, dword [ebp - 0xa94]
cmp eax, dword [ebp - 0xa9c]
jne 0x4a48ca
mov eax, dword [ebp - 0xa90]
cmp eax, dword [ebp - 0xa98]
jne 0x4a48ca
xor esi, esi
mov dword [ebp - 0xa64], 0
lea ecx, [ebp - 0xadc]
mov dword [ebp - 0xa70], esi
call fcn.00465160
mov dword [ebp - 4], 2
push 0x848
call fcn.005a59ed
add esp, 4
mov dword [ebp - 0xa78], eax
test eax, eax
jne 0x4a45e8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa6c], esp
push 0x6b1370
call fcn.00420d90
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 4]
call fcn.004e1110
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, ebx
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xadc]
call fcn.004651a0
jmp 0x4a4924
push 0x848
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0xa68]
push 0
push eax
push 4
lea eax, [ebp - 0xa74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xa74]
xor ecx, ecx
mov dword [ebp - 0xa7c], ecx
test eax, eax
jle 0x4a487f
push eax
push ecx
push 0x40d
mov ecx, ebx
call dword [sym.imp.ycomuiu.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_]
push 0
lea eax, [ebp - 0xa68]
push eax
push 4
lea eax, [ebp - 0xa64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xa68]
push eax
push dword [ebp - 0xa64]
push dword [ebp - 0xa78]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xa64]
call fcn.005a59ed
mov ecx, dword [ebp - 0xa64]
add esp, 4
mov edx, eax
xor edi, edi
mov dword [ebp - 0xa6c], edx
test ecx, ecx
je 0x4a46ed
mov eax, dword [ebp - 0xa78]
mov esi, edx
sub eax, edx
mov dword [ebp - 0xa84], eax
mov ebx, eax
nop
mov ecx, 0x6b88a0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a46b0
mov eax, dword [ebp - 0xa70]
sub ecx, edx
sar ecx, 1
xor edx, edx
div ecx
mov cl, byte [ebx + esi]
inc edi
xor cl, byte [edx*2 + 0x6b88a0]
mov byte [esi], cl
inc esi
mov ecx, dword [ebp - 0xa64]
cmp edi, ecx
jb 0x4a46a0
mov ebx, dword [ebp - 0xa88]
mov esi, dword [ebp - 0xa70]
lea eax, [ecx + ecx*4]
inc esi
shl eax, 2
push eax
mov dword [ebp - 0xa70], esi
call fcn.00560596
mov ecx, dword [ebp - 0xa64]
add esp, 4
mov edi, dword [ebp - 0xa6c]
mov esi, eax
mov dword [ebp - 0xab0], ecx
lea ecx, [ebp - 0xadc]
mov word [ebp - 0xac4], 0x101
mov dword [ebp - 0xac0], edi
mov dword [ebp - 0xaac], 0
mov dword [ebp - 0xabc], esi
mov dword [ebp - 0xaa8], 0
call fcn.00465860
push edi
call fcn.005a51fb
add esp, 4
cmp dword [ebp - 0xaa8], 0x848
je 0x4a4770
push 1
push esi
call fcn.005603ff
add esp, 8
jmp 0x4a4858
push 0x848
lea eax, [ebp - 0xa60]
push esi
push eax
call fcn.00589190
push esi
call fcn.00560591
push 0x48
call fcn.00560437
add esp, 0x14
mov dword [ebp - 0xa8c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x650]
push 0xffffffffffffffff
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x858]
push ecx
lea ecx, [ebp - 0xa60]
push ecx
mov ecx, eax
call fcn.00494500
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x448]
mov dword [esi + 0x34], ecx
lea edi, [edx + 2]
mov ecx, dword [ebp - 0x228]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0xa6c], esi
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a4800
sub edx, edi
lea eax, [ebp - 0x448]
sar edx, 1
push edx
push eax
call fcn.0040c9d0
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x22c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0xa6c]
mov ecx, dword [ebx + 0x918]
push eax
add ecx, 0x9e4
call fcn.004a5370
mov ecx, dword [ebp - 0xa7c]
mov eax, dword [ebp - 0xa74]
inc ecx
mov esi, dword [ebp - 0xa70]
mov edi, dword [ebp - 0xa80]
mov dword [ebp - 0xa7c], ecx
cmp ecx, eax
jl 0x4a4627
push dword [ebp - 0xa78]
call fcn.005a51fb
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xadc]
call fcn.004651a0
mov ecx, dword [ebx + 0x918]
add ecx, 0xa04
cmp word [ebp - 0x204], 0x7b
jne 0x4a48eb
lea eax, [ebp - 0x204]
push eax
call fcn.004a7580
jmp 0x4a48f6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8c], esp
push 0x6b1478
call fcn.00420d90
mov dword [ebp - 4], 1
jmp 0x4a44ba
push dword [ebp - 0x210]
call fcn.004a74b0
mov ecx, dword [ebx + 0x918]
mov dword [ecx + 0xa34], eax
mov ecx, ebx
mov eax, dword [ebx + 0x908]
push dword [ebp - 0xa74]
mov dword [0x6b0c54], eax
call fcn.004a5080
push 1
mov ecx, ebx
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret