Function at 0x40b030
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41092b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x48600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa4], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
shr eax, cl
test al, 1
je 0x40b4e8
lea eax, [ecx + 0x41]
mov word [ebp - 0x1f], 0x5c3a
xorps xmm0, xmm0
mov byte [ebp - 0x20], al
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x1d], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b0b8
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.00403470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x40]
cmovae ecx, dword [ebp - 0x50]
setae byte [ebp - 0x99]
add eax, ecx
cmp byte [ebp - 0x99], 0
lea ecx, [ebp - 0x50]
cmovne ecx, dword [ebp - 0x50]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00406fe0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov edi, dword [ebp - 0x28]
sub eax, edi
cmp eax, 6
jb 0x40b144
cmp ecx, 8
lea esi, [ebp - 0x38]
lea eax, [edi + 6]
cmovae esi, dword [ebp - 0x38]
push 0xc
mov dword [ebp - 0x28], eax
push str.Users_
lea eax, [esi + edi*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0xc], ax
jmp 0x40b162
push 6
push str.Users_
mov byte [ebp - 0xac], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0xac]
push 6
call fcn.0040ded0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
push str.parameters.ini
mov byte [ebp - 0x99], 0
mov byte [ebp - 0x9a], 1
call fcn.0040daa0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x99]
push eax
lea eax, [ebp - 0x9a]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x98]
call fcn.0040a910
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xb4]
cmp ecx, 8
jb 0x40b21a
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b210
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0xc8], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xb0], eax
cmp edi, eax
je 0x40b348
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x80]
call fcn.0040dbc0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x70]
cmovae esi, dword [ebp - 0x80]
setae dl
test dl, dl
cmovne ecx, dword [ebp - 0x80]
push ecx
lea eax, [ecx + eax*2]
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.00407100
cmp dword [ebp - 0x54], 0x10
lea ecx, [ebp - 0x68]
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x58]
cmovae ecx, esi
push 0x1f
push str.RoamingWinShareparameters.ini
push ecx
setae byte [ebp - 0x9b]
call fcn.00403380
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40b503
cmp byte [ebp - 0x9b], 0
je 0x40b2e9
mov eax, dword [ebp - 0x54]
mov ecx, esi
inc eax
cmp eax, 0x1000
jb 0x40b2df
mov esi, dword [ecx - 4]
add eax, 0x23
sub ecx, esi
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x40b6d0
push eax
push esi
call fcn.0040f0fe
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 8
jb 0x40b339
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b32f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0xb0]
jne 0x40b250
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Available_disk_drives_:
push 0x406b50
call fcn.00406db0
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.00406db0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
cmp ecx, 8
jb 0x40b3b3
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b3a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
test ecx, ecx
je 0x40b443
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0040de60
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40b424
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push esi
call fcn.0040f0fe
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x40b481
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b477
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp ecx, 0x10
jb 0x40b4d0
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
inc ecx
mov dword [ebp - 0xa8], ecx
cmp ecx, 0x1a
jge 0x40b6e2
mov eax, dword [ebp - 0xa4]
jmp 0x40b083
mov esi, dword [ebp - 0xa0]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x6c]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x68]
mov byte [ebp - 0x68], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
cmp ecx, 8
jb 0x40b57a
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b570
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp ecx, 8
jb 0x40b5ce
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b5c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
test ecx, ecx
je 0x40b660
mov edx, dword [ebp - 0x18]
push ecx
call fcn.0040de60
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40b63b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push esi
call fcn.0040f0fe
mov esi, dword [ebp - 0xa0]
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x40b696
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b68c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d0
push ecx
push edx
call fcn.0040f0fe
add esp, 8
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp ecx, 0x10
jb 0x40b70a
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b6d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040f0fe
add esp, 8
jmp 0x40b70a
mov esi, dword [ebp - 0xa0]
xorps xmm0, xmm0
push 0
push 0x4124f0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00403470
mov eax, esi
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.0040eba8
mov esp, ebp
pop ebp
ret