Function at 0x45ad20
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 0x572c4e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x5ebea4]
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 0x45ad96
nop dword [eax]
mov esi, dword [edi]
push 0xc
push edi
call fcn.0052f5d6
mov eax, dword [ebp - 0x74]
add esp, 8
mov edi, esi
cmp esi, dword [eax]
jne 0x45ad80
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 0x45b2e9
mov al, 0x41
mov byte [ebp - 0x6d], al
mov dl, al
mov byte [ebp - 0x6e], dl
test cl, 1
je 0x45b2d6
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.0044aa70
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.0044bc80
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x44]
push esi
push dword [ebp - 0x80]
call fcn.0044be10
push 2
push 0x5d9230
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00451c60
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 0x45ae93
cmp eax, 2
je 0x45ae93
cmp eax, 6
je 0x45ae93
cmp byte [ebp - 0x70], 0
je 0x45b23d
cmp eax, 4
jne 0x45b23d
push 0x240
call fcn.0052f5a6
mov edi, eax
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
push 0x80
mov word [edi + 0x18], ax
lea eax, [edi + 0x30]
push 0
push eax
mov dword [ebp - 0x88], eax
call fcn.005471b0
add esp, 0xc
lea eax, [edi + 0xb0]
push 0x80
push 0
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [edi + 0x130]
push 0x100
push 0
push eax
call fcn.005471b0
lea eax, [edi + 0x230]
add esp, 0xc
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 0x45af55
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0044a910
push 4
push str.._
lea ecx, [edi + 0x18]
call fcn.0044a910
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.0044bc80
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xbc]
push esi
push dword [ebp - 0x80]
call fcn.0044be10
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.00451c60
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x45b039
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b02f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4d8
push edx
push ecx
call fcn.0052f5d6
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0xac], 0
push 0x5d9244
lea ecx, [edi + 0x18]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00451c60
mov eax, dword [ebp - 0x84]
mov dword [edi + 0x234], eax
cmp eax, 4
jne 0x45b17f
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.0044bc80
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x5c]
push esi
push dword [ebp - 0x84]
call fcn.0044be10
push 1
push 0x5d9244
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00451c60
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 0x45b12d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x5d9248
call fcn.00463ab0
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x45b16b
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4d8
push edx
push ecx
call fcn.0052f5d6
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 0x45b191
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 0x45b1b6
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
shrd ecx, eax, 0x14
mov dword [edi + 0x23c], ecx
jmp 0x45b1c0
mov dword [edi + 0x23c], 0xffffffff
mov edx, dword [ebp - 0x88]
mov ecx, 0x80
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45b1d0
cmp dword [edi + 0x14], 8
jb 0x45b1e3
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.0045aac0
mov ecx, eax
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 4]
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x45b4dd
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 0x45b240
mov esi, dword [ebp - 0x78]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45b27e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b274
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4d8
push edx
push ecx
call fcn.0052f5d6
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 0x45b2cd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45b2c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4d8
push edx
push ecx
call fcn.0052f5d6
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 0x45adb3
cmp byte [ebx + 8], 0
je 0x45b4b7
push 0x5d92b0
call fcn.00463ab0
add esp, 4
push esi
push str.___Found__d_drives:
call fcn.00463ab0
mov eax, dword [ebp - 0x74]
add esp, 8
mov edi, dword [eax]
mov dword [ebp - 0x6c], edi
mov esi, dword [edi]
cmp esi, edi
je 0x45b49c
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.0x45b33d.5
jmp dword [eax*4 + 0x45b4e8]
push str.FIXED
lea ecx, [ebp - 0xa4]
call fcn.00449590
jmp 0x45b3bb
push str.REMOVABLE
lea ecx, [ebp - 0xa4]
call fcn.00449590
jmp 0x45b3bb
push str.RAMDISK
lea ecx, [ebp - 0xa4]
call fcn.00449590
jmp 0x45b3bb
push str.REMOTE
lea ecx, [ebp - 0xa4]
call fcn.00449590
jmp 0x45b3bb
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.0044a910
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 0x45b3f3
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.00463ab0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x45b456
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b44c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b4d8
push edx
push ecx
call fcn.0052f5d6
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 0x45b492
add eax, 0x130
push eax
push str._t____s
call fcn.00463ab0
add esp, 8
mov esi, dword [esi]
cmp esi, edi
jne 0x45b320
cmp byte [0x5f27c5], 0
je 0x45b4aa
call fcn.0045ab20
push 0x5d92b0
call fcn.00463ab0
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.0052f395
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054b071
push str.list_T__too_long
call fcn.0052c7ee
nop
push esi
mov bl, 69
add byte [ebx + esi*4 + 0x45], al
add byte [edx - 0x4d], bh
inc ebp
add byte [ebx + esi*4 - 0x4c97ffbb], cl
inc ebp
add ah, cl
int3