Function at 0x180057200
Capabilities:
Get hostname

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x18009a918]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, r8
mov rbx, rdx
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x50], r8
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x34], r15d
xor r14b, r14b
cmp word [rdx], 0x10
jae 0x18005724f
mov eax, 0xc00000f0
jmp 0x1800575c0
test r12, r12
jne 0x18005725e
mov eax, 0xc00000f1
jmp 0x1800575c0
xor eax, eax
mov qword [r8], rax
mov qword [r8 + 8], rax
mov r13, qword [rdx + 8]
movzx esi, word [rdx]
shr esi, 1
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x30], 0x10
cmp word [r13 + 4], 0x2e
je 0x180057464
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1800572c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0xe8f00000
jmp 0x180057556
mov edx, r15d
mov dword [rsp + 0x48], edx
nop dword [rax + rax]
mov eax, edx
movzx r8d, word [rsp + rax*2 + 0x58]
test r8w, r8w
jne 0x1800572ee
lea eax, [rdx + 2]
cmp word [r13 + rax*2], 0x5c
je 0x180057464
lea eax, [rdx + 2]
cmp r8w, word [r13 + rax*2]
je 0x180057459
test r14b, r14b
jne 0x180057464
mov ebx, 2
mov dword [rsp + 0x38], ebx
nop
mov eax, ebx
cmp word [r13 + rax*2], 0x5c
je 0x180057323
inc ebx
mov dword [rsp + 0x38], ebx
jmp 0x180057310
add ebx, 0xfffffffe
mov dword [rsp + 0x38], ebx
mov eax, dword [rsp + 0x30]
sub eax, ebx
lea r14d, [rsi + 9]
add r14d, eax
mov dword [rsp + 0x4c], r14d
cmp r14d, 0x100
jbe 0x18005734f
mov edi, 0xe800002a
jmp 0x180057556
lea eax, [r14 + r14]
cmp byte [0x18009b380], 0
je 0x18005738b
mov ecx, 0x6dd
lea r15, str.ptportpipe.c
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x50545250
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800573a4
mov r8d, eax
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b430]
lea r15, str.ptportpipe.c
mov rsi, rax
mov qword [r12 + 8], rax
test rax, rax
jne 0x1800573bb
mov edi, 0xc000009a
jmp 0x18005755d
movzx eax, r14w
add ax, ax
mov word [r12], ax
mov word [r12 + 2], ax
mov dword [rsi], 0x5c005c
mov r8d, dword [rsp + 0x30]
add r8, r8
lea rcx, [rsi + 4]
lea rdx, [rsp + 0x58]
call fcn.18005f360
mov r8d, dword [rsp + 0x3c]
sub r8d, ebx
sub r8d, 3
add r8, r8
lea eax, [rbx + 2]
lea rdx, [rax*2]
add rdx, r13
mov eax, dword [rsp + 0x30]
add eax, 2
lea rcx, [rsi + rax*2]
call fcn.18005f360
mov eax, dword [rsp + 0x30]
sub eax, ebx
mov edx, dword [rsp + 0x3c]
lea ecx, [rdx - 1]
add ecx, eax
mov eax, 0x5f
mov word [rsi + rcx*2], ax
mov eax, dword [rsp + 0x30]
sub eax, ebx
add eax, edx
lea rcx, [rsi + rax*2]
mov r8d, 4
lea rdx, [rsp + 0x40]
call fcn.18005e120
lea eax, [r14 - 1]
xor ebx, ebx
mov word [rsi + rax*2], bx
jmp 0x180057563
inc edx
mov dword [rsp + 0x48], edx
jmp 0x1800572d0
movzx r14d, word [rbx]
lea esi, [r14 + 0x12]
mov rbx, qword [rbx + 8]
movzx eax, si
cmp byte [0x18009b380], 0
je 0x1800574ab
mov edx, 0xd7
lea rcx, str.D:BuildPETRU_DEFAULT_SOURCESincptportmisc.h
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], dx
xor r9d, r9d
mov r8d, 0x50545250
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800574bd
mov r8, rax
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b430]
mov qword [r12 + 8], rax
test rax, rax
je 0x180057551
movzx r8d, si
xor edx, edx
mov rcx, rax
call fcn.18005f850
mov word [r12], r14w
mov word [r12 + 2], si
movzx r8d, r14w
mov rdx, rbx
mov rcx, qword [r12 + 8]
call fcn.18005f360
mov rdx, qword [r12 + 8]
movzx eax, word [r12]
shr eax, 1
mov dword [rsp + 0x4c], eax
dec eax
lea rcx, [rdx + rax*2]
mov r8d, 4
lea rdx, [rsp + 0x40]
call fcn.18005e120
movzx eax, word [r12 + 2]
mov word [r12], ax
dec eax
movsxd rcx, eax
mov rax, qword [r12 + 8]
mov byte [rcx + rax], 0
movzx eax, word [r12]
sub eax, 2
movsxd rcx, eax
mov rax, qword [r12 + 8]
mov byte [rcx + rax], 0
lea r15, str.ptportpipe.c
jmp 0x180057561
mov edi, 0xc000009a
lea r15, str.ptportpipe.c
mov dword [rsp + 0x34], edi
xor ebx, ebx
test edi, edi
jns 0x1800575be
add r12, 8
cmp qword [r12], 0
je 0x1800575be
test r12, r12
je 0x1800575be
mov r8, qword [r12]
test r8, r8
je 0x1800575be
cmp byte [0x18009b380], 0
je 0x1800575ab
mov r9d, 0x704
mov qword [rsp + 0x20], r15
mov r8d, 0x50545250
mov rdx, r12
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x1800575ba
xor edx, edx
mov rcx, qword [0x18009ccf0]
call qword [0x18009b440]
mov qword [r12], rbx
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18005e1d0
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret