Function at 0x14010ac30
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x4c], 1
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0xffffffffffffffff
je 0x14010acc8
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x380
lea rdx, [0x1403a9840]
xor ecx, ecx
call fcn.140124df0
mov r8d, 0x380
lea rdx, [0x1403a97e0]
lea rcx, str.CRITICALEXIT2__FILE:__s__LINE:__d_r_n
call fcn.1400012d0
mov ecx, 0xfd
call fcn.1402742dc
mov rax, qword [rsp + 0x40]
add rax, 0x78
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
add rax, 0x94
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
add rax, 0xb0
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
cmp qword [rsp + 0xd0], 0
je 0x14010ad7d
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax]
cmp eax, 1
jne 0x14010ad36
mov eax, 1
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x78], ax
jmp 0x14010ad7d
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14010ad51
mov qword [rsp + 0x50], 0x1c
jmp 0x14010ad5a
mov qword [rsp + 0x50], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x40]
add rax, 0x78
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0xd0]
mov edx, 0x1c
mov rcx, rax
call fcn.140001020
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x70], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x74], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x254], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x240], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
mov qword [rax + 0x220], rcx
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x274]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x268]
call fcn.140281018
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14010ae40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x39f
lea rdx, [0x1403a9780]
xor ecx, ecx
call fcn.140124df0
mov r8d, 0x39f
lea rdx, [0x1403a96f0]
lea rcx, [0x1403a9368]
call fcn.1400012d0
mov ecx, 0xfe
call fcn.1402742dc
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x268], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x274]
mov dword [rax + 0x270], ecx
cmp qword [rsp + 0xc8], 0
jne 0x14010aedd
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14010aedd
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xcc]
test eax, eax
jne 0x14010aeb9
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax]
mov word [rsp + 0x80], ax
jmp 0x14010aecd
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xcc]
mov word [rsp + 0x80], ax
lea rax, [rsp + 0x80]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14010af9d
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax]
test eax, eax
je 0x14010af31
mov r8d, 6
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.14011e710
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x68], rcx
cmp qword [rsp + 0x60], 0
jae 0x14010af9b
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x68], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3c6
lea rax, [0x1403a9680]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14010a970]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x238]
call fcn.140120670
jmp 0x14010b2ce
jmp 0x14010b016
xor r8d, r8d
mov edx, 1
mov ecx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x68], rcx
cmp dword [rsp + 0x68], 0
jge 0x14010b016
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfd
mov r8d, 0x3cc
lea rdx, [0x1403a95d0]
xor ecx, ecx
call fcn.140124df0
mov r8d, 0x3cc
lea rdx, [0x1403a9570]
lea rcx, [0x1403a92f8]
call fcn.1400012d0
mov ecx, 0xfd
call fcn.1402742dc
jmp 0x14010b2ce
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x258], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2a4], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x25c], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x260], 0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14010b0ba
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x4c]
mov r8d, 8
mov edx, 0xffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14010b0ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x3da
lea rdx, [0x1403a9500]
xor ecx, ecx
call fcn.140124df0
mov ecx, 0xfd
call fcn.1402742dc
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xcc]
test eax, eax
je 0x14010b1ad
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14010b1ad
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xcc]
cmp eax, 0x17
jne 0x14010b115
mov qword [rsp + 0x70], 0x1c
jmp 0x14010b11e
mov qword [rsp + 0x70], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x40]
add rax, 0xcc
mov r8d, dword [rsp + 0x70]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x14010b1a8
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3ed
lea rax, [0x1403a9490]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14010a970]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x238]
call fcn.140120670
jmp 0x14010b2ce
jmp 0x14010b2c0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x78]
cmp eax, 1
je 0x14010b266
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14010b1da
mov qword [rsp + 0x78], 0x1c
jmp 0x14010b1e3
mov qword [rsp + 0x78], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x14010b264
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3f9
lea rax, [0x1403a9400]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14010a970]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x238]
call fcn.140120670
jmp 0x14010b2ce
jmp 0x14010b2c0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x258], 0xffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x405
lea rax, [0x1403a9390]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [fcn.14010a970]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x238]
call fcn.140120670
jmp 0x14010b2ce
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call fcn.140115090
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14026d940
add rsp, 0xb0
pop rdi
ret