Function at 0x140176c8c
Capabilities:
Check if file exists
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rsi, rdx
xor edi, edi
lea r8, [rbp - 0x79]
xor edx, edx
mov dword [rbp - 0x79], edi
mov ecx, r9d
mov r15d, r9d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x75], eax
test ebx, ebx
je 0x140176d48
cmp eax, 0xea
je 0x140176d48
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140176d36
lea rax, [rbp - 0x75]
mov qword [rbp + 0xf], 0xce
mov qword [rbp - 9], rax
lea r8d, [rdi + 4]
lea rax, str.The_preliminarily_call_to_GetComputerNameEx___to_get_the_buffer_size_failed._Return_empty_machine_name
mov qword [rbp - 1], r8
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403dfae7]
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call fcn.140001158
mov rdx, r14
mov rcx, rsi
call fcn.140064f70
xor al, al
jmp 0x140176ef0
mov edx, dword [rbp - 0x79]
lea rcx, [rbp - 0x69]
call fcn.1401776f4
mov rdx, qword [rbp - 0x69]
lea r8, [rbp - 0x79]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140176dd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x75], eax
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140176dc5
lea rax, [rbp - 0x75]
mov qword [rbp + 0xf], 0x84
mov qword [rbp - 9], rax
mov r8d, 4
lea rax, str.The_call_to_GetComputerNameEx___failed._Return_empty_machine_name
mov qword [rbp - 1], r8
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403dfae7]
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call fcn.140001158
mov rdx, r14
mov rcx, rsi
call fcn.140064f70
jmp 0x140176ee4
movdqa xmm0, xmmword [0x14038ac40]
lea rcx, [rbp - 0x29]
mov rdx, qword [rbp - 0x69]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], di
call fcn.14004d5c4
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.140062650
lea rax, [rbp - 0x51]
cmp rsi, rax
je 0x140176e34
mov rcx, rsi
call fcn.14004e0f0
movups xmm0, xmmword [rbp - 0x51]
mov word [rbp - 0x51], di
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [rsi], xmm0
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp - 0x41], xmm0
movups xmmword [rsi + 0x10], xmm1
lea rcx, [rbp - 0x51]
call fcn.14004e0f0
lea rcx, [rbp - 0x29]
call fcn.14004e0f0
call fcn.14004d8a4
mov r8d, 4
mov r10, qword [rax + 8]
cmp dword [r10], r8d
jbe 0x140176ee1
cmp qword [rsi + 0x18], 8
lea rax, str.Machine_Name_is_extracted_Successfully
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x4e
jb 0x140176e7b
mov rsi, qword [rsi]
lea rcx, [0x140344690]
mov rax, rdi
test rsi, rsi
je 0x140176e9a
mov rcx, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140176e91
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], eax
lea rax, [rbp - 0x71]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x13], edi
mov dword [rbp - 0x71], r15d
mov qword [rbp + 0x1f], r8
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403d98a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov dil, 1
lea rcx, [rbp - 0x69]
call fcn.14008903c
mov al, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret