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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b30e
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
mov dword [edi + 4], 0
cmp edx, dword [edi]
je 0x45cf73
nop dword [eax + eax]
mov esi, dword [edx]
push 0xc
push edx
call fcn.00536ae6
add esp, 8
mov edx, esi
cmp esi, dword [edi]
jne 0x45cf60
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 0x45d44e
mov al, 0x41
mov byte [ebp - 0x71], al
mov dl, al
mov byte [ebp - 0x72], dl
test cl, 1
je 0x45d43b
mov byte [ebp - 0x73], al
lea ecx, [ebp - 0x2c]
push 1
lea eax, [ebp - 0x73]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0044b890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0xc8], eax
cmovae edi, dword [ebp - 0x2c]
xor ecx, ecx
sub eax, edi
mov word [ebp - 0x44], cx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x30], 7
call fcn.0044ccd0
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x44]
push dword [ebp - 0xc8]
push edi
call fcn.0044cdc0
push 2
push 0x5e1384
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00452f50
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 0x45d066
cmp eax, 2
je 0x45d066
cmp eax, 6
je 0x45d066
cmp eax, 4
jne 0x45d39c
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edx, eax
cmovae ecx, dword [ebp - 0x44]
call fcn.0045dca0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x70], eax
add eax, 0x18
push 4
push 0x5e138c
mov ecx, eax
mov dword [ebp - 0xa8], eax
call fcn.0044b730
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea edi, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0xb4], 0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0xcc], eax
cmovae edi, dword [ebp - 0x2c]
xor ecx, ecx
sub eax, edi
mov word [ebp - 0xc4], cx
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xb0], 7
call fcn.0044ccd0
push dword [ebp - 0xd4]
lea ecx, [ebp - 0xc4]
push dword [ebp - 0xcc]
push edi
call fcn.0044cdc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xc4]
cmp dword [ebp - 0xb0], 8
push dword [ebp - 0xb4]
cmovae eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.00452f50
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xb0]
cmp edx, 8
jb 0x45d172
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d168
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d684
push edx
push ecx
call fcn.00536ae6
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0xb4], 0
push 0x5e1398
mov ecx, esi
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.00452f50
mov eax, dword [ebp - 0x84]
cmp eax, 4
jne 0x45d2b3
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea edi, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x80], eax
cmovae edi, dword [ebp - 0x2c]
xor ecx, ecx
sub eax, edi
mov word [ebp - 0x5c], cx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x48], 7
call fcn.0044ccd0
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x80]
push edi
call fcn.0044cdc0
push 1
push 0x5e1398
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00452f50
mov esi, dword [ebp - 0x88]
lea edx, [ebp - 0x14]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push edx
cmovae eax, dword [ebp - 0x5c]
lea ecx, [esi + 0x130]
mov dword [ebp - 0x14], 0x80
push ecx
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
mov edi, eax
test edi, edi
je 0x45d259
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.____WNetGetConnection_failed._Return___i__Code__lu
call fcn.0046adc0
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x45d297
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d28d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d684
push edx
push ecx
call fcn.00536ae6
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x48], 7
jmp 0x45d2b9
mov esi, dword [ebp - 0x88]
xorps xmm0, xmm0
movq qword [ebp - 0x6c], xmm0
movq qword [ebp - 0x64], xmm0
movq qword [ebp - 0xac], xmm0
cmp eax, 4
je 0x45d314
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45d2dd
mov eax, dword [esi]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45d30a
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x60]
sbb eax, dword [ebp - 0x68]
shrd ecx, eax, 0x14
mov dword [esi + 0x23c], ecx
jmp 0x45d314
mov dword [esi + 0x23c], 0
lea edx, [esi + 0x30]
mov ecx, 0x80
mov eax, edx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45d320
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x230]
lea ecx, [esi + 0xb0]
jb 0x45d33f
mov esi, dword [esi]
push 0x40
push edx
push eax
push 0
push 0
push 0x40
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
push ecx
mov esi, dword [edi]
mov eax, dword [esi + 4]
push eax
push esi
mov dword [ebp - 0xa8], eax
call fcn.0045c860
mov edx, dword [edi + 4]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x45d689
lea eax, [edx + 1]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esi + 4], ecx
mov esi, dword [ebp - 0x78]
inc esi
mov dword [eax], ecx
mov dword [ebp - 0x78], esi
jmp 0x45d3a5
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45d3e3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d3d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d684
push edx
push ecx
call fcn.00536ae6
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 0x45d432
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d428
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d684
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov dl, byte [ebp - 0x72]
mov ecx, dword [ebp - 0x7c]
mov al, byte [ebp - 0x71]
shr ecx, 1
inc al
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 0x71], al
cmp dl, 0x5a
jl 0x45cf90
cmp byte [0x5fc945], 0
je 0x45d45e
mov ecx, edi
call fcn.0045c880
cmp byte [ebp + 0xc], 0
je 0x45d478
push str.___Scanning_user_context_mapped_drives...
call fcn.0046adc0
add esp, 4
mov ecx, edi
call fcn.0045ca90
cmp byte [ebp + 8], 0
je 0x45d666
push 0x5e1460
call fcn.0046adc0
push esi
push str.___Found__d_drives:
call fcn.0046adc0
mov edi, dword [edi]
add esp, 0xc
mov dword [ebp - 0x70], edi
mov esi, dword [edi]
cmp esi, edi
je 0x45d659
nop dword [eax]
mov eax, dword [esi + 8]
cmp byte [eax + 0x240], 0
lea ecx, [eax + 0xb0]
mov dword [ebp - 0x14], ecx
je 0x45d4cc
mov eax, 1
jmp 0x45d4d2
mov eax, dword [eax + 0x234]
dec eax
cmp eax, 5
ja case.0x45d4d8.5
jmp dword [eax*4 + 0x45d694]
push 0x5e1278
lea ecx, [ebp - 0xa4]
call fcn.004499c0
jmp 0x45d56b
push str.REMOVABLE
lea ecx, [ebp - 0xa4]
call fcn.004499c0
jmp 0x45d56b
push str.RAMDISK
lea ecx, [ebp - 0xa4]
call fcn.004499c0
jmp 0x45d56b
push str.REMOTE
lea ecx, [ebp - 0xa4]
call fcn.004499c0
jmp 0x45d56b
push str.HIDDEN
lea ecx, [ebp - 0xa4]
call fcn.004499c0
jmp 0x45d56b
push 0xc
xor eax, eax
mov dword [ebp - 0x94], 0
push str.UNKNOWN_TYPE
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.0044b730
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 - 0x80], edi
mov edi, dword [ebp - 0x70]
jb 0x45d5a0
mov eax, dword [eax]
push dword [ebp - 0x14]
push ecx
push edx
push dword [ebp - 0x80]
push eax
push str.____s____lu_Mb._occupy__t__s____s___Label:__s_
call fcn.0046adc0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x45d5fd
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d5f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d684
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp dword [ecx + 0x234], 4
jne 0x45d64f
cmp byte [ecx + 0x241], 0
mov edx, 0x5e0c9c
mov eax, str._user_context_
cmove eax, edx
push eax
lea eax, [ecx + 0x130]
push eax
push str._t____s__s
call fcn.0046adc0
add esp, 0xc
mov esi, dword [esi]
cmp esi, edi
jne 0x45d4b0
push 0x5e1460
call fcn.0046adc0
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 - 0x10]
xor ecx, ebp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
push str.list_T__too_long
call fcn.00533cfe
nop
sub dl, ch
inc ebp
add ah, dh
aam 0x45
add bh, bl
aam 0x45
add byte [eax], bl
aad 0x45
add byte [edx*8 - 0x2af9ffbb], bh
inc ebp
add ah, cl
int3