Function at 0x140058850
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400f1080]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r15, rcx
mov qword [rsp + 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_35
mov al, reloc.WS2_32.dll_WSASetLastError
mov cl, 0x5a
mov dl, 0x50
mov r8b, 0x57
mov r9b, 0x46
mov r10b, Ordinal_79
mov r11b, 0x67
mov bl, 0x51
mov dil, 0x4a
mov sil, 0x55
movzx r14d, r9b
xor r12d, r12d
xor al, 0x23
mov byte [rsp + 0x41], al
xor cl, 0x23
mov byte [rsp + 0x42], cl
xor dl, 0x23
mov byte [rsp + 0x43], dl
xor r8b, 0x23
mov byte [rsp + 0x44], r8b
xor r9b, 0x23
mov byte [rsp + 0x45], r9b
xor r10b, 0x23
mov byte [rsp + 0x46], r10b
xor r11b, 0x23
mov byte [rsp + 0x47], r11b
xor bl, 0x23
mov byte [rsp + 0x48], bl
xor dil, 0x23
mov byte [rsp + 0x49], dil
xor sil, 0x23
mov byte [rsp + 0x4a], sil
xor r14b, 0x23
mov byte [rsp + 0x4b], r14b
mov byte [rsp + 0x4c], r12b
lea r8, [rsp + 0x41]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
test eax, eax
jne 0x140058b89
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140058b89
lea rcx, [rsp + 0x78]
call fcn.140001560
nop
mov r8d, 1
lea rdx, [0x1400de764]
lea rcx, [rsp + 0x78]
call fcn.14005f8f0
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400df8e8]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x58], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x58], rbx
mov qword [rbp + 0x10], r13
mov dword [rbp + 0x18], 4
mov dword [rsp + 0x70], r13d
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
lea rdx, [0x140057220]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x70]
shr edx, 0x10
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
movzx edx, word [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], r12b
mov dword [rsp + 0x58], 0xa
movups xmmword [rsp + 0x40], xmm0
mov ecx, dword [rbp + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140058abe
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x140058abe
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
jmp 0x140058aef
test cl, 4
jne 0x140058ae5
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x140058ae5
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140058aef
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140058afd
mov rcx, r15
call fcn.140060420
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x58], rbx
lea rcx, [rbp - 0x58]
call fcn.14005fc20
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140058b98
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058b82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058b82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1c74
jmp 0x140058b98
lea rdx, [0x1400d36a8]
mov rcx, r15
call fcn.140001560
mov rax, r15
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1400c1970
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret