Function at 0x140078b10
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x5b0], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov byte [rbp + 0x50], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x51]
call fcn.1400dd9f0
mov byte [rsp + 0x50], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x51]
call fcn.1400dd9f0
mov rdx, qword [r15 + 8]
sub rdx, qword [r15]
sar rdx, 5
xor r9d, r9d
mov rcx, rdi
test rdx, rdx
jne 0x140078bc0
mov word [rsp + 0x38], 0xff
mov qword [rsp + 0x3a], 0xffffff
lea r8d, [r9 + 0xa]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
xor eax, eax
jmp 0x140078e7f
mov dword [rsp + 0x3e], 4
mov word [rsp + 0x38], 0x24
mov dword [rsp + 0x3a], 0x20009303
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rbp + 0x58], ax
mov dword [rbp + 0x5a], edx
mov r8d, send
lea rdx, [rbp + 0x50]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140078bb9
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140078bb9
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rcx
movzx eax, word [rsp + 0x58]
mov word [rsp + 0x40], ax
cmp cl, 0x24
jne 0x140078bb9
shr rcx, 0x10
cmp ecx, 0x55aa0000
je 0x140078c9a
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, dword [rsp + 0x3a]
lea rdx, str.Bad_data_type._Received_type__04Xh
lea rcx, [rsp + 0x20]
call fcn.140016060
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140078c93
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x140078e7f
cmp dword [rsp + 0x56], 0
jne 0x140078bb9
mov rbx, qword [r15]
cmp rbx, qword [r15 + 8]
je 0x140078e7a
nop word [rax + rax]
mov word [rsp + 0x38], 0x124
mov dword [rsp + 0x3a], 0x20009229
mov rax, qword [rbx]
mov r8d, dword [rax - 0x10]
mov rax, qword [rbx + 0x10]
mov edx, dword [rax - 0x10]
mov rax, qword [rbx + 8]
mov ecx, dword [rax - 0x10]
lea eax, [rdx + rcx]
add eax, r8d
lea eax, [rax + rax + 0x2c]
mov dword [rsp + 0x3e], eax
mov rax, qword [rbx]
movsxd rdi, dword [rax - 0x10]
mov rax, qword [rbx + 8]
movsxd r13, dword [rax - 0x10]
mov rax, qword [rbx + 0x10]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rbp + 0x58], ax
mov dword [rbp + 0x5a], edi
mov rax, qword [rbx]
cmp dword [rax - 8], 1
jle 0x140078d35
mov edx, dword [rax - 0x10]
mov rcx, rbx
call fcn.140001fb0
mov r12, rdi
add rdi, rdi
mov r8, rdi
mov rdx, qword [rbx]
lea rcx, [rbp + 0x5e]
call fcn.1400d5d30
mov dword [rbp + rdi + 0x5e], r13d
mov rax, qword [rbx + 8]
cmp dword [rax - 8], 1
jle 0x140078d65
mov edx, dword [rax - 0x10]
lea rcx, [rbx + 8]
call fcn.140001fb0
lea r8, [r13 + r13]
lea rcx, [rbp + rdi + 0x62]
mov rdx, qword [rbx + 8]
call fcn.1400d5d30
lea rsi, [r13 + r12]
movsxd rdi, dword [rsp + 0x20]
mov dword [rbp + rsi*2 + 0x62], edi
mov rax, qword [rbx + 0x10]
cmp dword [rax - 8], 1
jle 0x140078d9c
mov edx, dword [rax - 0x10]
lea rcx, [rbx + 0x10]
call fcn.140001fb0
lea r8, [rdi + rdi]
lea rcx, [rbp + rsi*2 + 0x66]
mov rdx, qword [rbx + 0x10]
call fcn.1400d5d30
lea r11, [rdi + r13]
add r11, r12
mov eax, dword [rbx + 0x18]
mov dword [rbp + r11*2 + 0x66], eax
mov r8d, dword [rsp + 0x3e]
add r8d, 0xa
xor r9d, r9d
lea rdx, [rbp + 0x50]
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140078bb9
xor r9d, r9d
mov r8d, 0xff
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rcx
movzx eax, word [rsp + 0x58]
mov word [rsp + 0x40], ax
cmp cl, 0x24
jne 0x140078bb9
shr rcx, 0x10
cmp ecx, 0x55aa0000
jne 0x140078e3f
cmp dword [rsp + 0x56], 0
jne 0x140078bb9
add rbx, 0x20
cmp rbx, qword [r15 + 8]
jne 0x140078cc0
jmp 0x140078e7a
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x3a]
lea rdx, str.Bad_data_type._Received_type__04Xh
lea rcx, [rsp + 0x28]
call fcn.140016060
nop
mov rdx, qword [rsp + 0x28]
jmp 0x140078c78
mov eax, 1
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret