Function at 0x180038b00
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xc0
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor r12d, r12d
mov esi, r9d
mov ebp, ecx
lea r13d, [r12 + 1]
lea r15d, [r12 + 2]
lea r8d, [r12 + 6]
xor r9d, r9d
mov edx, r13d
mov ecx, r15d
mov dword [rsp + 0x28], r13d
mov edi, r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x68], r12
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
cmp rbx, 0xffffffffffffffff
je 0x180038d92
mov eax, 0xddf3
xor ecx, ecx
mov dword [rsp + 0x88], 0x25a207b9
mov word [rsp + 0x8c], ax
mov eax, 0x4660
mov byte [rsp + 0x90], 0x8e
mov byte [rsp + 0x91], 0xe9
mov byte [rsp + 0x92], 0x76
mov byte [rsp + 0x93], 0xe5
mov word [rsp + 0x8e], ax
mov byte [rsp + 0x94], 0x8c
mov byte [rsp + 0x95], 0x74
mov byte [rsp + 0x96], 6
mov byte [rsp + 0x97], 0x3e
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x5c], r12d
mov word [rsp + 0xa8], r15w
mov dword [rsp + 0xac], esi
call sub.WS2_32.dll_htons
lea esi, [r12 + 0x10]
lea rdx, [rsp + 0xa8]
mov r8d, esi
mov rcx, rbx
mov word [rsp + 0xaa], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, r12d
jne 0x180038d92
mov ecx, 0x32e3
mov word [rsp + 0x98], r15w
mov dword [rsp + 0x9c], ebp
call sub.WS2_32.dll_htons
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov word [rsp + 0x9a], ax
lea rax, [rsp + 0x5c]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r9d, esi
mov edx, 0xc8000006
mov rcx, rbx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x180038d77
cmp qword [rsp + 0x50], r12
je 0x180038d77
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
lea rdx, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x68]
mov r8d, esi
mov qword [rsp + 0x30], rax
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call qword [rsp + 0x50]
cmp eax, r12d
jne 0x180038cf6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x180038d92
lea rdx, [rsp + 0x80]
mov r9d, 0xbb8
mov r8d, r13d
mov ecx, r13d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov rcx, rbx
cmp eax, r12d
je 0x180038d25
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x180038d92
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x68]
mov r9d, r13d
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
cmp eax, r12d
je 0x180038d92
xor r9d, r9d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, r12d
jne 0x180038d92
mov edi, r13d
jmp 0x180038d92
lea rdx, [rsp + 0x98]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r12d
cmove edi, r13d
mov rcx, qword [rsp + 0x80]
cmp rcx, r12
je 0x180038da5
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
cmp edi, r12d
jne 0x180038dbc
cmp rbx, 0xffffffffffffffff
je 0x180038dbc
mov rcx, rbx
call sub.WS2_32.dll_closesocket
or rbx, 0xffffffffffffffff
mov rax, rbx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret