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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7f57
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
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 - 0x258], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xorps xmm0, xmm0
push 0
push 1
push 3
push 0
push 3
push SysReAllocString
push dword [ebx + 0x910]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x234], 0
movlpd qword [ebp - 0x254], xmm0
movlpd qword [ebp - 0x240], xmm0
call esi
mov edi, eax
mov dword [ebp - 0x248], edi
cmp edi, 0xffffffff
je 0x4a420d
cmp dword [ebx + 0x918], 0
je 0x4a420d
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x268], 9
push eax
push 9
push edi
mov dword [ebp - 0x264], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x228]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x228], 2
jle 0x4a3dc4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x6b1220
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 0x4a4364
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x228], 2
jne 0x4a3e0f
movzx ecx, word [ebp - 0x1f6]
sub ecx, 0x30
mov dword [ebp - 0x24c], ecx
test eax, eax
je 0x4a4364
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 0x4a3e84
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x6b1070
call fcn.00420d90
mov dword [ebp - 4], 1
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 0x4a435a
push 0
lea eax, [ebp - 0x21c]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0x240]
movq qword [ebp - 0x260], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push 8
lea eax, [ebp - 0x260]
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 0x4a427b
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x260]
jne 0x4a427b
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x25c]
jne 0x4a427b
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x230], esi
call fcn.00465160
mov dword [ebp - 4], 3
push 0x13d
call fcn.005a59ed
add esp, 4
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x4a3f9a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x6b1370
call fcn.00420d90
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
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 - 0x2a0]
call fcn.004651a0
jmp 0x4a4364
push 0x13d
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push eax
push 4
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x234]
xor ecx, ecx
mov dword [ebp - 0x244], ecx
test eax, eax
jle 0x4a41cd
nop dword [eax]
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 - 0x21c]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x238]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x224]
call fcn.005a59ed
mov ecx, dword [ebp - 0x224]
add esp, 4
mov edx, eax
xor edi, edi
mov dword [ebp - 0x220], edx
test ecx, ecx
je 0x4a40ad
mov eax, dword [ebp - 0x238]
mov esi, edx
sub eax, edx
mov dword [ebp - 0x22c], eax
mov ebx, eax
nop dword [eax + eax]
mov ecx, 0x6b88a0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4070
mov eax, dword [ebp - 0x230]
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 - 0x224]
cmp edi, ecx
jb 0x4a4060
mov ebx, dword [ebp - 0x258]
mov esi, dword [ebp - 0x230]
lea eax, [ecx + ecx*4]
inc esi
shl eax, 2
push eax
mov dword [ebp - 0x230], esi
call fcn.00560596
mov ecx, dword [ebp - 0x224]
add esp, 4
mov edi, dword [ebp - 0x220]
mov esi, eax
mov dword [ebp - 0x274], ecx
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x288], 0x101
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x26c], 0
call fcn.00465860
push edi
call fcn.005a51fb
add esp, 4
cmp dword [ebp - 0x26c], 0x13d
je 0x4a4131
push esi
call fcn.00560591
add esp, 4
jmp 0x4a41a6
push 0x13d
call fcn.00560437
push dword [ebp - 0x22c]
mov edi, eax
mov dword [ebp - 0x220], eax
mov ecx, 0x4f
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00560591
mov esi, dword [ebx + 0x918]
lea ecx, [ebp - 0x220]
add esp, 8
mov edi, dword [esi + 0x9dc]
push ecx
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp - 0x22c], eax
call fcn.004a5ab0
mov edx, dword [esi + 0x9e0]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4a4380
lea ecx, [edx + 1]
mov dword [esi + 0x9e0], ecx
mov ecx, dword [ebp - 0x22c]
mov dword [edi + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x234]
inc ecx
mov edi, dword [ebp - 0x248]
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x244], ecx
cmp ecx, eax
jl 0x4a3fe0
push dword [ebp - 0x238]
call fcn.005a51fb
add esp, 4
lea eax, [ebp - 0x21c]
push 0
push eax
push 8
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.004651a0
mov ecx, dword [ebp - 0x228]
cmp ecx, 2
jne 0x4a4230
mov eax, dword [ebx + 0x918]
mov ecx, dword [ebp - 0x24c]
mov dword [eax + 0xa80], ecx
mov ecx, dword [ebp - 0x228]
mov eax, dword [ebx + 0x918]
mov dword [eax + 0xa7c], ecx
mov eax, dword [ebx + 0x918]
mov dword [eax + 0xb88], 2
mov ecx, dword [ebx + 0x918]
mov eax, dword [ebx + 0x908]
add ecx, 0xa04
cmp word [ebp - 0x204], 0x7b
mov dword [0x6b0c54], eax
jne 0x4a429c
lea eax, [ebp - 0x204]
push eax
call fcn.004a7580
jmp 0x4a42a7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x6b1478
call fcn.00420d90
mov dword [ebp - 4], 2
jmp 0x4a3e66
push dword [ebp - 0x210]
call fcn.004a74b0
mov ecx, dword [ebx + 0x918]
mov dword [ecx + 0xa34], eax
mov ecx, ebx
push dword [ebp - 0x234]
call fcn.004a5080
mov ecx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x254]
test ecx, ecx
jne 0x4a42d8
test eax, eax
je 0x4a435a
cmp ecx, dword [ebp - 0x23c]
ja 0x4a435a
jb 0x4a42ea
cmp eax, dword [ebp - 0x240]
jae 0x4a435a
mov edx, dword [ebx + 4]
mov ecx, str.ResumeScan
push 0
push 4
call fcn.00495040
add esp, 8
cmp eax, 6
jne 0x4a435a
mov edi, dword [ebp - 0x240]
mov ecx, dword [ebx + 0x918]
mov edx, dword [ebp - 0x254]
sub edi, edx
mov esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x250]
sbb esi, eax
mov dword [ecx + 0xbd4], eax
mov eax, dword [ecx + 0xa34]
push 1
mov dword [ecx + 0xbb0], 1
mov dword [ecx + 0xbd0], edx
mov dword [ecx + 0xbd8], edi
mov dword [ecx + 0xbdc], esi
mov dword [ecx + 0xa9c], eax
call fcn.004b6f80
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
push str.list_T__too_long
call fcn.00562d3e
int3