Function at 0x140029b00
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x31], rsi
mov r15, qword [rbp + 0x7f]
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov qword [rbp - 0x59], 1
cmp qword [rdx + 0x10], r12
je 0x140029b6c
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140029b62
mov rbx, qword [rdx]
mov qword [rbp - 0x61], 4
jmp 0x140029b87
cmp qword [rcx + 0x10], rbx
je 0x140029b7f
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140029b7f
mov rbx, qword [rcx]
mov dword [rbp - 0x5d], r9d
mov dword [rbp - 0x61], r12d
mov edx, r8d
lea rcx, [rbp - 0x29]
call fcn.140004620
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea r9, [rbp - 0x69]
lea r8, [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140029c45
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140029bf6
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029bf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029d95
call fcn.14006a300
movdqa xmm0, xmmword [0x14009aab0]
mov byte [rbp - 0x29], 0
movdqu xmmword [rbp - 0x19], xmm0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140029c20
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 - 9]
xor rcx, rsp
call fcn.14006a2e0
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x140029d4d
movzx r14d, byte [rbp + 0x6f]
nop word [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 0x140029ca6
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 0x140029d3c
test r14b, r14b
je 0x140029cd2
mov dword [rbp - 0x71], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x71]
mov edx, 6
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140029ce9
mov qword [rbp - 0x71], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x71]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x140029d13
mov dword [rbp - 0x71], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x71]
mov edx, 0x29
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov byte [rbp - 0x79], 0
lea r9, [rbp - 0x79]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140009910
test al, al
jne 0x140029d9c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp byte [rbp - 0x79], 0
jne 0x140029d49
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140029c60
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140029bf6
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029bf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029bf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140029dde
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029dd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029d95
call fcn.14006a300
movdqa xmm0, xmmword [0x14009aab0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140029e08
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x140029c27