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

Disassembly:
sub rsp, 0x28
mov r9, r8
mov r10, rdx
cmp ecx, 0x1000007
ja 0x140003b0c
je 0x140003afc
add ecx, 0xff000000
cmp ecx, 6
ja case.default.0x140003878
lea rdx, [0x140000000]
mov ecx, dword [rdx + rcx*4 + 0x3cc8]
add rcx, rdx
jmp rcx
cmp dword [r10], 2
jae 0x140003892
mov ecx, 2
mov eax, 0x8007007a
mov dword [r10], ecx
add rsp, 0x28
ret
test r9, r9
jne 0x1400038a1
mov eax, 0x80070057
add rsp, 0x28
ret
mov ecx, 2
mov dword [r10], ecx
movzx eax, word [0x1400f750c]
mov word [r8], ax
xor eax, eax
add rsp, 0x28
ret
cmp dword [r10], 0x160
jae 0x1400038d5
mov dword [r10], 0x160
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
mov dword [r10], 0x160
lea rax, [0x1400d1310]
mov ecx, 2
nop dword [rax]
lea r9, [r9 + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [r9 - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [r9 - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r9 - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r9 - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r9 - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r9 - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r9 - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r9 - 0x10], xmm1
sub rcx, 1
jne 0x1400038f0
movups xmm0, xmmword [rax]
movups xmmword [r9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r9 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r9 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r9 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r9 + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
xor eax, eax
movups xmmword [r9 + 0x50], xmm1
add rsp, 0x28
ret
cmp dword [r10], 2
jb 0x140003880
test r9, r9
je case.default.0x140003878
mov ecx, 2
mov dword [r10], ecx
movzx eax, word [0x1400f750e]
mov word [r8], ax
xor eax, eax
add rsp, 0x28
ret
mov edx, dword [r10]
cmp edx, 8
jae 0x1400039cc
mov dword [r10], 0x100
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
cmp edx, 0x100
jae 0x1400039f2
and edx, 0xfffffff8
mov rcx, r9
mov dword [r10], edx
call fcn.140001e60
xor eax, eax
add rsp, 0x28
ret
mov edx, 0x100
mov rcx, r9
mov dword [r10], edx
call fcn.140001e60
xor eax, eax
add rsp, 0x28
ret
mov rdx, r10
lea rcx, [0x1400f7490]
add rsp, 0x28
jmp fcn.14002dec0
mov eax, dword [r10]
test eax, eax
je 0x140003ac7
cmp eax, 0xc
jae 0x140003a3d
mov dword [r10], recv
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
xor eax, eax
mov qword [r8], rax
mov rdx, qword [0x1400f7490]
shr rdx, 0x15
and edx, 1
mov qword [r8], rdx
movzx ecx, word [0x1400f750c]
mov word [r8 + 8], cx
mov r8, qword [0x1400f7490]
shr r8, 0x15
and r8d, 2
or r8, rdx
mov qword [r9], r8
movzx ecx, word [0x1400f750e]
mov word [r9 + 0xa], cx
cmp dword [r10], 0x10
jb 0x140003aad
mov rcx, qword [0x1400f7490]
shr rcx, 0x15
and ecx, 4
or rcx, r8
mov qword [r9], rcx
mov ecx, dword [0x1400f7504]
mov dword [r9 + 0xc], ecx
mov edx, reloc.WS2_32.dll_recv
cmp dword [r10], edx
cmovb edx, dword [r10]
mov dword [r10], edx
add rsp, 0x28
ret
cmp dword [r10], 0x10
jae 0x140003ad9
mov edx, reloc.WS2_32.dll_recv
mov eax, 0x8007007a
mov dword [r10], edx
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
mov edx, reloc.WS2_32.dll_recv
xor eax, eax
mov dword [r10], edx
movups xmm0, xmmword [0x1400f7474]
movups xmmword [r8], xmm0
add rsp, 0x28
ret
lea rcx, [0x1400f7490]
add rsp, 0x28
jmp fcn.14002e4c0
cmp ecx, 0x81000003
ja 0x140003c39
je 0x140003bff
sub ecx, 0x1000008
je 0x140003bab
sub ecx, 1
je 0x140003b66
cmp ecx, 1
jne case.default.0x140003878
cmp dword [rdx], 4
jae 0x140003b4d
mov dword [rdx], 4
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
xor eax, eax
mov dword [rdx], 4
mov dword [r8], eax
add rsp, 0x28
ret
mov rax, qword [0x1400f75a0]
test rax, rax
jne 0x140003b79
mov dword [rdx], eax
add rsp, 0x28
ret
mov eax, dword [rax + 8]
lea eax, [rax*2 + 0xc]
cmp dword [rdx], eax
jb 0x140003bcf
test r9, r9
je case.default.0x140003878
mov dword [rdx], eax
mov rcx, r9
mov rdx, qword [0x1400f75a0]
mov r8d, eax
call fcn.140081340
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [0x1400f7488]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140003bc0
inc eax
cmp dword [rdx], eax
jae 0x140003bdb
mov dword [rdx], eax
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
mov dword [rdx], eax
mov rcx, r9
mov rdx, qword [0x1400f7488]
mov r8d, eax
call fcn.140081340
xor eax, eax
add rsp, 0x28
ret
cmp dword [rdx], 1
jae 0x140003c14
mov dword [rdx], 1
mov eax, 0x8007007a
add rsp, 0x28
ret
test r9, r9
je case.default.0x140003878
mov dword [rdx], 1
movzx eax, byte [0x1400f751b]
shr al, 6
and al, 1
mov byte [r8], al
xor eax, eax
add rsp, 0x28
ret
cmp ecx, 0x81000004
je 0x140003c9d
cmp ecx, 0x81000005
jne case.default.0x140003878
cmp dword [rdx], 4
jb 0x140003b3d
test r9, r9
je case.default.0x140003878
cmp qword [0x1400f75a8], 0
jne 0x140003c73
mov eax, 0x8007139f
add rsp, 0x28
ret
mov dword [rdx], 4
mov rax, qword [0x1400f75a8]
cmp qword [rax + 0xd8], 0
mov eax, dword [rax + 0xc8]
je 0x140003c93
or eax, 0x40
mov dword [r8], eax
xor eax, eax
add rsp, 0x28
ret
cmp dword [rdx], 1
jb 0x140003c04
test r9, r9
je case.default.0x140003878
mov dword [rdx], 1
movzx eax, byte [0x1400f7471]
mov byte [r8], al
xor eax, eax
add rsp, 0x28
ret