Function at 0x14005c840
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa0
mov rax, qword [0x140205108]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x19], rsi
xor r15d, r15d
mov ebx, r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
mov qword [rbp - 0x41], 1
cmp qword [rdx + 0x10], r15
je 0x14005c8a9
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14005c89f
mov rbx, qword [rdx]
mov qword [rbp - 0x49], 4
jmp 0x14005c8c6
cmp qword [rcx + 0x10], rbx
je 0x14005c8bc
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14005c8bc
mov rbx, qword [rcx]
mov dword [rbp - 0x45], r9d
mov eax, dword [rbp + 0x67]
mov dword [rbp - 0x49], eax
mov edx, r8d
lea rcx, [rbp - 0x11]
call fcn.1400561e0
nop
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rdx, qword [rbp - 0x11]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14005c988
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14005c935
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c930
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cb4a
call fcn.140167ab8
mov byte [rbp - 0x11], 0
mov qword [rbp + 7], reloc.WS2_32.dll_ntohs
mov qword [rbp - 1], r15
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14005c95e
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 + 0xf]
xor rcx, rsp
call fcn.1401677c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rbp - 0x51]
test rbx, rbx
je 0x14005ca8e
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 0x14005c9e6
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 0x14005ca7d
test r14b, r14b
je 0x14005ca10
mov dword [rbp - 0x59], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
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 0x14005ca27
mov qword [rbp - 0x59], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14005ca4f
mov dword [rbp - 0x59], r15d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
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 0x14005ca74
lea edx, [rax + 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14005cad7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14005c9a0
mov rbx, qword [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14005c935
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c930
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cb4a
jmp 0x14005c930
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14005cb19
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cb14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cb4a
call fcn.140167ab8
mov qword [rbp - 1], r15
mov qword [rbp + 7], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x11], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14005cb42
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r15
mov rax, rdi
jmp 0x14005c965
call fcn.14017d6e4
int3