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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fe3e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x70], dl
mov dword [ebp - 0x74], ecx
mov eax, dword [ecx]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov dword [ecx + 4], 0
cmp edi, dword [ecx]
je 0x458716
nop dword [eax]
mov esi, dword [edi]
push 0xc
push edi
call fcn.0052cac7
mov eax, dword [ebp - 0x74]
add esp, 8
mov edi, esi
cmp esi, dword [eax]
jne 0x458700
xor esi, esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x7c], ecx
test ecx, ecx
je 0x458c5d
mov al, 0x41
mov byte [ebp - 0x6d], al
mov dl, al
mov byte [ebp - 0x6e], dl
test cl, 1
je 0x458c4a
mov byte [ebp - 0x6f], al
lea ecx, [ebp - 0x2c]
push 1
lea eax, [ebp - 0x6f]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0044a9f0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
cmovae esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0xcc], esi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xc0], ecx
lea ecx, [ebp - 0x44]
push eax
mov dword [ebp - 0x30], 7
call fcn.0044bc00
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x44]
push esi
push dword [ebp - 0x80]
call fcn.0044bd90
push 2
push 0x5d610c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0044fc90
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x84], eax
cmp eax, 3
je 0x458813
cmp eax, 2
je 0x458813
cmp eax, 6
je 0x458813
cmp byte [ebp - 0x70], 0
je 0x458bb1
cmp eax, 4
jne 0x458bb1
push 0x240
call fcn.0052ca97
mov edi, eax
xor eax, eax
push 0x80
push 0
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, [edi + 0x30]
push eax
mov dword [ebp - 0x88], eax
call fcn.005446b0
push 0x80
lea eax, [edi + 0xb0]
push 0
push eax
call fcn.005446b0
push 0x100
lea eax, [edi + 0x130]
push 0
push eax
call fcn.005446b0
lea eax, [edi + 0x230]
add esp, 0x28
mov dword [eax], 0
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x44]
mov dword [edi + 0x234], 0
mov dword [edi + 0x238], 0
mov dword [edi + 0x23c], 0
mov dword [ebp - 0x6c], edi
cmp edi, eax
je 0x4588cc
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0044a890
push 4
push str.._
lea ecx, [edi + 0x18]
call fcn.0044a890
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xac], 0
cmovae esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0xd0], esi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ebp - 0xbc], ax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xbc]
push eax
mov dword [ebp - 0xa8], 7
call fcn.0044bc00
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xbc]
push esi
push dword [ebp - 0x80]
call fcn.0044bd90
mov byte [ebp - 4], 2
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 8
lea ecx, [edi + 0x18]
push dword [ebp - 0xac]
cmovae eax, dword [ebp - 0xbc]
push eax
call fcn.0044fc90
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x4589b0
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4589a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e3b
push edx
push ecx
call fcn.0052cac7
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0xac], 0
push 0x5d6120
lea ecx, [edi + 0x18]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.0044fc90
mov eax, dword [ebp - 0x84]
mov dword [edi + 0x234], eax
cmp eax, 4
jne 0x458af6
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
cmovae esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0xd4], esi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ebp - 0x5c], ax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], 7
call fcn.0044bc00
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x5c]
push esi
push dword [ebp - 0x84]
call fcn.0044bd90
push 1
push 0x5d6120
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0044fc90
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [edi + 0x130]
mov dword [ebp - 0x60], 0x80
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
mov esi, eax
test esi, esi
je 0x458aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____WNetGetConnection_failed._Return___i__Code__lu
call fcn.004612c0
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x458ae2
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458ad8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e3b
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
xorps xmm0, xmm0
mov eax, edi
movq qword [ebp - 0x68], xmm0
cmp dword [edi + 0x14], 8
jb 0x458b08
mov eax, dword [edi]
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x458b2d
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
shrd ecx, eax, 0x14
mov dword [edi + 0x23c], ecx
jmp 0x458b37
mov dword [edi + 0x23c], 0xffffffff
mov edx, dword [ebp - 0x88]
mov ecx, 0x80
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x458b44
cmp dword [edi + 0x14], 8
jb 0x458b57
mov edi, dword [edi]
push 0x40
push edx
push dword [ebp - 0x8c]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x74]
mov esi, dword [eax]
lea eax, [ebp - 0x6c]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.004583f0
mov ecx, eax
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 4]
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x458e40
lea eax, [edx + 1]
mov edx, dword [ebp - 0x74]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov esi, dword [ebp - 0x78]
inc esi
mov dword [edi], ecx
mov dword [ebp - 0x78], esi
jmp 0x458bb4
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x458bf2
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458be8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e3b
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 0x10
jb 0x458c41
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458c37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e3b
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov dl, byte [ebp - 0x6e]
mov ecx, dword [ebp - 0x7c]
mov al, byte [ebp - 0x6d]
shr ecx, 1
inc al
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 0x6d], al
cmp dl, 0x5a
jl 0x458733
cmp byte [ebx + 8], 0
je 0x458e1a
push 0x5d6190
call fcn.004612c0
push esi
push str.___Found__d_drives:
call fcn.004612c0
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov edi, dword [eax]
mov dword [ebp - 0x6c], edi
mov esi, dword [edi]
cmp esi, edi
je 0x458e0d
mov eax, dword [esi + 8]
lea ecx, [eax + 0xb0]
mov eax, dword [eax + 0x234]
add eax, 0xfffffffe
mov dword [ebp - 0x8c], ecx
cmp eax, 4
ja case.0x458cae.5
jmp dword [eax*4 + 0x458e4c]
push str.FIXED
lea ecx, [ebp - 0xa4]
call fcn.00449510
jmp 0x458d2c
push str.REMOVABLE
lea ecx, [ebp - 0xa4]
call fcn.00449510
jmp 0x458d2c
push str.RAMDISK
lea ecx, [ebp - 0xa4]
call fcn.00449510
jmp 0x458d2c
push str.REMOTE
lea ecx, [ebp - 0xa4]
call fcn.00449510
jmp 0x458d2c
push 0xa
xor eax, eax
mov dword [ebp - 0x94], 0
push str.OTHER_TYPE
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.0044a890
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xa4]
mov eax, dword [esi + 8]
cmp dword [ebp - 0x90], 8
cmovae ecx, dword [ebp - 0xa4]
cmp dword [eax + 0x14], 8
lea edx, [eax + 0x30]
mov edi, dword [eax + 0x23c]
mov dword [ebp - 0x88], edi
mov edi, dword [ebp - 0x6c]
jb 0x458d64
mov eax, dword [eax]
push dword [ebp - 0x8c]
push ecx
push edx
push dword [ebp - 0x88]
push eax
push str.____s____lu_Mb._free__t__s____s___Label:__s_
call fcn.004612c0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x458dc7
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458dbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458e3b
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
mov eax, dword [esi + 8]
mov dword [ebp - 0x90], 7
cmp dword [eax + 0x234], 4
jne 0x458e03
add eax, 0x130
push eax
push str._t____s
call fcn.004612c0
add esp, 8
mov esi, dword [esi]
cmp esi, edi
jne 0x458c91
push 0x5d6190
call fcn.004612c0
add esp, 4
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00548571
push str.list_T__too_long
call fcn.00529cde
nop
invalid