Function at 0x180091390
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x818]
sub rsp, 0x910
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov r14d, 2
sub ecx, 1
je 0x180091705
cmp ecx, 1
jne 0x180091732
xor edi, edi
mov dword [rbp - 0x30], edi
lea r8, [rbp - 0x30]
xor edx, edx
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1800915f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1800915f7
mov ecx, dword [rbp - 0x30]
inc ecx
mov eax, r14d
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1800a6d90
mov rsi, rax
mov ecx, dword [rbp - 0x30]
mov word [rax + rcx*2], di
lea r8, [rbp - 0x30]
mov rdx, rax
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x180091545
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_read_hostname__error_:__d
mov edx, 0x7ff
lea rcx, [rbp]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x180091538
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea r8d, [r14 + 0x14]
lea rdx, str.GridCloudLicensing.cpp
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
lea r8d, [r14 + 0x17]
lea rdx, str._deviceSetEnvironmentInfo
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x57e
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x48]
lea edx, [rdi + 3]
call fcn.180019ae4
mov rcx, rsi
call fcn.18006b9e0
jmp 0x180091732
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp word [rsi], di
jne 0x180091562
mov rbx, rdi
jmp 0x18009156b
inc rbx
cmp word [rsi + rbx*2], di
jne 0x180091562
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.18001eca0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.18009c5b0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1800915a8
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180020b60
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x1800915e1
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
inc r8
lea rcx, [0x1801f0f50]
call fcn.1800e3890
lea rbx, [0x1801c0210]
mov rax, qword [rbp - 0x18]
mov byte [rax + rbx + 0x30d40], 0
mov rcx, rsi
call fcn.18006b9e0
lea rcx, [rbp - 0x28]
call fcn.18001c670
jmp 0x1800916dc
lea r8, str.Unable_to_read_hostname_size
mov edx, 0x7ff
lea rcx, [rbp]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x1800916dc
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.GridCloudLicensing.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 0x19
lea rdx, str._deviceSetEnvironmentInfo
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rax, [rbp]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x570
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x38]
mov edx, 3
call fcn.180019ae4
xor edx, edx
mov r8d, 0x186a0
lea rcx, [0x1801d88b0]
call fcn.1800cf2b0
mov edx, r14d
lea rcx, [0x1801d88b0]
call fcn.1800a2d90
test al, al
je 0x180091732
jmp 0x18009172f
xor edx, edx
mov r8d, 0x186a0
lea rbx, [0x1801c0210]
mov rcx, rbx
call fcn.1800cf2b0
mov edx, 1
mov rcx, rbx
call fcn.1800a2d90
test al, al
je 0x180091732
xor edi, edi
mov r14d, edi
mov eax, r14d
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1800a6240
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret