Function at 0x180006300
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
lea rcx, [0x18000b028]
call fcn.180004340
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [rsp + 0xa8]
mov byte [rsp + 0x20], al
mov dword [rsp + 0x2c], 0
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.1800011b0
movzx eax, al
test eax, eax
jne 0x180006392
movsx eax, byte [rsp + 0x20]
bts eax, 7
mov byte [rsp + 0x30], al
mov byte [rsp + 0x31], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call sub.WS2_32.dll_send
mov dword [rsp + 0x2c], eax
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.1800011b0
movzx eax, al
test eax, eax
je 0x180006667
mov rcx, qword [rsp + 0xb8]
call fcn.180001310
mov dword [rsp + 0x28], 2
mov rcx, qword [rsp + 0xb0]
call fcn.1800012f0
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xb8]
call fcn.180001330
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x48], eax
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call fcn.1800021c0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffff
jle 0x180006432
mov eax, dword [rsp + 0x28]
add eax, 8
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0xb8]
call fcn.180001330
sub eax, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, eax
call fcn.1800021c0
mov dword [rsp + 0x24], eax
jmp 0x180006464
cmp dword [rsp + 0x24], 0x7d
jle 0x180006464
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0xb8]
call fcn.180001330
sub eax, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, eax
call fcn.1800021c0
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0xb8]
call fcn.180001b80
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800012f0
cmp dword [rsp + 0x24], eax
jl 0x180006493
mov dword [rsp + 0x40], 0x80
jmp 0x18000649b
mov dword [rsp + 0x40], 0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax], dl
movsx eax, byte [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
movsx ecx, byte [rdx + rcx]
or ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
mov byte [rsp + 0x20], 0
cmp dword [rsp + 0x28], 2
jne 0x180006504
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
jmp 0x180006599
cmp dword [rsp + 0x28], 4
jne 0x180006553
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0x7e
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
movzx edx, word [rsp + 0x24]
mov word [rcx + rax], dx
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003870
nop
jmp 0x180006599
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0x7f
movsxd rax, dword [rsp + 0x24]
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x38]
mov qword [rdx + rcx], rax
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003890
nop
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
call fcn.180001220
mov rcx, qword [rsp + 0xb0]
call fcn.1800017a0
mov r8d, dword [rsp + 0x24]
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call fcn.180005710
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xb0]
call fcn.180001220
nop
mov rcx, qword [rsp + 0xb8]
call fcn.1800012e0
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0xb8]
call fcn.180001b80
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180001140
lea rcx, [rsp + 0x60]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.180006690
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
je 0x18000664f
cmp dword [rsp + 0x2c], 0
jne 0x180006651
jmp 0x180006667
mov rcx, qword [rsp + 0xb0]
call fcn.1800012e0
mov dword [rsp + 0x2c], eax
jmp 0x180006392
lea rcx, [0x18000b028]
call fcn.180004340
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x2c]
add rsp, 0x88
pop rdi
pop rsi
ret