Function at 0x18000b4d0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xa0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000b53d
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [rbx + 0x40], 0
mov qword [rbx + 8], 0xffffffffffffffff
jne 0x18000b53d
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000b532
call fcn.180003220
jmp 0x18000b53d
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], 0
xor esi, esi
lea rdx, str.PASV__r_n
lea rcx, [rsp + 0x68]
lea r8d, [rsi + 7]
mov dword [rbx + 0x40], esi
mov qword [rsp + 0x88], socket
mov qword [rsp + 0x80], rsi
mov byte [rsp + 0x70], sil
call fcn.180002550
cmp qword [rsp + 0x88], 0x10
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
cmovae rdx, qword [rsp + 0x70]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b5c0
call fcn.180003220
cmp qword [rsp + 0x88], 0x10
mov ebx, eax
jb 0x18000b5b9
mov rcx, qword [rsp + 0x70]
call fcn.180076a50
mov eax, ebx
jmp 0x18000b784
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, 0x1f4
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000b60f
call fcn.180003220
mov edi, eax
test eax, eax
js 0x18000b5f3
cmp eax, 1
jne 0x18000b61a
cmp qword [rsp + 0x88], 0x10
jb 0x18000b608
mov rcx, qword [rsp + 0x70]
call fcn.180076a50
mov eax, edi
jmp 0x18000b77c
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], sil
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18000b640
cmp byte [rcx], sil
je 0x18000b640
lea rdx, str._n226
call fcn.1800774dc
test rax, rax
je 0x18000b640
mov dword [rbx + 0x40], 1
mov rcx, qword [rbx + 0x38]
mov edx, 0x28
call fcn.1800771b4
test rax, rax
je 0x18000b7be
lea rcx, [rsp + 0x4c]
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x44]
lea rdx, str.__d__d__d__d__d__d_
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x4c], esi
call fcn.180077274
movzx eax, byte [rsp + 0x48]
movzx r11d, byte [rsp + 0x50]
movzx esi, byte [rsp + 0x44]
xor r8d, r8d
shl r11w, 8
mov ebp, 2
lea edx, [r8 + 1]
movzx edi, r11w
shl si, 8
or edi, eax
movzx eax, byte [rsp + 0x54]
shl ax, 8
shl edi, 0x10
movzx ecx, ax
movzx eax, byte [rsp + 0x40]
or edi, ecx
mov ecx, ebp
or edi, eax
movzx eax, byte [rsp + 0x4c]
or si, ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18000b756
xor eax, eax
movzx ecx, si
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x5c], edi
mov word [rsp + 0x58], bp
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 8]
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x58]
mov word [rsp + 0x5a], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000b7a5
call fcn.180003220
cmp qword [rsp + 0x88], 0x10
mov ebx, eax
jb 0x18000b772
mov rcx, qword [rsp + 0x70]
call fcn.180076a50
mov eax, ebx
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180076a70
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rsi
ret
cmp qword [rsp + 0x88], 0x10
jb 0x18000b7ba
mov rcx, qword [rsp + 0x70]
call fcn.180076a50
xor eax, eax
jmp 0x18000b774
cmp qword [rsp + 0x88], 0x10
jb 0x18000b7d3
mov rcx, qword [rsp + 0x70]
call fcn.180076a50
mov eax, 0x80004005
jmp 0x18000b77c