Function at 0x140004cb0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140018638]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
call fcn.1400095a0
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x140004ce6
mov eax, ebx
jmp 0x140004f30
mov ecx, 0x40
mov qword [rsp + 0x258], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsd xmm0, qword [str.anonymous]
mov rsi, rax
movsd qword [rax], xmm0
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
mov word [rax + 8], cx
mov ecx, 0x12c
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x24], 4
call qword [sym.imp.WS2_32.dll_htonl]
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov dword [rsp + 0x28], eax
call fcn.140005b50
cmp eax, 0xffffffff
jne 0x140004d62
mov rcx, qword [0x1400182f8]
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140005a50
test eax, eax
js 0x140004da3
mov r8d, dword [rsp + 0x24]
test r8d, r8d
jle 0x140004d8e
lea rdx, [rsp + 0x28]
mov ecx, ebx
call fcn.1400091c0
cmp eax, dword [rsp + 0x24]
jne 0x140004da8
mov r8d, dword [rsp + 0x20]
cmp r8d, 2
je 0x140004dc7
mov edx, 2
jmp 0x140004ebc
cmp eax, 0xffffffff
jne 0x140004d8e
mov rcx, qword [0x1400182a8]
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [0x1400191f4], eax
cmp eax, 0x12c
je 0x140004e1f
movsd xmm1, qword [0x14000fba0]
mov rcx, qword [0x140018578]
movq rdx, xmm1
movd xmm2, eax
cvtdq2pd xmm2, xmm2
divsd xmm2, qword [0x14000e2f8]
movq r8, xmm2
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
mov r8d, 0x103
mov dword [rsp + 0x20], 1
mov rdx, rsi
mov dword [rsp + 0x24], 0x208
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, 0x104
mov byte [rsp + 0x12b], 0
lea rcx, [rsp + 0x12c]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x22f], 0
mov ecx, ebx
call fcn.140005b50
cmp eax, 0xffffffff
jne 0x140004e80
mov rcx, qword [0x1400182f8]
jmp 0x140004ee4
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140005a50
test eax, eax
js 0x140004ed8
mov r8d, dword [rsp + 0x24]
test r8d, r8d
jle 0x140004eac
lea rdx, [rsp + 0x28]
mov ecx, ebx
call fcn.1400091c0
cmp eax, dword [rsp + 0x24]
jne 0x140004edd
mov r8d, dword [rsp + 0x20]
cmp r8d, 1
je 0x140004ef9
mov edx, 1
mov rcx, qword [0x1400185c8]
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
cmp eax, 0xffffffff
jne 0x140004eac
mov rcx, qword [0x1400182a8]
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohl]
test eax, eax
jne 0x140004f26
mov rcx, qword [0x140018528]
mov rdx, rdi
call fcn.140004050
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x140004f28
mov eax, ebx
mov rsi, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400066c0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret