Function at 0x18000b400
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 [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000b46d
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [rbx + 0x40], 0
mov qword [rbx + 8], 0xffffffffffffffff
jne 0x18000b46d
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 0x18000b462
call fcn.180003180
jmp 0x18000b46d
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], send
mov qword [rsp + 0x80], rsi
mov byte [rsp + 0x70], sil
call fcn.1800024b0
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 0x18000b4f0
call fcn.180003180
cmp qword [rsp + 0x88], 0x10
mov ebx, eax
jb 0x18000b4e9
mov rcx, qword [rsp + 0x70]
call fcn.18006a4d4
mov eax, ebx
jmp 0x18000b6b4
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 0x18000b53f
call fcn.180003180
mov edi, eax
test eax, eax
js 0x18000b523
cmp eax, 1
jne 0x18000b54a
cmp qword [rsp + 0x88], 0x10
jb 0x18000b538
mov rcx, qword [rsp + 0x70]
call fcn.18006a4d4
mov eax, edi
jmp 0x18000b6ac
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], sil
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18000b570
cmp byte [rcx], sil
je 0x18000b570
lea rdx, str._n226
call fcn.18006af5c
test rax, rax
je 0x18000b570
mov dword [rbx + 0x40], 1
mov rcx, qword [rbx + 0x38]
mov edx, 0x28
call fcn.18006ac34
test rax, rax
je 0x18000b6ee
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.18006acf4
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 0x18000b686
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 0x18000b6d5
call fcn.180003180
cmp qword [rsp + 0x88], 0x10
mov ebx, eax
jb 0x18000b6a2
mov rcx, qword [rsp + 0x70]
call fcn.18006a4d4
mov eax, ebx
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18006a4f0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rsi
ret
cmp qword [rsp + 0x88], 0x10
jb 0x18000b6ea
mov rcx, qword [rsp + 0x70]
call fcn.18006a4d4
xor eax, eax
jmp 0x18000b6a4
cmp qword [rsp + 0x88], 0x10
jb 0x18000b703
mov rcx, qword [rsp + 0x70]
call fcn.18006a4d4
mov eax, 0x80004005
jmp 0x18000b6ac