Function at 0x14002ee30
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x1b0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movzx esi, r9b
mov rbp, r8
mov dword [rsp + 0x40], 0x27
mov qword [r11 - 0x128], 7
xor r12d, r12d
mov qword [r11 - 0x130], r12
mov word [r11 - 0x140], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [r11 - 0x148]
call fcn.140006c50
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14002eed7
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002eecd
mov rcx, rax
call fcn.140023810
jmp 0x14002eed0
mov rax, r12
mov qword [0x1400ec150], rax
movzx r8d, sil
lea rdx, str.GetIpAddrFromHostName_blIpv6___d_
mov rcx, rax
call fcn.140023be0
movabs r13, 0x7ffffffffffffffe
cmp qword [rsp + 0xa8], 0
jne 0x14002f0e8
mov edx, 0x27
lea rcx, [rsp + 0xb8]
call qword [sym.imp.WS2_32.dll_gethostname]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb8]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov dword [rsp + 0x28], 0x27
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0xb8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, 0x27
jae 0x14002ef6c
mov eax, edi
mov word [rsp + rax*2 + 0xe0], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xb0]
cmp rdx, 8
cmovae rax, rcx
lea rdi, [rsp + 0xe0]
mov r8, qword [rsp + 0xa8]
cmp rdi, rax
jb 0x14002f01d
lea rax, [rsp + 0x98]
cmp rdx, 8
cmovae rax, rcx
lea rax, [rax + r8*2]
lea rdi, [rsp + 0xe0]
cmp rax, rdi
jbe 0x14002f01d
lea rax, [rsp + 0x98]
cmp rdx, 8
cmovae rax, rcx
lea r8, [rsp + 0xe0]
sub r8, rax
sar r8, 1
mov r9, rbx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.140006c50
mov rdx, qword [rsp + 0xb0]
jmp 0x14002f0f0
cmp rbx, r13
jbe 0x14002f037
call fcn.1400a51a0
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
cmp rdx, rbx
jae 0x14002f056
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.140006eb0
mov rdx, qword [rsp + 0xb0]
jmp 0x14002f085
test rbx, rbx
jne 0x14002f085
mov qword [rsp + 0xa8], r12
lea rax, [rsp + 0x98]
cmp rdx, 8
cmovae rax, qword [rsp + 0x98]
mov word [rax], bx
mov rdx, qword [rsp + 0xb0]
jmp 0x14002f0f0
test rbx, rbx
je 0x14002f0f0
lea rcx, [rsp + 0x98]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x98]
lea rdi, [rbx + rbx]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0xe0]
call fcn.14007d8e0
mov qword [rsp + 0xa8], rbx
lea rax, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rax, qword [rsp + 0x98]
mov word [rdi + rax], 0
mov rdx, qword [rsp + 0xb0]
jmp 0x14002f0f0
mov rdx, qword [rsp + 0xb0]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov eax, 2
mov ecx, reloc.WS2_32.dll_socket
cmp sil, 1
cmove eax, ecx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], 6
lea r8, [rsp + 0x98]
cmp rdx, 8
cmovae r8, qword [rsp + 0x98]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x27
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r9d, [rcx - 1]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, 0x27
jae 0x14002f19f
mov eax, edi
mov byte [rsp + rax + 0x180], 0
mov rax, qword [0x1400ed378]
test rax, rax
jne 0x14002f1b9
xor ecx, ecx
call fcn.14002e570
mov qword [0x1400ed378], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0x180]
call rax
mov edi, eax
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test edi, edi
je 0x14002f278
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x400
lea rdi, [0x1400ecb70]
mov qword [rsp + 0x20], rdi
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x14002f24a
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002f240
mov rcx, rax
call fcn.140023810
jmp 0x14002f243
mov rax, r12
mov qword [0x1400ec150], rax
mov rdx, rdi
mov rcx, rax
call fcn.140023be0
nop
cmp qword [rsp + 0xb0], 8
jb 0x14002f26e
mov rcx, qword [rsp + 0x98]
call fcn.140051bc8
mov eax, 1
jmp 0x14002f610
mov rdi, qword [rsp + 0x48]
test rdi, rdi
jne 0x14002f2a4
cmp qword [rsp + 0xb0], 8
jb 0x14002f29a
mov rcx, qword [rsp + 0x98]
call fcn.140051bc8
mov eax, 1
jmp 0x14002f610
mov rax, qword [rdi + 0x20]
test rax, rax
jne 0x14002f2f1
mov rax, qword [0x1400ed380]
test rax, rax
jne 0x14002f2c9
mov cx, 2
call fcn.14002e570
mov qword [0x1400ed380], rax
mov rcx, rdi
call rax
nop
cmp qword [rsp + 0xb0], 8
jb 0x14002f2e7
mov rcx, qword [rsp + 0x98]
call fcn.140051bc8
mov eax, 1
jmp 0x14002f610
mov esi, r12d
mov word [rsp + 0x130], si
xor ecx, ecx
mov qword [rsp + 0x132], rcx
mov qword [rsp + 0x13a], rcx
mov qword [rsp + 0x142], rcx
mov qword [rsp + 0x14a], rcx
mov qword [rsp + 0x152], rcx
mov qword [rsp + 0x15a], rcx
mov qword [rsp + 0x162], rcx
mov qword [rsp + 0x16a], rcx
mov qword [rsp + 0x172], rcx
mov dword [rsp + 0x17a], ecx
cmp word [rax], 0x17
jne 0x14002f3a0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x130]
xor r8d, r8d
lea edx, [rcx + 0x1c]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x14002f3ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14002d990
mov rdi, rax
call fcn.1400237a0
mov rcx, rax
mov rdx, rdi
call fcn.140023be0
mov esi, 1
jmp 0x14002f3ec
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x130]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x14002f3ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14002d990
mov rdi, rax
call fcn.1400237a0
mov rcx, rax
mov rdx, rdi
call fcn.140023be0
mov esi, 1
mov edx, 7
mov qword [rsp + 0xd8], rdx
mov r8, r12
mov qword [rsp + 0xd0], r12
mov word [rsp + 0xc0], r8w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
cmp rcx, r13
jbe 0x14002f442
call fcn.1400a51a0
mov rdx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xd0]
cmp rdx, rbx
jae 0x14002f461
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.140006eb0
mov rdx, qword [rsp + 0xd8]
jmp 0x14002f488
test rbx, rbx
jne 0x14002f488
mov qword [rsp + 0xd0], r12
lea rax, [rsp + 0xc0]
cmp rdx, 8
cmovae rax, qword [rsp + 0xc0]
mov word [rax], bx
jmp 0x14002f4e1
test rbx, rbx
je 0x14002f4e1
lea rcx, [rsp + 0xc0]
cmp rdx, 8
cmovae rcx, qword [rsp + 0xc0]
lea rdi, [rbx + rbx]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0x130]
call fcn.14007d8e0
mov qword [rsp + 0xd0], rbx
lea rax, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rax, qword [rsp + 0xc0]
mov word [rax + rdi], 0
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0xe0]
call fcn.14002d5f0
nop
mov rdx, rax
mov rcx, rbp
call fcn.14002d7a0
nop
lea rax, [0x1400bcfc0]
mov qword [rsp + 0xe0], rax
cmp byte [rsp + 0x118], 0
je 0x14002f563
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x14002f52e
call fcn.140051bc8
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x14002f548
call fcn.140051bc8
mov qword [rsp + 0x120], r12
mov qword [rsp + 0x110], r12
mov byte [rsp + 0x118], 0
mov dword [rsp + 0x11c], 2
cmp qword [rsp + 0x108], 8
jb 0x14002f57b
mov rcx, qword [rsp + 0xf0]
call fcn.140051bc8
mov qword [rsp + 0x108], 7
mov qword [rsp + 0x100], r12
mov word [rsp + 0xf0], 0
cmp qword [rsp + 0xd8], 8
jb 0x14002f5b1
mov rcx, qword [rsp + 0xc0]
call fcn.140051bc8
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], r12
mov word [rsp + 0xc0], 0
mov rdi, qword [rsp + 0x48]
mov rax, qword [0x1400ed380]
test rax, rax
jne 0x14002f5f0
mov cx, 2
call fcn.14002e570
mov qword [0x1400ed380], rax
mov rcx, rdi
call rax
nop
cmp qword [rsp + 0xb0], 8
jb 0x14002f60e
mov rcx, qword [rsp + 0x98]
call fcn.140051bc8
mov eax, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14007d3d0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret