Function at 0x40a120
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446548
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x94], 0
test cl, cl
jne 0x40a196
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str._Disk_Scanner__Running_checks_for_replaced_drives_bypass...__n
nop dword [eax + eax]
call fcn.00408320
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, 0x41
mov dword [ebp - 0x84], eax
cmp si, 0x5a
ja 0x40a2aa
nop dword [eax + eax]
test al, 1
je 0x40a2a2
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 1
movups xmmword [ebp - 0x2c], xmm0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], si
mov word [ebp - 0x2a], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
cmp edi, dword [ebp - 0x98]
je 0x40a229
mov ecx, edi
call fcn.004057e0
add edi, 0x18
mov dword [ebp - 0x9c], edi
jmp 0x40a23b
push edi
lea ecx, [ebp - 0xa0]
call fcn.0040aa80
mov edi, dword [ebp - 0x9c]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x88], edi
cmp ecx, 7
jbe 0x40a288
mov edx, dword ds:[ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a27e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a27e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], 7
shr eax, 1
inc esi
jmp 0x40a1cb
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0
mov edi, eax
mov esi, edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], edx
push 0
push 0x3e8
push esi
push edi
call fcn.00445ba0
sub dword [ebp - 0x84], eax
mov edi, dword [ebp - 0xa0]
sbb dword [ebp - 0x8c], edx
nop dword [eax + eax]
cmp edi, dword [ebp - 0x88]
je 0x40a576
cmp dword [edi + 0x14], 7
mov eax, edi
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x90], ecx
jbe 0x40a30f
mov eax, dword [edi]
cmp ecx, 1
jne 0x40a39e
mov edx, 0x44cb90
mov esi, ecx
sub eax, edx
mov dword [ebp - 0xac], eax
nop word [eax + eax]
movzx ecx, word [eax + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x40a34f
mov eax, dword [ebp - 0xac]
add edx, 2
sub esi, 1
jne 0x40a330
add edi, 0x18
jmp 0x40a2f0
mov ecx, dword [ebp - 0x90]
lfence
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x40a364
mov eax, dword [edi]
push 2
push 0x44cb94
push ecx
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x5c]
call fcn.00408c60
mov esi, dword [ebp - 0x94]
or esi, 1
mov byte [ebp - 4], 3
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
cmp eax, 0x19
jb 0x40a5a1
jmp 0x40a3b0
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 2
jb 0x40a5a6
jmp 0x40a355
push 0x19
lfence
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
push str.System_Volume_Information
cmova eax, dword [ebp - 0x5c]
push ecx
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x44]
call fcn.00408c60
or esi, 2
mov dword [ebp - 0x94], esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00409ec0
test al, al
je 0x40a4d5
lea ecx, [ebp - 0x44]
call fcn.0040a020
mov dword [ebp - 0xa8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], edx
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x60], 0
push eax
movups xmmword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x70], xmm0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
add esp, 8
test eax, eax
jne 0x40a4d5
mov eax, dword ds:[ebp - 0x8c]
cmp dword [ebp - 0xa4], eax
jl 0x40a4d5
jg 0x40a45c
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0xa8], eax
jbe 0x40a4d5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Disk
call fcn.00406160
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x40a476
mov edx, dword [edi]
push dword ds:[edi + 0x10]
mov ecx, eax
call fcn.00408f60
add esp, 4
mov edx, str._was_installed_at:
mov ecx, eax
call fcn.00406160
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x1c], 0x44cbf0
mov dword [ebp - 0x20], ecx
mov ecx, 0x44cbf0
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp word [ecx], 0
jne 0x40a4a6
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.0040a760
mov edx, str.._Ban_the_user.
mov ecx, eax
call fcn.00406160
push 0x408660
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov byte ds:[ebp - 4], 3
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40a513
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a509
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a558
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x40a568
mov edx, dword ds:[ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a55e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a55e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00444ae8
add esp, 8
add edi, 0x18
jmp 0x40a2f0
lea ecx, ds:[ebp - 0xa0]
call fcn.0040a5c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444aa0
mov esp, ebp
pop ebp
ret
call fcn.00403ca0
call fcn.00403ca0
int3