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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ad28
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5caea4]
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 0x459cff
xor edi, edi
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x459c9d
mov al, 0x41
mov byte [ebp - 0x4d], al
nop word [eax + eax]
mov dl, al
mov byte [ebp - 0x4f], dl
test cl, 1
je 0x459c87
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.0044a320
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.0044b490
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
push esi
push dword [ebp - 0x5c]
call fcn.0044b770
push 2
push 0x5bf178
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004517a0
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 0x4599df
cmp eax, 2
je 0x4599df
cmp eax, 6
je 0x4599df
cmp eax, 4
jne 0x459bdc
push 0xbc
call fcn.00518d38
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 0x459a2c
cmp dword [ebp - 0x2c], 8
mov ecx, edi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0044a1c0
push 4
push str.._
lea ecx, [edi + 0x18]
call fcn.0044a1c0
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.0044b490
push dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push esi
push dword [ebp - 0x5c]
call fcn.0044b770
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.004517a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x459af1
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459ae7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459d24
push edx
push ecx
call fcn.00518d68
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0x68], 0
push 0x5bf18c
lea ecx, [edi + 0x18]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.004517a0
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 0x459b2f
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 0x459b54
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
shrd ecx, eax, 0x14
mov dword [edi + 0xb8], ecx
jmp 0x459b5e
mov dword [edi + 0xb8], 0xffffffff
lea edx, [edi + 0x30]
mov ecx, 0x80
mov eax, edx
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x459b70
cmp dword [edi + 0x14], 8
lea eax, [edi + 0xb0]
jb 0x459b89
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.00459db0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x459d1a
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 0x459bdf
mov edi, dword [ebp - 0x58]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x459c1d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459c13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459d24
push edx
push ecx
call fcn.00518d68
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 0x459c6c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x459c62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459d24
push edx
push ecx
call fcn.00518d68
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 0x459910
mov esi, dword [ebp - 0x54]
push 0x5bf190
call fcn.0045a000
push edi
push str.___Found_drives___d_:
call fcn.0045a000
mov edi, dword [esi]
add esp, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x459cea
nop dword [eax]
mov eax, dword [esi + 8]
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x30]
mov edx, dword [eax + 0xb8]
jb 0x459cd4
mov eax, dword [eax]
push ecx
push edx
push eax
push str.___Path:__s____lu_Mb._free___s_
call fcn.0045a000
mov esi, dword [esi]
add esp, 0x10
cmp esi, edi
jne 0x459cc0
call fcn.004596b0
push 0x5bf190
call fcn.0045a000
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.00518b27
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.005164bf
call fcn.005343f1
int3