Function at 0x45a710
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 0x57239e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x5eaea4]
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 0x45a786
nop dword [eax]
mov esi, dword [edi]
push 0xc
push edi
call fcn.0052edf8
mov eax, dword [ebp - 0x74]
add esp, 8
mov edi, esi
cmp esi, dword [eax]
jne 0x45a770
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 0x45accd
mov al, 0x41
mov byte [ebp - 0x6d], al
mov dl, al
mov byte [ebp - 0x6e], dl
test cl, 1
je 0x45acba
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.0044aa10
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.0044bc20
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x44]
push esi
push dword [ebp - 0x80]
call fcn.0044bdb0
push 2
push 0x5d8304
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00451c00
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 0x45a883
cmp eax, 2
je 0x45a883
cmp eax, 6
je 0x45a883
cmp byte [ebp - 0x70], 0
je 0x45ac21
cmp eax, 4
jne 0x45ac21
push 0x240
call fcn.0052edc8
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.005469e0
push 0x80
lea eax, [edi + 0xb0]
push 0
push eax
call fcn.005469e0
push 0x100
lea eax, [edi + 0x130]
push 0
push eax
call fcn.005469e0
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 0x45a93c
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0044a8b0
push 4
push str.._
lea ecx, [edi + 0x18]
call fcn.0044a8b0
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.0044bc20
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xbc]
push esi
push dword [ebp - 0x80]
call fcn.0044bdb0
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.00451c00
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x45aa20
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45aa16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeab
push edx
push ecx
call fcn.0052edf8
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0xac], 0
push 0x5d8318
lea ecx, [edi + 0x18]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00451c00
mov eax, dword [ebp - 0x84]
mov dword [edi + 0x234], eax
cmp eax, 4
jne 0x45ab66
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.0044bc20
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x5c]
push esi
push dword [ebp - 0x84]
call fcn.0044bdb0
push 1
push 0x5d8318
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00451c00
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 0x45ab14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____WNetGetConnection_failed._Return___i__Code__lu
call fcn.00463390
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x45ab52
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ab48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeab
push edx
push ecx
call fcn.0052edf8
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 0x45ab78
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 0x45ab9d
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
shrd ecx, eax, 0x14
mov dword [edi + 0x23c], ecx
jmp 0x45aba7
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 0x45abb4
cmp dword [edi + 0x14], 8
jb 0x45abc7
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.0045a460
mov ecx, eax
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 4]
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x45aeb0
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 0x45ac24
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45ac62
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ac58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeab
push edx
push ecx
call fcn.0052edf8
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 0x45acb1
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45aca7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeab
push edx
push ecx
call fcn.0052edf8
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 0x45a7a3
cmp byte [ebx + 8], 0
je 0x45ae8a
push 0x5d8388
call fcn.00463390
push esi
push str.___Found__d_drives:
call fcn.00463390
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 0x45ae7d
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.0x45ad1e.5
jmp dword [eax*4 + 0x45aebc]
push str.FIXED
lea ecx, [ebp - 0xa4]
call fcn.00449530
jmp 0x45ad9c
push str.REMOVABLE
lea ecx, [ebp - 0xa4]
call fcn.00449530
jmp 0x45ad9c
push str.RAMDISK
lea ecx, [ebp - 0xa4]
call fcn.00449530
jmp 0x45ad9c
push str.REMOTE
lea ecx, [ebp - 0xa4]
call fcn.00449530
jmp 0x45ad9c
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.0044a8b0
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 0x45add4
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.00463390
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x45ae37
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ae2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45aeab
push edx
push ecx
call fcn.0052edf8
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 0x45ae73
add eax, 0x130
push eax
push str._t____s
call fcn.00463390
add esp, 8
mov esi, dword [esi]
cmp esi, edi
jne 0x45ad01
push 0x5d8388
call fcn.00463390
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.0052ebb7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054a8a1
push str.list_T__too_long
call fcn.0052c00e
nop
aaa
lodsd eax, dword [esi]
inc ebp
add byte [0x5b0045ad], ah
lodsd eax, dword [esi]
inc ebp
add byte [ebp - 0x53], ch
inc ebp
add byte [ecx - 0x53], cl
inc ebp
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x5eaea4]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
push 0
push 0x2000000
push 3
push 0
push 3
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45af19
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052ebb7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call fcn.005524a5
cdq
mov ecx, 3
idiv ecx
mov eax, 0xffff
sub eax, edx
add word [esp + 0xc], ax
call fcn.005524a5
cdq
mov ecx, 0xc
idiv ecx
inc edx
mov word [esp + 0xe], dx
call fcn.005524a5
cdq
mov ecx, 0x1c
idiv ecx
inc edx
mov word [esp + 0x12], dx
call fcn.005524a5
cdq
mov ecx, 0x18
idiv ecx
mov word [esp + 0x14], dx
call fcn.005524a5
cdq
mov esi, 0x3c
idiv esi
mov word [esp + 0x16], dx
call fcn.005524a5
cdq
idiv esi
mov word [esp + 0x18], dx
call fcn.005524a5
cdq
mov ecx, 0x3e8
idiv ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
mov word [esp + 0x1e], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xffffffff
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0052ebb7
mov esp, ebp
pop ebp
ret