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

Disassembly:
mov eax, 0x610dc7
call fcn.0060bcd8
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 0x470b4f
mov edx, dword [ebx + 4]
sub edx, dword [ebx]
cmp edx, 4
jb 0x470b4f
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 0x47092e
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 0x4708a5
mov eax, dword [ebx]
add eax, dword [ebp - 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x47089d
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 0x47089d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x4708a5
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
lea eax, [ebp - 0x38]
cmp eax, esi
jae 0x4708e6
cmp edi, eax
ja 0x4708e6
mov ecx, eax
sub ecx, edi
sar ecx, 3
mov dword [ebp - 0x20], ecx
cmp esi, dword [ebp - 0x18]
jne 0x4708d7
push ecx
lea ecx, [ebp - 0x48]
call fcn.00471162
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 0x47090f
mov eax, dword [edi + ecx*8]
mov dword [esi], eax
mov eax, dword [edi + ecx*8 + 4]
jmp 0x47090c
cmp esi, dword [ebp - 0x18]
jne 0x470900
push ecx
lea ecx, [ebp - 0x48]
call fcn.00471162
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x47090f
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 0x470832
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 0x470a35
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 0x470a22
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 0x470987
jl 0x47097f
mov eax, dword [edi + ebx]
cmp eax, dword [edi + esi*8]
jae 0x470987
mov ebx, esi
mov dword [ebp - 0x14], esi
shl ebx, 3
inc esi
cmp esi, edx
jb 0x47096b
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ecx
je 0x470a1f
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 0x47094e
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
test edx, edx
je 0x470a84
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 0x470a81
jl 0x470a54
cmp dword [edi + ecx - 8], eax
jae 0x470a81
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 0x470a46
mov dword [ebp - 0x44], esi
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
sub eax, esi
cmp eax, 4
jae 0x470aaa
xor ebx, ebx
jmp 0x470b33
mov eax, dword [ebp - 0x3c]
mov ecx, esi
push dword [eax]
call fcn.004068fd
test eax, eax
je 0x470ab1
add esi, 4
cmp esi, dword [ebx + 4]
jne 0x470a97
jmp 0x470b30
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 0x470af3
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 0x470add
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 0x470b16
mov edi, eax
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00404ea9
add esi, 4
cmp esi, edi
jne 0x470b02
mov edi, dword [ebp - 0x48]
add dword [ebx + 4], 0xfffffffc
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0042a8c2
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
xor ebx, ebx
inc ebx
test edi, edi
je 0x470b4b
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 0x470b51
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