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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b60e
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x74], dl
mov dword [ebp - 0x78], 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 0x45d276
nop dword [eax]
mov esi, dword [edi]
push 0xc
push edi
call fcn.00536da7
mov eax, dword [ebp - 0x78]
add esp, 8
mov edi, esi
cmp esi, dword [eax]
jne 0x45d260
mov dword [ebp - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x7c], ecx
test ecx, ecx
je 0x45d74f
mov al, 0x41
mov byte [ebp - 0x71], al
mov dl, al
mov byte [ebp - 0x72], dl
test cl, 1
je 0x45d73c
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.0044b8a0
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.0044cd20
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x44]
push dword [ebp - 0xc8]
push edi
call fcn.0044ce10
push 2
push 0x5e238c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00452fa0
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 - 0x88], eax
cmp eax, 3
je 0x45d375
cmp eax, 2
je 0x45d375
cmp eax, 6
je 0x45d375
cmp byte [ebp - 0x74], 0
je 0x45d6a6
cmp eax, 4
jne 0x45d6a6
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edx, eax
cmovae ecx, dword [ebp - 0x44]
call fcn.0045dfa0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x70], eax
add eax, 0x18
push 4
push 0x5e2394
mov ecx, eax
mov dword [ebp - 0xa8], eax
call fcn.0044b740
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.0044cd20
push dword [ebp - 0xd4]
lea ecx, [ebp - 0xc4]
push dword [ebp - 0xcc]
push edi
call fcn.0044ce10
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.00452fa0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xb0]
cmp edx, 8
jb 0x45d481
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d477
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d987
push edx
push ecx
call fcn.00536da7
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0xb4], 0
push 0x5e23a0
mov ecx, esi
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.00452fa0
mov eax, dword [ebp - 0x88]
cmp eax, 4
jne 0x45d5c8
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 - 0x84], 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.0044cd20
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x84]
push edi
call fcn.0044ce10
push 1
push 0x5e23a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00452fa0
mov esi, dword [ebp - 0x8c]
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 0x45d56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.____WNetGetConnection_failed._Return___i__Code__lu
call fcn.0046b090
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x45d5ac
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d5a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d987
push edx
push ecx
call fcn.00536da7
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x48], 7
jmp 0x45d5ce
mov esi, dword [ebp - 0x8c]
xorps xmm0, xmm0
movq qword [ebp - 0x6c], xmm0
movq qword [ebp - 0x64], xmm0
movq qword [ebp - 0xac], xmm0
cmp eax, 4
je 0x45d629
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45d5f2
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 0x45d61f
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 0x45d629
mov dword [esi + 0x23c], 0
lea edx, [esi + 0x30]
mov ecx, 0x80
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45d633
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x230]
lea ecx, [esi + 0xb0]
jb 0x45d652
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 esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
push ecx
mov edi, dword [esi]
mov eax, dword [edi + 4]
push eax
push edi
mov dword [ebp - 0xa8], eax
call fcn.0045cb60
mov edx, dword [esi + 4]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x45d98c
inc dword [ebp - 0x80]
lea eax, [edx + 1]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [edi + 4], ecx
mov dword [eax], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45d6e4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d6da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d987
push edx
push ecx
call fcn.00536da7
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 0x45d733
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d987
push edx
push ecx
call fcn.00536da7
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 0x45d295
cmp byte [0x5fd94a], 0
mov esi, dword [ebp - 0x78]
je 0x45d762
mov ecx, esi
call fcn.0045cb80
cmp byte [ebp + 0xc], 0
je 0x45d77c
push str.___Scanning_user_context_mapped_drives...
call fcn.0046b090
add esp, 4
mov ecx, esi
call fcn.0045cd90
cmp byte [ebp + 8], 0
je 0x45d969
push 0x5e2468
call fcn.0046b090
push dword [esi + 4]
push str.___Found__d_drives:
call fcn.0046b090
mov edi, dword [esi]
add esp, 0xc
mov dword [ebp - 0x70], edi
mov esi, dword [edi]
cmp esi, edi
je 0x45d95c
nop
mov eax, dword [esi + 8]
cmp byte [eax + 0x240], 0
lea ecx, [eax + 0xb0]
mov dword [ebp - 0x14], ecx
je 0x45d7cc
mov eax, 1
jmp 0x45d7d2
mov eax, dword [eax + 0x234]
dec eax
cmp eax, 5
ja case.0x45d7d8.5
jmp dword [eax*4 + 0x45d998]
push 0x5e2280
lea ecx, [ebp - 0xa4]
call fcn.004499d0
jmp 0x45d868
push str.REMOVABLE
lea ecx, [ebp - 0xa4]
call fcn.004499d0
jmp 0x45d868
push str.RAMDISK
lea ecx, [ebp - 0xa4]
call fcn.004499d0
jmp 0x45d868
push str.REMOTE
lea ecx, [ebp - 0xa4]
call fcn.004499d0
jmp 0x45d868
push str.HIDDEN
lea ecx, [ebp - 0xa4]
call fcn.004499d0
jmp 0x45d868
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.0044b740
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 - 0x84], edi
mov edi, dword [ebp - 0x70]
jb 0x45d8a0
mov eax, dword [eax]
push dword [ebp - 0x14]
push ecx
push edx
push dword [ebp - 0x84]
push eax
push str.____s____lu_Mb._occupy__t__s____s___Label:__s_
call fcn.0046b090
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x45d900
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d8f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d987
push edx
push ecx
call fcn.00536da7
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 0x45d952
cmp byte [ecx + 0x241], 0
mov edx, 0x5e1c9c
mov eax, str._user_context_
cmove eax, edx
push eax
lea eax, [ecx + 0x130]
push eax
push str._t____s__s
call fcn.0046b090
add esp, 0xc
mov esi, dword [esi]
cmp esi, edi
jne 0x45d7b0
push 0x5e2468
call fcn.0046b090
add esp, 4
mov eax, dword [ebp - 0x80]
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.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
push str.list_T__too_long
call fcn.00533fbe
nop
daa
fadd dword [ebp]
int1
xlatb
inc ebp
add bh, bl
xlatb
inc ebp
add byte [0x390045d8], dl
fadd dword [ebp]
add ebx, eax
inc ebp
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b648
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0045cb30
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov edi, dword [0x5ff920]
mov esi, dword [edi]
cmp esi, edi
je 0x45da53
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
cmp dword [eax + 0x234], 4
je 0x45da4d
mov eax, dword [ebx + 4]
push ecx
push eax
push ebx
mov dword [ebp - 0x1c], eax
call fcn.0045cb60
mov edx, dword [ebp - 0x14]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x45daa0
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov dword [ecx], eax
mov esi, dword [esi]
cmp esi, edi
jne 0x45da12
push ebx
push dword [ebx]
call fcn.0045eb80
mov eax, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp eax, ebx
je 0x45da79
mov esi, dword [eax]
push 0xc
push eax
call fcn.00536da7
add esp, 8
mov eax, esi
cmp esi, ebx
jne 0x45da66
push 0xc
push ebx
call fcn.00536da7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00533fbe
int3