Function at 0x1400d6810
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
xor r12d, r12d
mov esi, r9d
mov dword [rsp + 0x24], r9d
mov edi, r12d
mov r15d, r8d
mov r13, rcx
mov dword [rsp + 0x20], r12d
lea rbp, [rsp + 0xa0]
mov byte [rsp + 0x180], dil
test rcx, rcx
je 0x1400d6c10
cmp dword [rcx], 0xbab1e
jne 0x1400d6c10
cmp byte [rcx + 0x178], dil
je 0x1400d687d
lea eax, [r12 + 8]
jmp 0x1400d695d
mov qword [rsp + 0x198], rbx
mov rbx, qword [rcx + 8]
mov r14d, 1
test rbx, rbx
je 0x1400d68fa
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400d8010
mov r9d, r12d
lea r8, [rsp + 0x30]
mov r10d, eax
mov eax, r14d
nop dword [rax + rax]
or rdx, 0xffffffffffffffff
test r10d, eax
je 0x1400d68ce
mov rdx, qword [r8]
inc edi
mov ecx, eax
rol ecx, 0x10
test r10d, ecx
je 0x1400d68dd
mov rdx, qword [r8]
inc edi
cmp rdx, 0xffffffffffffffff
je 0x1400d68f2
rol eax, 1
inc r9d
add r8, 8
cmp r9d, 5
jb 0x1400d68c0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400d68a0
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.1400d92d0
mov eax, dword [rsp + 0x28]
test eax, eax
js 0x1400d6918
cmp eax, esi
cmovl esi, eax
mov dword [rsp + 0x24], esi
lea r12d, [rdi + r15]
movzx r15d, byte [rsp + 0x1b0]
mov eax, r12d
test r15b, r15b
je 0x1400d6939
cmp qword [r13 + 0x180], 0xffffffffffffffff
je 0x1400d6939
inc eax
cmp eax, 0xa
jbe 0x1400d6978
mov ecx, eax
shl rcx, 4
call qword [sub.msvcrt.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x1400d6970
lea eax, [rbp + 3]
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x180], r14b
xor r9d, r9d
mov ebx, r9d
test edi, edi
je 0x1400d6a30
mov rsi, qword [r13 + 8]
test rsi, rsi
je 0x1400d6a2c
lea r15d, [r9 + 4]
nop word [rax + rax]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d8010
xor r9d, r9d
mov edx, r14d
mov r10d, eax
lea r8, [rsp + 0x30]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
test r10d, edx
je 0x1400d69e1
mov rax, qword [r8]
mov ecx, ebx
add rcx, rcx
inc ebx
mov qword [rbp + rcx*8], rax
mov word [rbp + rcx*8 + 8], r14w
mov rcx, qword [r8]
mov eax, edx
rol eax, 0x10
test r10d, eax
je 0x1400d6a03
mov rax, qword [r8]
mov ecx, ebx
add rcx, rcx
inc ebx
mov qword [rbp + rcx*8], rax
mov word [rbp + rcx*8 + 8], r15w
mov rcx, qword [r8]
cmp rcx, 0xffffffffffffffff
je 0x1400d6a18
rol edx, 1
inc r9d
add r8, 8
cmp r9d, 5
jb 0x1400d69c0
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400d69a0
movzx r15d, byte [rsp + 0x1b0]
xor r9d, r9d
mov esi, dword [rsp + 0x24]
mov eax, dword [rsp + 0x190]
test eax, eax
je 0x1400d6a8e
mov rdx, qword [rsp + 0x188]
mov r8d, eax
add rdx, 8
nop word [rax + rax]
mov rax, qword [rdx - 8]
mov ecx, ebx
shl rcx, 4
add rcx, rbp
mov qword [rcx], rax
mov word [rcx + 8], r9w
test byte [rdx], r14b
je 0x1400d6a6f
mov word [rcx + 8], r14w
test byte [rdx], 2
je 0x1400d6a79
or word [rcx + 8], 2
test byte [rdx], 4
je 0x1400d6a83
or word [rcx + 8], 4
inc ebx
add rdx, 0x10
dec r8
jne 0x1400d6a50
test r15b, r15b
je 0x1400d6ab2
mov rcx, qword [r13 + 0x180]
cmp rcx, 0xffffffffffffffff
je 0x1400d6ab2
mov eax, ebx
add rax, rax
inc ebx
mov qword [rbp + rax*8], rcx
mov word [rbp + rax*8 + 8], r14w
test ebx, ebx
je 0x1400d6b82
mov r8d, esi
mov edx, ebx
mov rcx, rbp
call fcn.1400df1d0
mov esi, eax
test eax, eax
jle 0x1400d6b82
mov r10d, dword [rsp + 0x190]
xor eax, eax
mov r8d, eax
test r10d, r10d
je 0x1400d6b41
mov r9, qword [rsp + 0x188]
add r9, 0xa
xor r15d, r15d
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdi + r8]
movzx edx, r15w
add rcx, rcx
movsx eax, word [rbp + rcx*8 + 0xa]
test r14b, al
je 0x1400d6b18
mov edx, r14d
test al, 4
je 0x1400d6b20
or dx, 4
test al, 2
je 0x1400d6b28
or dx, 2
inc r8d
mov word [r9], dx
add r9, 0x10
cmp r8d, r10d
jb 0x1400d6b00
movzx r15d, byte [rsp + 0x1b0]
test r15b, r15b
je 0x1400d6b88
cmp qword [r13 + 0x180], 0xffffffffffffffff
je 0x1400d6b88
mov eax, r12d
add rax, rax
test byte [rbp + rax*8 + 0xa], r14b
je 0x1400d6b88
nop dword [rax]
mov rcx, qword [r13 + 0x180]
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x1400d6b60
lea edi, [rsi - 1]
jmp 0x1400d6b8a
mov edi, dword [rsp + 0x20]
jmp 0x1400d6b8a
mov edi, esi
cmp byte [rsp + 0x180], 0
je 0x1400d6b9d
mov rcx, rbp
call qword [fcn.140045f23]
mov rax, qword [rsp + 0x1a0]
test rax, rax
je 0x1400d6bac
mov dword [rax], edi
cmp byte [rsp + 0x1a8], 0
je 0x1400d6c09
test ebx, ebx
jne 0x1400d6c09
xor eax, eax
cmp dword [r13], 0xbab1e
mov dword [rsp + 0x180], eax
jne 0x1400d6c09
cmp byte [r13 + 0x178], al
jne 0x1400d6c09
lea rdx, [rsp + 0x180]
mov rcx, r13
call fcn.1400d92d0
test eax, eax
jne 0x1400d6c09
mov eax, dword [rsp + 0x180]
test eax, eax
je 0x1400d6c09
mov ecx, dword [rsp + 0x24]
cmp eax, ecx
jg 0x1400d6c04
test eax, eax
cmovs eax, ecx
mov ecx, eax
call fcn.1400df950
xor eax, eax
jmp 0x1400d6955
mov eax, 1
jmp 0x1400d695d