Function at 0x18000e9b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1800370e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13d, r8d
mov rsi, rcx
lea rcx, [rbp - 0x19]
call fcn.18000c2f0
nop
mov rax, qword [rbp - 0x19]
cmp dword [rax - 0x10], 0
jne 0x18000ea1e
or edi, 0xffffffff
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000ea17
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
jmp 0x18000ece6
mov r9, qword [0x18003a0e0]
lea r8, [0x180031008]
lea rdx, str.mode
lea rcx, [rbp - 0x11]
call fcn.18000b890
nop
lea rdx, [0x180031014]
mov rcx, qword [rbp - 0x11]
call fcn.180011404
test eax, eax
sete al
or edi, 0xffffffff
test al, al
je 0x18000ebdc
mov dword [rsi + 8], 1
lea rcx, [0x180037078]
mov rax, qword [0x180037078]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 9], rbx
lea rdx, str.error
test rdx, 0xffffffffffff0000
jne 0x18000eaaf
movzx r12d, dx
mov ecx, r12d
call fcn.180001110
test rax, rax
je 0x18000eac2
mov r8d, r12d
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.180001450
jmp 0x18000eabe
mov r8d, 5
lea rcx, [rbp - 9]
call fcn.180001590
mov rbx, qword [rbp - 9]
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x18000eb29
lea rdx, [rbx - 0x18]
or edi, eax
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000eb01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000eb20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rbp - 0x19]
jmp 0x18000e9ff
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x17], r12w
movzx ecx, r13w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x19], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x17]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18000ebb9
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi + 0x20], 0
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000eb91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ebb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rbp - 0x19]
jmp 0x18000e9ff
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000eca9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18000eca9
mov dword [rsi + 8], 0
mov rcx, qword [rbp - 0x19]
add rcx, 0xffffffffffffffe8
call fcn.1800013c0
add rax, 0x18
mov qword [rbp + 7], rax
mov edx, r13d
lea rcx, [rbp + 7]
call fcn.1800032e0
mov r11d, eax
mov qword [rsi + 0x20], r11
test eax, eax
jne 0x18000ec3a
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ec31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rbp - 0x19]
jmp 0x18000e9ff
mov dword [rbp - 0x21], r11d
lea rcx, [rbp - 0x21]
call fcn.180002f10
lea rcx, [rbp - 0x21]
test rax, rax
je 0x18000ec57
mov dword [rax + 0x58], 0x30d40
call fcn.180002fc0
mov eax, dword [rsi + 0x20]
mov dword [rbp - 0x29], eax
lea rcx, [rbp - 0x29]
call fcn.180002f10
test rax, rax
je 0x18000ec9f
mov dword [rax + 0x5c], 0x5f5e100
mov dword [rbp - 1], 0x5f5e100
mov dword [rsp + 0x20], 4
lea r9, [rbp - 1]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rax + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rbp - 0x29]
call fcn.180002fc0
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ecc8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rbp - 0x19]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000ece4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180010130
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret