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

Disassembly:
mov eax, 0x4d4bf8
call fcn.004ce9f0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
sub esp, 0x40
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x461108
mov eax, ebx
call fcn.00426080
test eax, eax
je 0x461108
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov eax, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.00426080
test eax, eax
jbe 0x460ebb
mov esi, dword [ebp - 0x18]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
mov edi, ebx
call fcn.004260fa
push 3
pop ecx
lea edx, [ebp - 0x1c]
call fcn.00422893
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405c8d
cmp byte [ebp - 0xd], 0
je 0x460e55
call fcn.004260fa
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x460e4f
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x460e4f
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x460e55
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0x44]
test edi, edi
mov edx, dword [ebp - 0x40]
je 0x460e88
mov eax, dword [ebp - 0x3c]
mov ecx, edx
sub ecx, edi
sub eax, edi
sar ecx, 3
sar eax, 3
cmp ecx, eax
jae 0x460e88
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
add edx, 8
mov dword [eax + 4], ecx
mov dword [ebp - 0x40], edx
jmp 0x460ea8
cmp edi, edx
mov esi, edx
jbe 0x460e93
call fcn.0048a49e
push esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
call fcn.0046126c
inc dword [ebp - 0x18]
mov eax, ebx
call fcn.00426080
cmp dword [ebp - 0x18], eax
jb 0x460de6
and dword [ebp - 0x18], 0
xor eax, eax
cmp dword [ebp - 0x44], eax
je 0x460ecf
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 3
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jae 0x46105e
lea esi, [eax + 1]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x44], 0
je 0x460f3d
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 3
cmp esi, eax
jae 0x460f3d
mov edi, dword [ebp - 0x14]
cmp edi, eax
jb 0x460f05
call fcn.0048a49e
mov eax, dword [ebp - 0x44]
mov ecx, eax
test ecx, ecx
lea edi, [eax + edi*8]
je 0x460f1d
mov eax, dword [ebp - 0x40]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x460f25
call fcn.0048a49e
mov ecx, dword [ebp - 0x44]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + esi*8 + 4]
jg 0x460f3a
jl 0x460f37
mov eax, dword [edi]
cmp eax, dword [ecx + esi*8]
jae 0x460f3a
mov dword [ebp - 0x14], esi
inc esi
jmp 0x460ee6
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], esi
je 0x461053
mov edi, ebx
call fcn.004260fa
mov eax, dword [eax]
sub eax, 0x10
call fcn.00422b5e
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004260fa
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.004260fa
mov edi, eax
mov eax, dword [ebp - 0x20]
call fcn.00422ab0
mov esi, dword [ebp - 0x14]
mov edi, ebx
call fcn.004260fa
mov edi, eax
lea eax, [ebp - 0x1c]
call fcn.00422ab0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x460fab
mov edx, dword [ebp - 0x40]
mov ecx, edx
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x18], ecx
jb 0x460fb6
call fcn.0048a49e
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x18]
shl esi, 3
test eax, eax
mov ecx, dword [esi + eax]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + eax + 4]
mov dword [ebp - 0x34], ecx
je 0x460fd9
mov ecx, edx
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x14], ecx
jb 0x460fe4
call fcn.0048a49e
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x14]
shl edi, 3
test eax, eax
lea ecx, [edi + eax]
mov dword [ebp - 0x20], ecx
je 0x460ffe
sub edx, eax
sar edx, 3
cmp dword [ebp - 0x18], edx
jb 0x461009
call fcn.0048a49e
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [esi + eax], edx
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x44]
mov dword [esi + ecx + 4], eax
cmp dword [ebp - 0x44], 0
je 0x46102c
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 3
cmp dword [ebp - 0x14], eax
jb 0x461031
call fcn.0048a49e
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov dword [edi + eax + 4], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x460ebf
cmp dword [ebp - 0x44], 0
je 0x4610ef
mov esi, dword [ebp - 0x40]
mov eax, esi
sub eax, dword [ebp - 0x44]
sar eax, 3
je 0x4610ef
cmp dword [ebp - 0x44], esi
jbe 0x46107f
call fcn.0048a49e
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], esi
push 0xffffffffffffffff
lea esi, [ebp - 0x38]
mov dword [ebp - 0x38], eax
call fcn.0046147e
mov edi, dword [eax]
test edi, edi
mov esi, dword [eax + 4]
jne 0x4610a0
call fcn.0048a49e
cmp esi, dword [edi + 8]
jb 0x4610aa
call fcn.0048a49e
cmp dword [esi + 4], 0
jg 0x4610ef
jl 0x4610ba
cmp dword [esi], 0xc800000
jae 0x4610ef
cmp dword [ebp - 0x44], 0
je 0x4610cf
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 3
je 0x4610cf
sub dword [ebp - 0x40], 8
mov eax, ebx
call fcn.00426080
test eax, eax
je 0x46105e
mov eax, dword [ebx + 8]
push eax
add eax, 0xfffffffc
call fcn.00426224
add dword [ebx + 8], 0xfffffffc
jmp 0x46105e
mov eax, ebx
call fcn.00426080
test eax, eax
jne 0x461118
cmp dword [ebp - 0x44], eax
je 0x461108
push dword [ebp - 0x44]
call fcn.00489ff4
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
lea esi, [ebp - 0x30]
mov edi, ebx
call fcn.00452d02
jmp 0x461158
lea esi, [ebp - 0x30]
call fcn.0045c45a
mov ecx, dword [ebp + 8]
push dword [ecx]
push eax
call fcn.0040abbf
test eax, eax
je 0x461172
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x461147
call fcn.0048a49e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 8]
jb 0x461154
call fcn.0048a49e
add dword [ebp - 0x2c], 4
lea esi, [ebp - 0x38]
mov edi, ebx
call fcn.004742a9
mov edi, eax
lea esi, [ebp - 0x30]
call fcn.00474839
test al, al
jne 0x461124
jmp 0x4611c0
lea esi, [ebp - 0x30]
call fcn.0045c45a
mov eax, dword [eax]
sub eax, 0x10
call fcn.00422b5e
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
push dword [ebx + 8]
lea ecx, [eax + 4]
call fcn.004614c7
mov eax, dword [ebx + 8]
pop ecx
push eax
add eax, 0xfffffffc
call fcn.00426224
add dword [ebx + 8], 0xfffffffc
lea eax, [ebp + 8]
push eax
mov eax, ebx
call fcn.00452d1c
lea eax, [esi - 0x10]
call fcn.00405c8d
cmp dword [ebp - 0x44], 0
je 0x4611cf
push dword [ebp - 0x44]
call fcn.00489ff4
pop ecx
xor eax, eax
inc eax
jmp 0x46110a