Function at 0x4718b7
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, 0x611e6b
call fcn.0060cc48
sub esp, 0x3c
mov eax, ecx
mov dword [ebp - 0x3c], eax
push ebx
push esi
mov eax, dword [eax]
mov ebx, edx
push edi
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], 0
je 0x471c2d
mov edx, dword [ebx + 4]
sub edx, dword [ebx]
cmp edx, 4
jb 0x471c2d
xor eax, eax
mov ecx, eax
mov edi, eax
mov esi, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
sar edx, 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x471a0c
mov eax, ecx
xorps xmm0, xmm0
mov ecx, dword [ebx]
shl eax, 2
mov dword [ebp - 0x20], eax
add ecx, eax
push 3
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x38], xmm0
push eax
call fcn.00405d36
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 0x24]
cmp eax, 3
sete bl
add ecx, 0xfffffff0
call fcn.00404ea9
test bl, bl
mov ebx, dword [ebp - 0x10]
je 0x471983
mov eax, dword [ebx]
add eax, dword [ebp - 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x47197b
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47197b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x471983
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
lea eax, [ebp - 0x38]
cmp eax, esi
jae 0x4719c4
cmp edi, eax
ja 0x4719c4
mov ecx, eax
sub ecx, edi
sar ecx, 3
mov dword [ebp - 0x20], ecx
cmp esi, dword [ebp - 0x18]
jne 0x4719b5
push ecx
lea ecx, [ebp - 0x48]
call fcn.00472240
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4719ed
mov eax, dword [edi + ecx*8]
mov dword [esi], eax
mov eax, dword [edi + ecx*8 + 4]
jmp 0x4719ea
cmp esi, dword [ebp - 0x18]
jne 0x4719de
push ecx
lea ecx, [ebp - 0x48]
call fcn.00472240
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4719ed
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
add esi, 8
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebx]
inc ecx
sar eax, 2
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jb 0x471910
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x24], eax
sub ecx, edi
mov edx, ecx
mov dword [ebp - 0x1c], ecx
sar edx, 3
mov dword [ebp - 0x34], edx
lea eax, [edx - 1]
test eax, eax
je 0x471b13
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 1]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], eax
mov esi, eax
cmp eax, edx
jae 0x471b00
mov eax, ecx
shl eax, 3
mov dword [ebp - 0x20], eax
mov ebx, eax
mov eax, dword [edi + ebx + 4]
cmp eax, dword [edi + esi*8 + 4]
jg 0x471a65
jl 0x471a5d
mov eax, dword [edi + ebx]
cmp eax, dword [edi + esi*8]
jae 0x471a65
mov ebx, esi
mov dword [ebp - 0x14], esi
shl ebx, 3
inc esi
cmp esi, edx
jb 0x471a49
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ecx
je 0x471afd
mov eax, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 2
mov eax, dword [eax]
mov eax, dword [eax + ebx]
sub eax, 0x10
push eax
call fcn.004067cf
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
shl edi, 2
mov ecx, dword [eax]
lea eax, [edi + ecx]
add ecx, ebx
push eax
call fcn.00406123
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebx]
add ecx, edi
call fcn.00406123
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [eax + edi]
mov edx, dword [eax + edi + 4]
mov eax, dword [ebp - 0x14]
mov eax, dword [edi + eax*8]
mov dword [ebx + edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [edi + eax*8 + 4]
mov dword [ebx + edi + 4], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [edi + eax*8], ecx
lea ecx, [esi - 0x10]
mov dword [edi + eax*8 + 4], edx
call fcn.00404ea9
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov ecx, eax
lea eax, [edx - 1]
cmp ecx, eax
jb 0x471a2c
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
test edx, edx
je 0x471b62
mov eax, dword [ebp + 8]
shl eax, 0x14
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edx
cmp dword [edi + ecx - 4], edx
jg 0x471b5f
jl 0x471b32
cmp dword [edi + ecx - 8], eax
jae 0x471b5f
mov eax, dword [ebx + 4]
sub ecx, 8
mov dword [ebp - 0x1c], ecx
sub esi, 8
mov ecx, dword [eax - 4]
sub ecx, 0x10
call fcn.00404ea9
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
add dword [ebx + 4], 0xfffffffc
mov edx, dword [ebp - 0x2c]
sar eax, 3
test eax, eax
mov eax, dword [ebp - 0x34]
jne 0x471b24
mov dword [ebp - 0x44], esi
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
sub eax, esi
cmp eax, 4
jae 0x471b88
xor ebx, ebx
jmp 0x471c11
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push dword [eax]
call fcn.004068fd
test eax, eax
je 0x471b8f
add esi, 4
cmp esi, dword [ebx + 4]
jne 0x471b75
jmp 0x471c0e
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004067cf
add eax, 0x10
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
lea eax, [esi + 4]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
cmp eax, ecx
je 0x471bd1
mov edi, eax
mov ebx, ecx
sub esi, edi
push edi
lea ecx, [edi + esi]
call fcn.00406123
add edi, 4
cmp edi, ebx
jne 0x471bbb
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x3c], eax
lea esi, [eax - 4]
cmp esi, eax
je 0x471bf4
mov edi, eax
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00404ea9
add esi, 4
cmp esi, edi
jne 0x471be0
mov edi, dword [ebp - 0x48]
add dword [ebx + 4], 0xfffffffc
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0042ba75
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
xor ebx, ebx
inc ebx
test edi, edi
je 0x471c29
mov eax, dword [ebp - 0x18]
sub eax, edi
push 8
sar eax, 3
push eax
push edi
call fcn.00403f7c
add esp, 0xc
mov eax, ebx
jmp 0x471c2f
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret