Function at 0x140005a70
Capabilities:
Get hostname

Disassembly:
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140005ca0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
lea rdx, str.__invok_rpc_remote_find_first_printer_change_notification_by_tar_path:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005e80
mov rcx, rax
mov rdx, rbx
call fcn.140005e80
mov rcx, rax
lea rdx, [0x140006060]
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]
mov dword [rsp + 0x78], 0x10
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9, rax
mov dword [rax], 0x5c005c
movzx ecx, byte [rsp + 0x90]
test cl, cl
je 0x140005d59
lea rdx, [rsp + 0x90]
lea rdi, [rax + 4]
movsx eax, cl
mov word [rdi], ax
lea rdi, [rdi + 2]
lea rdx, [rdx + 1]
movzx eax, byte [rdx]
movzx ecx, al
test al, al
jne 0x140005d41
xor esi, esi
mov qword [rsp + 0x70], rsi
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], edi
test eax, eax
jne 0x140005e14
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x100
mov r9, qword [rsp + 0x70]
xor r8d, r8d
lea edx, [rsi + 0x3e]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x60], rax
mov edi, eax
mov dword [rsp + 0x50], eax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea edx, [rsi + 0x1d]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x68], rax
jmp 0x140005e42
lea rdx, str.___rpc_open_printer_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004ae0
mov rcx, rax
mov edx, edi
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004cb0]
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::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140005e4a
mov eax, edi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400060f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret