Function at 0x1400485f0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x14006b028]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x49], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
mov qword [rbp - 9], 1
xor r15d, r15d
mov dword [rbp - 0xd], r9d
mov dword [rbp - 0x11], r15d
mov edx, 0x1bb
lea rcx, [rbp - 0x31]
call fcn.1400016c0
nop
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rdx, qword [rbp - 0x31]
lea r9, [rbp - 0x41]
lea r8, [rbp - 0x11]
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140048718
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400486be
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400486b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048866
call fcn.14004e23c
movdqa xmm0, xmmword [0x14005c1c0]
mov byte [rbp - 0x31], 0
movdqu xmmword [rbp - 0x21], xmm0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400486e8
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r15
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14004e1e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x14004881e
movzx r14d, byte [rbp + 0x6f]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140048776
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004880d
test r14b, r14b
je 0x1400487a0
mov dword [rbp - 0x39], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x39]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400487b7
mov qword [rbp - 0x39], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x39]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400487df
mov dword [rbp - 0x39], r15d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x39]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140048804
lea edx, [rax + 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14004886d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140048730
mov rbx, qword [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400486be
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400486b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400486b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1400488af
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400488aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048866
call fcn.14004e23c
movdqa xmm0, xmmword [0x14005c1c0]
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x31], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400488d9
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r15
mov rax, rdi
jmp 0x1400486ef