Function at 0x140064b64
Capabilities:
Get disk information
Terminate process

Disassembly:
push rdi
sub rsp, 0x230
mov rax, qword [0x14069bc80]
xor rax, rsp
mov qword [rsp + 0x220], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
jmp 0x140064b9d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x1a
jge 0x140064e1f
mov eax, dword [rsp + 0x24]
mov ecx, 1
mov dword [rsp + 0x2c], ecx
mov cl, al
mov eax, dword [rsp + 0x2c]
shl eax, cl
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140064e1a
mov eax, dword [rsp + 0x24]
add eax, 0x41
mov byte [rsp + 0x20], al
lea rdx, [0x140144354]
lea rcx, [rsp + 0x170]
call fcn.14004f0cc
nop
mov dl, byte [rsp + 0x20]
lea rcx, [rsp + 0x170]
call fcn.1400538f4
lea rdx, [0x14014435c]
lea rcx, [rsp + 0x170]
call fcn.14005391c
lea rcx, [rsp + 0x170]
call fcn.14005a954
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 2
jne 0x140064e0d
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0x58], rax
lea rdx, [0x140144374]
lea rcx, [rsp + 0x130]
call fcn.14004e61c
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140046b88
mov qword [rsp + 0x78], rax
lea rdx, [0x140144370]
lea rcx, [rsp + 0x120]
call fcn.14004e0bc
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.140046b88
mov qword [rsp + 0x98], rax
lea rdx, [0x140144368]
lea rcx, [rsp + 0x110]
call fcn.14004e61c
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140046b88
nop
lea rcx, [rsp + 0x110]
call fcn.140050dcc
nop
lea rcx, [rsp + 0x120]
call fcn.140050dcc
nop
lea rcx, [rsp + 0x130]
call fcn.140050dcc
lea rdx, str.Removable_drive_found_at_drive
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14004706c
mov dl, byte [rsp + 0x20]
mov rcx, rax
call fcn.140046c48
lea rdx, [0x140144378]
mov rcx, rax
call fcn.14004706c
mov qword [rsp + 0xa0], rax
lea rdx, [0x14004c1a8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x21]
call fcn.140052344
mov rcx, rax
call fcn.14005e674
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.14004f0cc
nop
mov edx, 0xa
lea rcx, [rsp + 0x190]
call fcn.1400588fc
nop
lea rcx, [rsp + 0x190]
call fcn.14003235c
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.14004798c
nop
lea rcx, [rsp + 0x170]
call fcn.14003235c
jmp 0x140064b93
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [rsp + 0xc0], rax
lea rdx, [0x1401443d4]
lea rcx, [rsp + 0x160]
call fcn.14004e61c
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xc0]
call fcn.140046b88
mov qword [rsp + 0xe0], rax
lea rdx, [0x1401443cc]
lea rcx, [rsp + 0x150]
call fcn.14004e0bc
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
call fcn.140046b88
mov qword [rsp + 0x100], rax
lea rdx, [0x1401443c0]
lea rcx, [rsp + 0x140]
call fcn.14004e61c
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x100]
call fcn.140046b88
nop
lea rcx, [rsp + 0x140]
call fcn.140050dcc
nop
lea rcx, [rsp + 0x150]
call fcn.140050dcc
nop
lea rcx, [rsp + 0x160]
call fcn.140050dcc
lea rdx, str._No_removable_drive__USB_stick__found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14004706c
mov qword [rsp + 0x108], rax
lea rdx, [0x14004c1a8]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call fcn.14005fffc
movzx eax, al
test eax, eax
jne 0x140064fce
lea rdx, str.The_librarys_was_not_initialized_
lea rcx, [rsp + 0x1c8]
call fcn.140047d50
mov rcx, rax
call fcn.140058640
mov rcx, rax
call fcn.14001b234
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.140057170
test eax, eax
jne 0x14006500e
lea rdx, str.Something_wrong_here.
lea rcx, [rsp + 0x1b0]
call fcn.140047c38
mov rcx, rax
call fcn.140058384
mov rcx, rax
call fcn.14001b234
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400cbe40
add rsp, 0x230
pop rdi
ret