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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a208
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5c9ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [esi + 4]
test eax, eax
jne 0x45956a
xor edi, edi
mov dword [ebp - 0x58], edi
cmp byte [0x5d04dc], al
je 0x45916f
call fcn.00458ed0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x45950d
mov al, 0x41
mov byte [ebp - 0x4d], al
mov dl, al
mov byte [ebp - 0x4f], dl
test cl, 1
je 0x4594f7
mov byte [ebp - 0x4e], al
lea ecx, [ebp - 0x28]
push 1
lea eax, [ebp - 0x4e]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0044a2b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x88], esi
cmovae ecx, dword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
call fcn.0044b420
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
push esi
push dword [ebp - 0x5c]
call fcn.0044b700
push 2
push 0x5bdfc4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004517c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x7c], eax
cmp eax, 3
je 0x459256
cmp eax, 2
je 0x459256
cmp eax, 6
je 0x459256
cmp eax, 4
jne 0x45944c
push 0xbc
call fcn.005183e4
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
lea eax, [ebp - 0x40]
cmp edi, eax
je 0x4592a3
cmp dword [ebp - 0x2c], 8
mov ecx, edi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0044a150
push 4
push str.._
lea ecx, [edi + 0x18]
call fcn.0044a150
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x8c], esi
cmovae ecx, dword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x78], ax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x78]
push eax
mov dword [ebp - 0x64], 7
call fcn.0044b420
push dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push esi
push dword [ebp - 0x5c]
call fcn.0044b700
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
lea ecx, [edi + 0x18]
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.004517c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x459368
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45935e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45958f
push edx
push ecx
call fcn.00518414
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0x68], 0
push 0x5bdfd8
lea ecx, [edi + 0x18]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.004517c0
mov eax, dword [ebp - 0x7c]
xorps xmm0, xmm0
mov dword [edi + 0xb4], eax
mov eax, edi
movq qword [ebp - 0x48], xmm0
cmp dword [edi + 0x14], 8
jb 0x4593a6
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4593cb
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
shrd ecx, eax, 0x14
mov dword [edi + 0xb8], ecx
jmp 0x4593d5
mov dword [edi + 0xb8], 0xffffffff
lea edx, [edi + 0x30]
mov ecx, 0x80
mov eax, edx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4593e0
cmp dword [edi + 0x14], 8
lea eax, [edi + 0xb0]
jb 0x4593f9
mov edi, dword [edi]
push 0x40
push edx
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x54]
mov esi, dword [eax]
lea eax, [ebp - 0x4c]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00459620
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x459585
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov dword [edi], eax
mov edi, dword [ebp - 0x58]
inc edi
mov dword [ebp - 0x58], edi
jmp 0x45944f
mov edi, dword [ebp - 0x58]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45948d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45958f
push edx
push ecx
call fcn.00518414
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 0x10
jb 0x4594dc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4594d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45958f
push edx
push ecx
call fcn.00518414
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x60]
mov dl, byte [ebp - 0x4f]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
shr ecx, 1
inc al
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x4d], al
cmp dl, 0x5a
jl 0x459187
mov esi, dword [ebp - 0x54]
push 0x5bdfdc
call fcn.00459870
push edi
push str.___Found_drives___d_:
call fcn.00459870
mov edi, dword [esi]
add esp, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x45955a
nop dword [eax]
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x30]
mov edx, dword [eax + 0xb8]
jb 0x459544
mov eax, dword [eax]
push ecx
push edx
push eax
push str.___Path:__s____lu_Mb._free___s_
call fcn.00459870
mov esi, dword [esi]
add esp, 0x10
cmp esi, edi
jne 0x459530
push 0x5bdfdc
call fcn.00459870
mov eax, dword [ebp - 0x58]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005181d3
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00515b6e
call fcn.00533a91
int3