Function at 0x140020a90
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x4f]
sub rsp, 0x90
mov ebx, r8d
mov dword [rbp - 0x11], 0x20
mov rdi, rdx
mov dword [rsp + 0x20], 4
mov rsi, rcx
lea r9, [rbp - 0x11]
mov edx, 0xffff
mov rcx, 0xffffffffffffffff
mov r8d, 0x7008
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [rbp + 0x7f]
lea rcx, [rbp - 1]
xorps xmm0, xmm0
mov dword [rbp + 0x23], 0
xorps xmm1, xmm1
mov qword [rbp + 0x27], 1
mov edx, ebx
mov dword [rbp + 0x1f], eax
movdqu xmmword [rbp + 0x2f], xmm0
movdqu xmmword [rbp + 0x3f], xmm1
call fcn.140058d10
cmp qword [rbp + 0x17], 0x10
lea rdx, [rbp - 1]
lea r9, [rbp - 9]
mov rcx, rdi
cmovae rdx, qword [rbp - 1]
lea r8, [rbp + 0x1f]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140020c2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x277d
jg 0x140020bf5
je 0x140020bed
sub edx, 8
je 0x140020be5
sub edx, 0x271e
je 0x140020bdd
sub edx, 0x16
je 0x140020bdd
cmp edx, 3
jne 0x140020c0b
mov dword [rsi], 2
mov qword [rsi + 8], 0xffffffffffffffff
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140020bbd
mov rcx, qword [rbp - 1]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020bb8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020e21
call fcn.1401d6ea0
lea r11, [rsp + 0x90]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rsi], 4
jmp 0x140020b7a
mov dword [rsi], 6
jmp 0x140020b7a
mov dword [rsi], 7
jmp 0x140020b7a
sub edx, 0x2af9
je 0x140020b74
sub edx, 1
je 0x140020c21
cmp edx, 1
je 0x140020c16
mov dword [rsi], 1
jmp 0x140020b7a
mov dword [rsi], 5
jmp 0x140020b7a
mov dword [rsi], 3
jmp 0x140020b7a
mov rdi, qword [rbp - 9]
mov ebx, dword [rbp + 0x7f]
test rdi, rdi
je 0x140020d03
nop dword [rax]
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140020cf2
lea r9, [rbp + 0x7f]
mov byte [rbp + 0x7f], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 1
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140020ce4
mov r8d, dword [rdi + 0x10]
mov rcx, r14
mov rdx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140020d87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2740
jg 0x140020d59
je 0x140020dd5
sub edx, 0x70
je 0x140020ce4
sub edx, 0x26ad
je 0x140020df4
sub edx, 1
je 0x140020df4
sub edx, 8
je 0x140020df4
cmp edx, 0x10
je 0x140020dcb
mov ebx, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140020c40
mov rdi, qword [rbp - 9]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rbp + 0x17]
mov dword [rsi], ebx
mov qword [rsi + 8], 0xffffffffffffffff
cmp rdx, 0x10
jb 0x140020bbd
mov rcx, qword [rbp - 1]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020bb8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020e21
jmp 0x140020bb8
sub edx, 0x2741
je 0x140020d7d
sub edx, 1
je 0x140020dfe
cmp edx, 5
jne 0x140020ce4
mov ebx, ntohl
jmp 0x140020ce9
mov ebx, 2
jmp 0x140020ce9
mov edx, 0x64
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140020e08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jg 0x140020ddf
je 0x140020dd5
sub eax, 0x70
je 0x140020ce4
sub eax, 0x26b6
je 0x140020df4
sub eax, 2
je 0x140020d73
sub eax, 0xe
je 0x140020dcb
cmp eax, 7
jne 0x140020ce4
mov ebx, 9
jmp 0x140020ce9
mov ebx, 0xa
jmp 0x140020ce9
sub eax, 0x2742
je 0x140020dfe
sub eax, 5
je 0x140020d73
cmp eax, 1
jne 0x140020ce4
mov ebx, 4
jmp 0x140020ce9
mov ebx, ntohl
jmp 0x140020ce9
mov rcx, qword [rbp - 9]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [rsi], 0
mov qword [rsi + 8], r14
jmp 0x140020b82
call fcn.1401fe6e4
int3