Function at 0x14001f940
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, qword [rbp + 0xb8]
mov qword [rsp + 0x30], rsi
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x48], 1
cmp qword [rdx + 0x10], r12
je 0x14001f9ac
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14001f9a2
mov rbx, qword [rdx]
mov qword [rbp - 0x50], 4
jmp 0x14001f9c7
cmp qword [rcx + 0x10], rbx
je 0x14001f9bf
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14001f9bf
mov rbx, qword [rcx]
mov dword [rbp - 0x4c], r9d
mov dword [rbp - 0x50], r12d
mov edx, 0x1f90
lea rcx, [rbp - 0x70]
call fcn.140006380
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001fa87
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14001fa38
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fd15
call fcn.140035304
movdqa xmm0, xmmword [0x14003dc80]
mov byte [rbp - 0x70], 0
movdqu xmmword [rbp - 0x60], xmm0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14001fa62
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 + 0x30]
xor rcx, rsp
call fcn.140034f90
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [0x14003bea0]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14001bbc0
mov byte [rbp + 0x20], 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001fad8
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x78], r12
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x14001fbf0
movzx r15d, byte [rbp + 0xb0]
movzx r14d, byte [rbp + 0xa8]
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 0x14001fb46
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 0x14001fbe3
test r14b, r14b
je 0x14001fb72
mov dword [rbp - 0x78], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x78]
mov edx, 6
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 4], 0x17
jne 0x14001fb9c
mov dword [rbp - 0x78], r15d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x78]
mov edx, 0x29
mov r8d, 0x1b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14001fbb3
mov qword [rbp - 0x78], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
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 0x14001fbda
mov edx, 5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14001fc0e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14001fb00
cmp byte [rbp + 0x20], 0
je 0x14001fcba
mov rcx, qword [rbp + 0x18]
test rcx, rcx
jne 0x14001fcb4
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
cmp byte [rbp + 0x20], 0
je 0x14001fc2a
mov rcx, qword [rbp + 0x18]
test rcx, rcx
jne 0x14001fc24
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14001fc47
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x18], r12
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14001fc82
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fc7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fd15
call fcn.140035304
movdqa xmm0, xmmword [0x14003dc80]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14001fcac
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x14001fa69
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14001fcd7
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x18], r12
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14001fa38
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fa33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fa33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3