Function at 0x140003e60
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r12d, r12d
mov r13d, 4
lea r15, [0x14001f0c8]
mov rbx, r9
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140003ef8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x140003eee
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], edi
jne 0x140003eee
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov dword [rsp + 0x30], 0x2719
jmp 0x140003f57
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140003f07
mov dword [rbx], r12d
jmp 0x140003f64
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x140003f4d
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x140003f4d
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov rax, qword gs:[0x58]
mov edx, dword [0x1400204f8]
mov r14, qword [rax]
cmp edx, dword [r14 + r13]
jle 0x140003fb1
lea rcx, [0x1400204f8]
call fcn.14001386c
mov edx, dword [0x1400204f8]
cmp edx, 0xffffffff
jne 0x140003fb1
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov edx, dword [0x1400204f8]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x140003fca
cmp dword [rbx], 0x2734
je 0x140004026
cmp edx, dword [r14 + r13]
jle 0x140004005
lea rcx, [0x1400204f8]
call fcn.14001386c
mov edx, dword [0x1400204f8]
cmp edx, 0xffffffff
jne 0x140004005
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov edx, dword [0x1400204f8]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x1400041fa
cmp dword [rbx], 0x2733
jne 0x1400041fa
cmp rdi, 0xffffffffffffffff
jne 0x14000406b
cmp edx, dword [r14 + r13]
jle 0x14000405e
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], edi
jne 0x14000405e
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov dword [rsp + 0x30], 0x2719
jmp 0x1400041ed
lea ecx, [rdi + 1]
mov qword [rbp + 0x168], rdi
lea r9, [rsp + 0x50]
mov dword [rbp + 0x160], 1
lea r8, [rbp + 0x160]
mov qword [rsp + 0x58], rdi
xor edx, edx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000419d
lea rax, [rsp + 0x44]
mov dword [rbx], r12d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x40], r12d
mov r8d, 0x1007
mov dword [rsp + 0x44], 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
test eax, eax
jne 0x1400040eb
mov dword [rbx], r12d
jmp 0x140004151
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x140004131
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x140004131
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
cmp edi, 0xffffffff
je 0x1400041fa
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x140004197
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x140004197
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
mov eax, dword [rsp + 0x40]
jmp 0x1400041e9
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x1400041e3
lea rcx, [0x1400204f8]
call fcn.14001386c
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400041e3
lea rcx, [0x1400154c0]
call fcn.140013b48
lea rcx, [0x1400204f8]
call fcn.140013800
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400137e0
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret