Function at 0x1400d9610
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov rax, qword [0x140546618]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rcx
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x11], rsi
mov r15, qword [rbp + 0x7f]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov dword [rbp - 0x3d], r8d
mov qword [rbp - 0x39], 1
xor r12d, r12d
mov dword [rbp - 0x41], r12d
lea rcx, [rbp - 9]
call fcn.14003d9b0
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400d9732
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400d96da
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d96d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d98e7
call fcn.14036fd20
mov byte [rbp - 9], 0
mov qword [rbp + 0xf], 0xf
mov qword [rbp + 7], r12
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400d9703
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14036fcc0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x1400d982b
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
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 0x1400d9796
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 0x1400d981a
test r14b, r14b
je 0x1400d97c0
mov dword [rbp - 0x51], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x51]
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 0x1400d97d7
mov qword [rbp - 0x51], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x51]
call qword [rax + 0x10]
cmp dword [rbx + 4], 0x17
jne 0x1400d97ff
mov dword [rbp - 0x51], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x51]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.1400c07c0
test al, al
jne 0x1400d9874
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400d9750
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400d96da
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d96d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d98e7
jmp 0x1400d96d5
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400d98b6
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d98b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d98e7
call fcn.14036fd20
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400d98df
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x1400d970a
call fcn.1403933ec
int3