Function at 0x1402c7120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
cmp dword [rcx + 0x30], 0
je 0x1402c7157
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, r8
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov byte [r8], 1
cmp dword [r8 + 0x30], 0
mov qword [rsp + 0x48], r8
jle 0x1402c76c9
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x40], edx
mov rbp, qword [rdi + 0x28]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x3c], 0
xorps xmm6, xmm6
xor r15d, r15d
mov dword [rsp + 0x44], r15d
mov rax, qword [rbp]
mov r15, qword [rax + 0x20]
test byte [rax + 7], 1
jne 0x1402c71b4
xor r12d, r12d
jmp 0x1402c727b
mov rax, qword [rax + 0x40]
mov r14, qword [rax + 0x48]
cmp dword [rdi + 0x24], 0
je 0x1402c725c
cmp dword [rsp + 0x40], 0
je 0x1402c725c
mov rax, qword [rbp + 8]
mov eax, dword [rax + 4]
and eax, 0x20
je 0x1402c725c
cmp dword [rsp + 0x3c], 0
jne 0x1402c71f0
mov eax, dword [rbx + 0x38]
inc eax
mov dword [rsp + 0x3c], eax
mov dword [rbx + 0x38], eax
movsxd rax, dword [rsi + 0x90]
cmp dword [rsi + 0x94], eax
jle 0x1402c723d
lea ecx, [rax + 1]
mov dword [rsi + 0x90], ecx
mov rcx, qword [rsi + 0x88]
lea rax, [rax + rax*2]
mov dword [rcx + rax*8], 0x50
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*8 + 4], edx
mov edx, dword [rsp + 0x3c]
mov dword [rcx + rax*8 + 8], edx
mov dword [rcx + rax*8 + 0xc], 0
mov qword [rcx + rax*8 + 0x10], 0
jmp 0x1402c725c
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x50
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x3c]
call fcn.14026f1c0
mov r12d, dword [rbx + 0x44]
dec r12d
mov dword [rbx + 0x44], r12d
mov rcx, rbx
mov rdx, r14
mov r8d, r12d
mov r9d, reloc.WS2_32.dll_recv
call fcn.1402ae710
test r15, r15
je 0x1402c72a2
mov r13d, dword [r15]
cmp r13d, 1
jne 0x1402c72ce
mov al, byte [rbx + 0x1f]
test al, al
je 0x1402c72f5
dec al
mov byte [rbx + 0x1f], al
movzx eax, al
mov r14d, dword [rbx + rax*4 + 0xd0]
jmp 0x1402c7300
lea rax, [rbp + 8]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 8]
xor r13d, r13d
test byte [rax + 4], 0x20
mov eax, 0
mov qword [rsp + 0x50], rax
jne 0x1402c73aa
xor r14d, r14d
jmp 0x1402c7362
mov eax, dword [rbx + 0x28]
sub eax, r13d
jge 0x1402c72e5
mov eax, dword [rbx + 0x38]
lea r14d, [rax + 1]
add eax, r13d
mov dword [rbx + 0x38], eax
jmp 0x1402c7300
mov r14d, dword [rbx + 0x2c]
lea ecx, [r14 + r13]
mov dword [rbx + 0x2c], ecx
mov dword [rbx + 0x28], eax
jmp 0x1402c7300
mov r14d, dword [rbx + 0x38]
inc r14d
mov dword [rbx + 0x38], r14d
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, r15
mov r8d, r14d
xor r9d, r9d
call fcn.1402ac3c0
mov r8d, dword [rbp + 0x10]
test r8d, r8d
js 0x1402c734f
test r12d, r12d
jne 0x1402c7333
mov r12d, dword [rbx + 0x44]
dec r12d
mov dword [rbx + 0x44], r12d
mov r8d, dword [rbp + 0x10]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov edx, dword [rsp + 0x5c]
mov r9d, r12d
call fcn.1402d55d0
mov dword [rbp + 0x10], eax
lea rax, [rbp + 8]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 8]
test byte [rax + 4], 0x20
jne 0x1402c736c
mov r15d, dword [rsp + 0x44]
jmp 0x1402c748b
mov qword [rsp + 0x50], r14
test r13d, r13d
jle 0x1402c73aa
add r15, 8
mov edi, 1
mov rdx, qword [r15]
mov rcx, rbx
call fcn.140270d40
mov r14, rax
test rax, rax
jne 0x1402c73a0
add r15, 0x20
lea eax, [rdi + 1]
cmp edi, r13d
mov edi, eax
jl 0x1402c737f
test r14, r14
mov rdi, qword [rsp + 0x48]
jne 0x1402c73b1
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
cmp dword [rsp + 0x3c], 0
mov r15d, dword [rsp + 0x44]
jne 0x1402c73d9
cmp dword [rdi + 0x24], 0
je 0x1402c73d1
mov eax, dword [rbx + 0x38]
inc eax
mov dword [rsp + 0x3c], eax
mov dword [rbx + 0x38], eax
jmp 0x1402c73d9
mov dword [rsp + 0x3c], 0
mov eax, dword [rsi + 0x90]
cmp dword [rsi + 0x94], eax
jle 0x1402c7416
movsxd rcx, eax
lea edx, [rcx + 1]
mov dword [rsi + 0x90], edx
mov rdx, qword [rsi + 0x88]
lea rcx, [rcx + rcx*2]
mov dword [rdx + rcx*8], 0x55
mov r8d, dword [rsp + 0x3c]
mov dword [rdx + rcx*8 + 4], r8d
movups xmmword [rdx + rcx*8 + 8], xmm6
jmp 0x1402c7433
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x55
mov r8d, dword [rsp + 0x3c]
xor r9d, r9d
call fcn.14026f1c0
mov rcx, qword [rsi]
cmp byte [rcx + 0x67], 0
jne 0x1402c7486
test eax, eax
jns 0x1402c7448
mov eax, dword [rsi + 0x90]
dec eax
mov rcx, qword [rsi + 0x88]
cdqe
lea rax, [rax + rax*2]
cmp byte [rcx + rax*8 + 1], 0
je 0x1402c7473
lea rdx, [rcx + rax*8]
mov rcx, rsi
mov r8, r14
mov r9d, 0xfffffffe
call fcn.1402a7890
jmp 0x1402c7486
test r14, r14
je 0x1402c7486
lea rax, [rcx + rax*8]
inc rax
mov qword [rax + 0xf], r14
mov byte [rax], 0xfe
mov r14, qword [rsp + 0x50]
mov eax, dword [rdi + 0xc]
add eax, r15d
add eax, dword [rdi + 0x20]
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jle 0x1402c74d6
lea edx, [rcx + 1]
mov dword [rsi + 0x90], edx
mov rdx, qword [rsi + 0x88]
lea rcx, [rcx + rcx*2]
mov qword [rdx + rcx*8], 0xa2
mov rdi, r14
mov dword [rdx + rcx*8 + 8], r14d
mov dword [rdx + rcx*8 + 0xc], eax
mov qword [rdx + rcx*8 + 0x10], 0
jmp 0x1402c74f0
mov dword [rsp + 0x20], eax
mov rcx, rsi
mov edx, 0xa2
xor r8d, r8d
mov rdi, r14
mov r9d, r14d
call fcn.14026f1c0
mov rax, qword [rsp + 0x60]
mov r14, qword [rax]
mov rcx, qword [rsi]
cmp byte [rcx + 0x67], 0
je 0x1402c7543
test byte [r14 + 4], 0x10
je 0x1402c755f
cmp qword [rcx + 0x1e0], r14
jbe 0x1402c752b
cmp qword [rcx + 0x1d0], r14
jbe 0x1402c7602
cmp qword [rcx + 0x1d8], r14
jbe 0x1402c769f
cmp qword [rcx + 0x2e8], 0
je 0x1402c7618
mov rdx, r14
call fcn.140239ed0
jmp 0x1402c755f
mov rax, qword [rsi + 0x88]
movsxd rcx, dword [rsi + 0x90]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 - 0x17], 0xf9
mov qword [rax + rcx*8 - 8], r14
mov eax, dword [rsi + 0x90]
test eax, eax
jle 0x1402c757f
movzx ecx, r13b
mov rdx, qword [rsi + 0x88]
dec eax
lea rax, [rax + rax*2]
mov word [rdx + rax*8 + 2], cx
cmp r13d, 1
jne 0x1402c75a5
test edi, edi
je 0x1402c75b6
movzx eax, byte [rbx + 0x1f]
cmp rax, 7
ja 0x1402c75b6
lea ecx, [rax + 1]
mov byte [rbx + 0x1f], cl
lea rax, [rbx + rax*4]
add rax, 0xd0
jmp 0x1402c75b4
cmp dword [rbx + 0x28], r13d
jge 0x1402c75b6
mov dword [rbx + 0x28], r13d
mov rax, qword [rsp + 0x68]
mov dword [rax], edi
test r12d, r12d
mov rdi, qword [rsp + 0x48]
je 0x1402c75ec
mov rcx, qword [rsi + 0x18]
not r12d
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x1402c75e1
mov eax, dword [rsi + 0x90]
mov rcx, qword [rcx + 0x50]
movsxd rdx, r12d
mov dword [rcx + rdx*4], eax
jmp 0x1402c75ec
mov rdx, rsi
mov r8d, r12d
call fcn.1402b24c0
inc r15d
add rbp, 0x18
cmp r15d, dword [rdi + 0x30]
jl 0x1402c7199
jmp 0x1402c76be
mov rax, qword [rcx + 0x1c8]
mov qword [r14], rax
mov qword [rcx + 0x1c8], r14
jmp 0x1402c755f
test r14, r14
je 0x1402c755f
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1402c76b5
mov rcx, qword [0x14043f798]
test rcx, rcx
je 0x1402c7647
mov rax, qword [0x1403f3978]
call qword [case.0x140318756.0]
mov rax, qword [0x1403f3930]
mov rcx, r14
call qword [case.0x140318756.0]
cdqe
sub qword [0x14043f6f0], rax
dec qword [0x14043f738]
mov rax, qword [0x1403f3920]
mov rcx, r14
call qword [case.0x140318756.0]
mov r14, qword [0x14043f798]
lea rax, [0x1403f3988]
test r14, r14
je 0x1402c755f
mov rax, qword [rax]
mov rcx, r14
call qword [case.0x140318756.0]
jmp 0x1402c755f
mov rax, qword [rcx + 0x1b8]
mov qword [r14], rax
mov qword [rcx + 0x1b8], r14
jmp 0x1402c755f
lea rax, [0x1403f3920]
jmp 0x1402c768e
cmp dword [rsp + 0x3c], 0
mov edx, dword [rsp + 0x40]
jne 0x1402c76da
xor r15d, r15d
test edx, edx
je 0x1402c773a
cmp dword [rdi + 0x24], 0
mov dword [rsp + 0x3c], edx
je 0x1402c773a
mov r15d, dword [rsi + 0x90]
cmp dword [rsi + 0x94], r15d
jle 0x1402c771a
movsxd rax, r15d
lea ecx, [rax + 1]
mov dword [rsi + 0x90], ecx
mov rcx, qword [rsi + 0x88]
lea rax, [rax + rax*2]
mov dword [rcx + rax*8], reloc.WS2_32.dll_recvfrom
mov edx, dword [rsp + 0x3c]
mov dword [rcx + rax*8 + 4], edx
xorps xmm0, xmm0
movups xmmword [rcx + rax*8 + 8], xmm0
jmp 0x1402c773a
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, reloc.WS2_32.dll_recvfrom
mov r8d, dword [rsp + 0x3c]
xor r9d, r9d
call fcn.14026f1c0
mov r15d, eax
cmp dword [rdi + 0x24], 0
jle 0x1402c781c
mov rax, qword [rsp + 0x48]
mov rdi, qword [rax + 0x18]
add rdi, 8
xor r12d, r12d
cmp qword [rbx + 0x10], 0
je 0x1402c7806
mov rax, qword [rsp + 0x48]
mov ebp, dword [rax + 0xc]
add ebp, r12d
mov r14, qword [rdi]
mov rcx, rbx
mov rdx, r14
mov r8d, ebp
call fcn.1402a7e60
cmp ebp, eax
je 0x1402c7806
test r14, r14
je 0x1402c7794
mov edx, 0x50
test byte [r14 + 6], 0x40
jne 0x1402c7799
mov edx, 0x51
mov rcx, qword [rbx + 0x10]
movsxd r8, dword [rcx + 0x90]
cmp dword [rcx + 0x94], r8d
jle 0x1402c77f3
lea r9d, [r8 + 1]
mov dword [rcx + 0x90], r9d
mov rcx, qword [rcx + 0x88]
lea r8, [r8 + r8*2]
mov byte [rcx + r8*8], dl
mov word [rcx + r8*8 + 2], 0
mov dword [rcx + r8*8 + 4], eax
mov dword [rcx + r8*8 + 8], ebp
mov dword [rcx + r8*8 + 0xc], 0
mov qword [rcx + r8*8 + 0x10], 0
mov byte [rcx + r8*8 + 1], 0
jmp 0x1402c7806
mov dword [rsp + 0x20], 0
mov r8d, eax
mov r9d, ebp
call fcn.14026f1c0
inc r12d
add rdi, 0x18
mov rax, qword [rsp + 0x48]
cmp r12d, dword [rax + 0x24]
jl 0x1402c7754
mov rax, qword [rsp + 0x48]
mov byte [rax], 0
test r15d, r15d
je 0x1402c713e
mov eax, dword [rsi + 0x90]
lea ecx, [rax - 1]
cmp ecx, r15d
jne 0x1402c7847
mov dword [rsi + 0x90], r15d
jmp 0x1402c713e
mov rcx, qword [rsi]
cmp byte [rcx + 0x67], 0
je 0x1402c7859
lea rcx, [0x14043f9e0]
jmp 0x1402c786b
movsxd rcx, r15d
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, qword [rsi + 0x88]
mov dword [rcx + 8], eax
jmp 0x1402c713e