Function at 0x14000d170
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rbx, rdx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rbp - 0x30]
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
je 0x14000d1bf
lea rcx, [0x1400f29a0]
jmp 0x14000d599
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WSOCK32.DLL_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000d58c
xor esi, esi
mov dword [rbp - 0x70], esi
xor edx, edx
lea r8d, [rsi + 0x2c]
lea rcx, [rbp - 0x6c]
call fcn.1400ddba0
mov dword [rbp - 0x6c], 2
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 6
mov rax, qword [0x1401293c8]
test rax, rax
jne 0x14000d221
xor ecx, ecx
call fcn.140008040
mov qword [0x1401293c8], rax
lea r9, [rbp + 0x1a0]
lea r8, [rbp - 0x70]
mov rdx, rbx
mov rcx, rdi
call rax
mov ebx, eax
mov ecx, eax
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
test ebx, ebx
jne 0x14000d583
mov rdx, qword [rbp + 0x1a0]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, r12
call qword [sym.imp.WSOCK32.DLL_connect]
mov ebx, eax
test eax, eax
je 0x14000d2e1
nop word [rax + rax]
mov r9d, 0x10012
mov r8, qword [0x14012d140]
lea rdx, [0x1400f2ab0]
mov rcx, qword [0x14012aab8]
call qword [sym.imp.USER32.DLL_MessageBoxW]
cmp eax, 3
je 0x14000d2bb
cmp eax, 5
je 0x14000d2ce
mov rdx, qword [rbp + 0x1a0]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, r12
call qword [sym.imp.WSOCK32.DLL_connect]
mov ebx, eax
test eax, eax
jne 0x14000d270
jmp 0x14000d2e1
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [0x14012c5c0]
call fcn.14002a220
mov rcx, r12
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov eax, 0x3e6
jmp 0x14000d59e
mov rdi, qword [rbp + 0x1a0]
mov rax, qword [0x1401293d0]
test rax, rax
jne 0x14000d303
lea ecx, [rax + 2]
call fcn.140008040
mov qword [0x1401293d0], rax
mov rcx, rdi
call rax
test ebx, ebx
jne 0x14000d583
mov qword [0x14012c500], r12
lea rdi, [0x1400f2f28]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x70], sil
lea rdx, [0x1400f2b10]
lea rcx, [rsp + 0x60]
call fcn.14000e870
mov rcx, rax
call fcn.1400055f0
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x40], bl
lea r13, [0x1400f2f38]
mov qword [rsp + 0x30], r13
or r8d, 0xffffffff
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400b6450
nop
mov qword [rsp + 0x60], rdi
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14000d39c
mov eax, dword [rbx + 0x20]
dec eax
mov dword [rbx + 0x20], eax
jne 0x14000d39c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d394
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rsi
mov byte [rbp - 0x78], 0
lea rdx, [0x1400f2b28]
lea rcx, [rsp + 0x78]
call fcn.14000e870
mov rcx, rax
call fcn.1400055f0
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x48], r13
or r8d, 0xffffffff
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400b6450
nop
mov qword [rsp + 0x78], rdi
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x14000d411
mov eax, dword [rbx + 0x20]
dec eax
mov dword [rbx + 0x20], eax
jne 0x14000d411
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d409
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
mov qword [0x14012c550], rsi
mov dword [0x14012c558], esi
mov rdi, qword [rsp + 0x50]
lea rsi, [0x1400f1976]
mov r13, rsi
test rdi, rdi
je 0x14000d43c
mov rax, qword [rdi]
test rax, rax
cmovne r13, rax
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14000d450
mov rax, qword [rbx]
test rax, rax
cmovne rsi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov rcx, qword [0x14012d140]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, r13
mov r8, rsi
lea rdx, [0x1400f2b40]
lea rcx, [0x14012c540]
call fcn.14000da20
lea rcx, [0x14012c4e0]
call fcn.14000d080
test eax, eax
jne 0x14000d50e
mov rax, qword [0x14012cc60]
mov qword [0x14012c508], rax
lea rsi, [0x1400f2f18]
mov qword [rsp + 0x48], rsi
test rdi, rdi
je 0x14000d4d8
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x14000d4d3
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d4cb
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rsi
test rbx, rbx
je 0x14000d507
mov eax, dword [rbx + 0x20]
dec eax
mov dword [rbx + 0x20], eax
jne 0x14000d507
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d4ff
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
xor eax, eax
jmp 0x14000d59e
mov qword [0x14012c500], 0xffffffffffffffff
lea rsi, [0x1400f2f18]
mov qword [rsp + 0x48], rsi
test rdi, rdi
je 0x14000d554
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x14000d54f
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d547
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rsi
test rbx, rbx
je 0x14000d583
mov eax, dword [rbx + 0x20]
dec eax
mov dword [rbx + 0x20], eax
jne 0x14000d583
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d57b
call fcn.1400d6fd8
mov rcx, rbx
call fcn.1400d6fd0
mov rcx, r12
call qword [sym.imp.WSOCK32.DLL_closesocket]
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
lea rcx, [0x1400f2bd0]
call fcn.14000d640
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret