Function at 0x140003e40
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 [0x14001e040]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r12d, r12d
mov r13d, 4
lea r15, [0x14001e0c8]
mov rbx, r9
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140003ed8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140003ece
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], edi
jne 0x140003ece
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rsp + 0x30], 0x2719
jmp 0x140003f37
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140003ee7
mov dword [rbx], r12d
jmp 0x140003f44
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140003f2d
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140003f2d
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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 [0x14001f4b4]
mov r14, qword [rax]
cmp edx, dword [r14 + r13]
jle 0x140003f91
lea rcx, [0x14001f4b4]
call fcn.14001277c
mov edx, dword [0x14001f4b4]
cmp edx, 0xffffffff
jne 0x140003f91
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov edx, dword [0x14001f4b4]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x140003faa
cmp dword [rbx], 0x2734
je 0x140004006
cmp edx, dword [r14 + r13]
jle 0x140003fe5
lea rcx, [0x14001f4b4]
call fcn.14001277c
mov edx, dword [0x14001f4b4]
cmp edx, 0xffffffff
jne 0x140003fe5
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov edx, dword [0x14001f4b4]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x1400041da
cmp dword [rbx], 0x2733
jne 0x1400041da
cmp rdi, 0xffffffffffffffff
jne 0x14000404b
cmp edx, dword [r14 + r13]
jle 0x14000403e
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], edi
jne 0x14000403e
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rsp + 0x30], 0x2719
jmp 0x1400041cd
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 0x14000417d
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 0x1400040cb
mov dword [rbx], r12d
jmp 0x140004131
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140004111
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140004111
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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 0x1400041da
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140004177
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140004177
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov eax, dword [rsp + 0x40]
jmp 0x1400041c9
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x1400041c3
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x1400041c3
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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.1400126f0
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret