Function at 0x1400c2690
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.14023a970
sub rsp, rax
mov rax, qword [0x1402dc010]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov r13, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov rcx, qword [rcx + 0x48]
cmp qword [sym.imp.WSOCK32.dll_socket], 0
je 0x1400c2ccd
mov dword [rsp + 0x30], reloc.WSOCK32.dll_recv
lea rdi, [r14 + 0xb0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1000
mov rdx, rdi
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WSOCK32.dll_recvfrom]
mov r15d, eax
test eax, eax
jle 0x1400c2ccd
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx ebx, ax
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov dword [rsp + 0x30], eax
mov word [rsp + 0x34], bx
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x3c], rax
add dword [r14 + 0x34], r15d
lea r12d, [r15 - 4]
cmp r12d, 0xffb
ja 0x1400c2ccd
movzx esi, byte [rdi]
shl esi, 8
movzx eax, byte [rdi + 1]
or esi, eax
shl esi, 8
movzx eax, byte [rdi + 2]
or esi, eax
cmp esi, dword [r14 + 0x18]
jne 0x1400c2c94
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
mov edx, reloc.WSOCK32.dll_ntohs
mov qword [rbp - 0x68], rdx
mov byte [rbp - 0x80], 0
mov dword [rsp + 0x7c], reloc.WSOCK32.dll_sendto
mov dword [rsp + 0x60], esi
movzx eax, byte [rdi + 3]
mov dword [rsp + 0x64], eax
movzx ecx, byte [rdi + 4]
shl ecx, 8
movzx eax, byte [rdi + 5]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 6]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 7]
or ecx, eax
mov dword [rsp + 0x68], ecx
movzx ecx, byte [rdi + 8]
shl ecx, 8
movzx eax, byte [rdi + 9]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0xa]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0xb]
or ecx, eax
mov dword [rsp + 0x6c], ecx
movzx ecx, byte [rdi + 0xc]
shl ecx, 8
movzx eax, byte [rdi + 0xd]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0xe]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0xf]
or ecx, eax
mov dword [rsp + 0x70], ecx
movzx ecx, byte [rdi + 0x10]
shl ecx, 8
movzx eax, byte [rdi + 0x11]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0x12]
or ecx, eax
shl ecx, 8
movzx eax, byte [rdi + 0x13]
or ecx, eax
mov dword [rsp + 0x74], ecx
lea eax, [r15 - 0x14]
mov dword [rsp + 0x78], eax
mov r15d, eax
test eax, eax
jne 0x1400c285f
lea rax, [rbp - 0x80]
mov qword [rbp - 0x70], r15
mov byte [rax + r15], 0
jmp 0x1400c2890
cmp r15, 0xf
ja 0x1400c2881
mov qword [rbp - 0x70], r15
lea rbx, [rbp - 0x80]
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + r15], 0
jmp 0x1400c2890
mov r9, r15
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14005e7b0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x7c]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [rsp + 0x64]
lea eax, [rdi - 1]
cmp eax, 0xfe
ja 0x1400c2c8b
cmp byte [r14 + 0x10], 0
jne 0x1400c2905
movzx r10d, word [r14 + 0x40]
movzx ecx, byte [r14 + 0x3c]
mov edx, dword [r14 + 0x3c]
mov eax, edx
shr eax, 8
movzx r9d, al
mov eax, edx
shr eax, 0x10
movzx r8d, al
shr edx, 0x18
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str.UDP_Connection_with__d._d._d._d:_d_established_n
call fcn.1400c0f40
mov byte [r14 + 0x10], 1
xor ecx, ecx
lea rbx, [r14 + 0x80]
mov r9, qword [rbx + 8]
mov rax, qword [rbx]
mov rdx, r9
sub rdx, rax
sar rdx, 2
test rdx, rdx
je 0x1400c2934
cmp edi, dword [rax]
je 0x1400c2944
inc rcx
add rax, 4
cmp rcx, rdx
jb 0x1400c2924
cmp r9, qword [rbx + 0x10]
je 0x1400c294b
mov dword [r9], edi
add qword [rbx + 8], 4
jmp 0x1400c295b
xor bl, bl
jmp 0x1400c2c7d
lea r8, [rsp + 0x64]
mov rdx, r9
mov rcx, rbx
call fcn.1400940b0
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
mov rax, r8
sub rax, rcx
sar rax, 2
cmp rax, 0x7f
jbe 0x1400c2986
lea rdx, [rcx + 4]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
add qword [r14 + 0x88], 0xfffffffffffffffc
mov rdx, qword [r14 + 0x70]
cmp rdx, qword [r14 + 0x78]
je 0x1400c2999
mov dword [rdx], edi
add qword [r14 + 0x70], 4
jmp 0x1400c29a7
lea r8, [rsp + 0x64]
lea rcx, [r14 + 0x68]
call fcn.1400940b0
mov r8, qword [r14 + 0x70]
mov rcx, qword [r14 + 0x68]
mov rax, r8
sub rax, rcx
sar rax, 2
cmp rax, 0x10
jbe 0x1400c29d0
lea rdx, [rcx + 4]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
add qword [r14 + 0x70], 0xfffffffffffffffc
mov edx, dword [rsp + 0x68]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax], ecx
mov eax, edx
sar eax, 0x10
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 4], ecx
mov eax, edx
sar eax, 8
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 8], ecx
movzx ecx, dl
mov rax, qword [r14 + 0x50]
mov dword [rax + 0xc], ecx
mov edx, dword [rsp + 0x6c]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x10], ecx
mov eax, edx
sar eax, 0x10
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x14], ecx
mov eax, edx
sar eax, 8
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x18], ecx
movzx ecx, dl
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x1c], ecx
mov edx, dword [rsp + 0x70]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x20], ecx
mov eax, edx
sar eax, 0x10
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x24], ecx
mov eax, edx
sar eax, 8
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x28], ecx
movzx ecx, dl
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x2c], ecx
mov edx, dword [rsp + 0x74]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x30], ecx
mov eax, edx
sar eax, 0x10
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x34], ecx
mov eax, edx
sar eax, 8
movzx ecx, al
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x38], ecx
movzx ecx, dl
mov rax, qword [r14 + 0x50]
mov dword [rax + 0x3c], ecx
xor r13d, r13d
movabs rax, 0x6666666666666667
nop dword [rax + rax]
xor r12d, r12d
mov rsi, qword [r14 + 0xa0]
mov r8, qword [r14 + 0x98]
mov rcx, rsi
sub rcx, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400c2b9b
xor r15d, r15d
lea rdi, [r15 + r8]
mov rax, qword [r14 + 0x50]
mov eax, dword [rax + r13]
cmp dword [rdi + 0x20], eax
jne 0x1400c2b63
lea rbx, [rdi + 0x28]
cmp rbx, rsi
je 0x1400c2b44
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rdi
call fcn.1400265f0
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x20], eax
mov eax, dword [rbx + 0x24]
mov dword [rdi + 0x24], eax
add rdi, 0x28
add rbx, 0x28
cmp rbx, rsi
jne 0x1400c2b20
mov rcx, qword [r14 + 0xa0]
sub rcx, 0x28
call fcn.1400075a0
add qword [r14 + 0xa0], 0xffffffffffffffd8
mov rsi, qword [r14 + 0xa0]
inc r12
add r15, 0x28
mov r8, qword [r14 + 0x98]
mov rcx, rsi
sub rcx, r8
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jb 0x1400c2b01
add r13, 4
cmp r13, 0x40
movabs rax, 0x6666666666666667
jb 0x1400c2ad0
lea rax, [rbp - 0x80]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400c2bd8
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
call fcn.140007620
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
cmp r8, 2
jne 0x1400c2c7b
lea rdx, [0x140279bf4]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400c2c7b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], reloc.WSOCK32.dll_ntohs
mov eax, 0x4248
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], 0
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400c2310
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400c2c7b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c2c76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c2c76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140239a54
mov bl, 1
lea rcx, [rbp - 0x80]
call fcn.1400075a0
movzx eax, bl
jmp 0x1400c2ccf
lea rcx, [rbp - 0x80]
call fcn.1400075a0
mov eax, dword [r14 + 0x18]
inc eax
cmp esi, eax
jne 0x1400c2ccd
movsxd rbx, r12d
mov rdx, rbx
mov rcx, r13
call fcn.14005e1f0
cmp qword [r13 + 0x18], 0x10
jb 0x1400c2cb7
mov r13, qword [r13]
lea rdx, [r14 + 0xb4]
mov r8, rbx
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
mov al, 1
jmp 0x1400c2ccf
xor al, al
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140239760
mov rbx, qword [rsp + 0x1100]
add rsp, 0x10b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret