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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x4f]
sub rsp, 0x98
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov qword [rsp + 0xb8], rbx
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180003083
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [rbx + 0x38], 0
mov qword [rbx + 8], 0xffffffffffffffff
jne 0x180003083
mov rdx, qword [rbx + 0x30]
xor r9d, r9d
mov rcx, qword [rbx]
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x180003078
call fcn.180002050
jmp 0x180003083
movsxd rcx, eax
mov rax, qword [rbx + 0x30]
mov byte [rcx + rax], 0
xor edi, edi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], r14
lea rdx, str.PASV__r_n
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x90], r15
mov dword [rbx + 0x38], edi
lea r8d, [rdi + 7]
mov qword [rbp + 0x37], send
mov qword [rbp + 0x2f], rdi
mov byte [rbp + 0x1f], dil
call fcn.180004a00
cmp qword [rbp + 0x37], 0x10
lea rdx, [rbp + 0x1f]
mov r8d, dword [rbp + 0x2f]
cmovae rdx, qword [rbp + 0x1f]
xor r9d, r9d
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800030f1
call fcn.180002050
jmp 0x180003255
mov rdx, qword [rbx + 0x30]
xor r9d, r9d
mov rcx, qword [rbx]
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x180003123
call fcn.180002050
test eax, eax
js 0x180003255
cmp eax, 1
jne 0x18000312e
jmp 0x180003255
movsxd rcx, eax
mov rax, qword [rbx + 0x30]
mov byte [rcx + rax], dil
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180003154
cmp byte [rcx], dil
je 0x180003154
lea rdx, str._n226
call fcn.18008bc94
test rax, rax
je 0x180003154
mov dword [rbx + 0x38], 1
mov rcx, qword [rbx + 0x30]
mov edx, 0x28
call fcn.18008bc08
test rax, rax
je 0x180003250
lea rcx, [rbp + 0xb]
mov dword [rbp + 3], edi
mov qword [rsp + 0x38], rcx
lea r9, [rbp - 1]
lea rcx, [rbp + 7]
mov dword [rbp - 1], edi
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 3]
lea rcx, [rbp - 9]
mov dword [rbp - 5], edi
mov qword [rsp + 0x28], rcx
lea rdx, str.__d__d__d__d__d__d_
lea rcx, [rbp - 5]
mov dword [rbp - 9], edi
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rbp + 7], edi
mov dword [rbp + 0xb], edi
call fcn.1800046a0
movzx eax, byte [rbp - 5]
xor r8d, r8d
movzx esi, byte [rbp - 9]
mov r15d, 2
movzx r14d, byte [rbp + 7]
mov ecx, r15d
shl esi, 8
or esi, eax
shl r14w, 8
movzx eax, byte [rbp - 1]
lea edx, [r8 + 1]
shl esi, 8
or esi, eax
movzx eax, byte [rbp + 3]
shl esi, 8
or esi, eax
movzx eax, byte [rbp + 0xb]
or r14w, ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x180003210
call fcn.180002050
jmp 0x180003255
xor eax, eax
movzx ecx, r14w
mov qword [rbp + 0xf], rax
mov dword [rbp + 0x13], esi
mov word [rbp + 0xf], r15w
mov qword [rbp + 0x17], rax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 8]
lea rdx, [rbp + 0xf]
mov r8d, reloc.WS2_32.dll_recv
mov word [rbp + 0x11], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180003257
call fcn.180002050
jmp 0x180003255
mov eax, 0x80004005
mov edi, eax
mov rax, qword [rbp + 0x37]
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
cmp rax, 0x10
jb 0x1800032b5
mov rcx, qword [rbp + 0x1f]
inc rax
cmp rax, 0x1000
jb 0x1800032b0
test cl, 0x1f
jne 0x1800032cd
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800032d3
sub rcx, rax
cmp rcx, 8
jb 0x1800032d9
cmp rcx, 0x27
ja 0x1800032df
mov rcx, rax
call fcn.180072908
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180072920
add rsp, 0x98
pop rdi
pop rbp
ret
call fcn.18008d744
int3
call fcn.18008d744
int3
call fcn.18008d744
int3
call fcn.18008d744
int3