Function at 0x1400ca0a0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r15, r8
mov r13, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400ca3ed
cmp edx, 0x8078
jne 0x1400ca3ed
cmp qword [r13 + 0x20], 0xffffffffffffffff
je 0x1400ca3ed
cmp r9w, 0x20
jne 0x1400ca106
xor edi, edi
mov dword [r13 + 0x28], edi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400ca3ed
lea r8, [rbp + 0x67]
mov edx, 0x4004667f
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400ca3ed
mov eax, dword [rbp + 0x67]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
mov dword [rbp + 0x67], eax
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 1], rax
lea r14, vtable.CVolObject.0
mov qword [rbp - 1], r14
xor edi, edi
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], rdi
lea rcx, vtable.CVolMem.0
mov qword [rbp - 1], rcx
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x1f], rdi
mov r12d, 0x40
mov qword [rbp + 0x2f], r12
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], r12
movsxd rbx, dword [rbp + 0x67]
cmp rbx, qword [rbp - 0x11]
jne 0x1400ca1a8
mov rax, qword [rbp - 0x21]
jmp 0x1400ca235
test rbx, rbx
jne 0x1400ca1d2
mov rdx, qword [rbp - 0x21]
test rdx, rdx
je 0x1400ca1c1
lea rcx, [rbp - 0x39]
mov rax, qword [rbp - 0x39]
call qword [rax + 0x18]
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 0x19], rdi
mov rax, rdi
jmp 0x1400ca235
cmp qword [rbp - 0x21], 0
jne 0x1400ca1e7
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.1400c6490
jmp 0x1400ca235
mov rsi, qword [rbp - 9]
test rsi, rsi
cmovle rsi, r12
mov rax, qword [rbp - 0x19]
cmp rax, rbx
jl 0x1400ca209
sub rax, rbx
cmp rax, rsi
jg 0x1400ca209
mov rax, qword [rbp - 0x21]
jmp 0x1400ca231
mov rax, rbx
cqo
idiv rsi
sub rsi, rdx
add rsi, rbx
mov r8, rsi
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x39]
mov rax, qword [rbp - 0x39]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rbx
xor r9d, r9d
mov r8d, dword [rbp + 0x67]
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jl 0x1400ca379
mov rbx, qword [rbp - 0x21]
cmp qword [rbp - 0x11], 0
cmove rbx, rdi
movsxd rsi, eax
mov rax, qword [rbp + 0x1f]
mov r14, qword [rbp + 0x27]
sub rax, r14
cmp rax, rsi
jl 0x1400ca332
cmp rsi, 1
jne 0x1400ca2b5
test rbx, rbx
jne 0x1400ca29a
xor cl, cl
mov rax, qword [rbp + 0x17]
mov byte [r14 + rax], cl
inc qword [rbp + 0x27]
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
movzx ecx, byte [rbx]
mov rax, qword [rbp + 0x17]
mov byte [r14 + rax], cl
inc qword [rbp + 0x27]
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
cmp rsi, 2
jne 0x1400ca2e0
test rbx, rbx
movzx ecx, di
je 0x1400ca2c6
movzx ecx, word [rbx]
mov rax, qword [rbp + 0x17]
mov word [r14 + rax], cx
add qword [rbp + 0x27], 2
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
cmp rsi, 4
jne 0x1400ca308
test rbx, rbx
mov ecx, edi
je 0x1400ca2ef
mov ecx, dword [rbx]
mov rax, qword [rbp + 0x17]
mov dword [r14 + rax], ecx
add qword [rbp + 0x27], 4
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
cmp rsi, 8
jne 0x1400ca332
test rbx, rbx
mov rcx, rdi
je 0x1400ca319
mov rcx, qword [rbx]
mov rax, qword [rbp + 0x17]
mov qword [r14 + rax], rcx
add qword [rbp + 0x27], 8
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
test rsi, rsi
jle 0x1400ca36d
lea rdx, [rsi + r14]
lea rcx, [rbp - 1]
call fcn.1400c6510
add rax, r14
mov r8, rsi
mov rcx, rax
test rbx, rbx
je 0x1400ca366
mov rdx, rbx
call fcn.1401b2830
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
xor edx, edx
call fcn.1401b2ee0
mov dword [rbp + 0x67], 0x400
jmp 0x1400ca195
cmp qword [rbp + 0x27], 0
je 0x1400ca38f
mov rcx, qword [r13 + 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 1]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rbx, vtable.CVolMem.0
mov qword [rbp - 0x39], rbx
mov rdx, qword [rbp - 0x21]
test rdx, rdx
je 0x1400ca3ae
lea rcx, [rbp - 0x39]
mov rax, qword [rbp - 0x39]
call qword [rax + 0x18]
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 0x19], rdi
lea r14, vtable.CVolObject.0
mov qword [rbp - 0x39], r14
mov qword [rbp - 1], rbx
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x1400ca3dd
lea rcx, [rbp - 1]
mov rax, qword [rbp - 1]
call qword [rax + 0x18]
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 1], r14
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret