Function at 0x140066060
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rsi, r8
mov r15b, dl
mov r14, rcx
lea r8, str.BackupProfile::GetSettingsStoragePath__
lea rdx, str.UevCommon
lea rcx, [r11 - 0x2c8]
call fcn.140047830
nop
xor r12d, r12d
mov qword [rsi + 0x10], r12
cmp qword [rsi + 0x18], 8
jb 0x1400660cd
mov rax, qword [rsi]
jmp 0x1400660d0
mov rax, rsi
mov word [rax], r12w
mov r13d, 7
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x118], r12
mov word [rsp + 0x108], r12w
lea r8, str.BackupProfile::GetDeviceFolderName__
lea rdx, str.UevCommon
lea rcx, [rsp + 0x130]
call fcn.140047830
nop
mov edi, r12d
xor r8d, r8d
lea rdx, [0x1400d2100]
lea rcx, [rsp + 0x108]
call fcn.140005c18
mov dword [rsp + 0x100], 0x104
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x2b0]
lea ecx, [r13 - 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140066209
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x800700ea
jne 0x14006625c
mov ecx, dword [rsp + 0x100]
lea eax, [r13 - 5]
mul rcx
lea r8, [r13 - 8]
cmovo rax, r8
mov rcx, rax
call fcn.140097b58
mov rbx, rax
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x100]
mov rdx, rax
lea ecx, [r13 - 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1400661cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400661fe
mov edi, r12d
mov r8d, dword [rsp + 0x100]
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.140005c18
mov r8, r13
lea rdx, str.Success
lea rcx, [rsp + 0x170]
call fcn.140005c18
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14006625c
cmp word [rsp + 0x2b0], r12w
jne 0x140066219
mov r8, r12
jmp 0x14006622f
lea rax, [rsp + 0x2b0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140066225
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x108]
call fcn.140005c18
mov r8, r13
lea rdx, str.Success
lea rcx, [rsp + 0x170]
call fcn.140005c18
nop
lea rcx, [rsp + 0x130]
call fcn.140047940
mov dword [rsp + 0x104], edi
test edi, edi
js 0x1400662b7
mov r9, rsi
lea r8, [rsp + 0x108]
mov dl, r15b
mov rcx, r14
call fcn.140065be0
nop
cmp qword [rsp + 0x120], 8
jb 0x1400662a5
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rsp + 0x230]
call fcn.140047940
jmp 0x14006638a
call fcn.14000a314
mov rax, qword [rax]
test byte [rax + 0x20], 8
jbe 0x140066351
lea rdx, str.BackupProfile::GetSettingsStoragePath_____Failed_to_get_the_device_folder_name._Error___1_.
lea rcx, [rsp + 0x20]
call fcn.140005a2c
nop
lea rdx, str.UevCommon
lea rcx, [rsp + 0x40]
call fcn.140005a2c
nop
call fcn.14000a314
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x130]
call fcn.14001dca0
nop
lea rdx, [rsp + 0x104]
mov rcx, rax
call fcn.140011e54
mov rbx, rax
call fcn.14000a314
mov r9, rbx
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14001d9fc
nop
lea rcx, [rsp + 0x130]
call fcn.140009814
nop
lea rcx, [rsp + 0x40]
call fcn.140003360
nop
lea rcx, [rsp + 0x20]
call fcn.140003360
lea rdx, str.Failed_to_get_the_device_folder_name
lea rcx, [rsp + 0x20]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140004cdc
lea rdx, [0x140118c50]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret