Function at 0x140065278
Capabilities:
Get disk information
Terminate process

Disassembly:
push rdi
sub rsp, 0x230
mov rax, qword [0x1406884c0]
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 0x1400652b1
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x1a
jge 0x140065533
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 0x14006552e
mov eax, dword [rsp + 0x24]
add eax, 0x41
mov byte [rsp + 0x20], al
lea rdx, [0x140144398]
lea rcx, [rsp + 0x170]
call fcn.14004eb30
nop
mov dl, byte [rsp + 0x20]
lea rcx, [rsp + 0x170]
call fcn.140053320
lea rdx, [0x1401443a0]
lea rcx, [rsp + 0x170]
call fcn.140053348
lea rcx, [rsp + 0x170]
call fcn.14005af1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 2
jne 0x140065521
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, [0x1401443b8]
lea rcx, [rsp + 0x130]
call fcn.14004e080
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.1400465ec
mov qword [rsp + 0x78], rax
lea rdx, [0x1401443b4]
lea rcx, [rsp + 0x120]
call fcn.14004db20
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.1400465ec
mov qword [rsp + 0x98], rax
lea rdx, [0x1401443a8]
lea rcx, [rsp + 0x110]
call fcn.14004e080
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.1400465ec
nop
lea rcx, [rsp + 0x110]
call fcn.140050830
nop
lea rcx, [rsp + 0x120]
call fcn.140050830
nop
lea rcx, [rsp + 0x130]
call fcn.140050830
lea rdx, [0x1401443c0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140046ad0
mov dl, byte [rsp + 0x20]
mov rcx, rax
call fcn.1400466ac
lea rdx, [0x1401443bc]
mov rcx, rax
call fcn.140046ad0
mov qword [rsp + 0xa0], rax
lea rdx, [0x14004bc0c]
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.140051db0
mov rcx, rax
call fcn.14005eb04
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.14004eb30
nop
mov edx, 0xa
lea rcx, [rsp + 0x190]
call fcn.140058ec4
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.1400473f0
nop
lea rcx, [rsp + 0x170]
call fcn.14003235c
jmp 0x1400652a7
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, [0x140144410]
lea rcx, [rsp + 0x160]
call fcn.14004e080
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.1400465ec
mov qword [rsp + 0xe0], rax
lea rdx, [0x140144408]
lea rcx, [rsp + 0x150]
call fcn.14004db20
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.1400465ec
mov qword [rsp + 0x100], rax
lea rdx, [0x140144400]
lea rcx, [rsp + 0x140]
call fcn.14004e080
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.1400465ec
nop
lea rcx, [rsp + 0x140]
call fcn.140050830
nop
lea rcx, [rsp + 0x150]
call fcn.140050830
nop
lea rcx, [rsp + 0x160]
call fcn.140050830
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.140046ad0
mov qword [rsp + 0x108], rax
lea rdx, [0x14004bc0c]
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.14006048c
movzx eax, al
test eax, eax
jne 0x1400656e2
lea rdx, str.The_librarys_was_not_initialized_
lea rcx, [rsp + 0x1c8]
call fcn.1400477b4
mov rcx, rax
call fcn.140058c08
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.14005773c
test eax, eax
jne 0x140065722
lea rdx, str.Something_wrong_here.
lea rcx, [rsp + 0x1b0]
call fcn.14004769c
mov rcx, rax
call fcn.14005894c
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.1400cc560
add rsp, 0x230
pop rdi
ret