Function at 0x140001a46
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14006bb90
push rbp
push rbx
push r12
push r13
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140125350]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ebx, ebx
xor eax, eax
lea rdx, [rbp + 0xf]
mov qword [rbp + 0x1b], rax
mov qword [rbp + 0x23], rax
mov rax, qword [rcx]
mov r13d, ebx
mov r12d, ebx
mov r15d, ebx
mov qword [rbp + 0xf], rbx
mov dword [rbp + 7], ebx
mov dword [rbp + 0x17], ebx
call qword [rax + 0x48]
test eax, eax
jns 0x14006bc17
cmp dword [reloc.WSOCK32.dll_accept], 2
mov qword [rbp + 0xf], rbx
jl 0x14006bf11
test dword [0x1401248de], 0x200000
je 0x14006bf11
lea rax, str.Unable_to_get_supported_field_for_sensor_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x159
jmp 0x14006bc5a
mov rcx, qword [rbp + 0xf]
lea rdx, [rbp + 7]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jns 0x14006bc7c
cmp dword [reloc.WSOCK32.dll_accept], 2
jl 0x14006beee
test dword [0x1401248de], 0x200000
je 0x14006beee
lea rax, str.Unable_to_get_field_count_for_sensor_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15f
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::IsSensorCompatible
mov edx, 2
mov ecx, 0x200000
call fcn.140001a41
jmp 0x14006beee
mov qword [rsp + 0x108], r14
mov r14d, ebx
cmp dword [rbp + 7], ebx
jbe 0x14006bee6
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rdi
lea rbx, str.Supported_X_sensor_found_n
lea rdi, str.Supported_Y_sensor_found_n
lea rsi, str.Supported_Z_sensor_found_n
nop word [rax + rax]
mov rcx, qword [rbp + 0xf]
lea r8, [rbp + 0x17]
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14006bec7
mov ecx, dword [reloc.WSOCK32.dll_accept]
mov eax, dword [0x140124900]
cmp ecx, 4
jl 0x14006bdb6
bt eax, 0x15
jae 0x14006bdb6
movzx eax, byte [rbp + 0x26]
movzx ecx, byte [rbp + 0x25]
movzx edx, byte [rbp + 0x24]
movzx r8d, byte [rbp + 0x23]
movzx r9d, byte [rbp + 0x22]
movzx r10d, byte [rbp + 0x21]
movzx r11d, byte [rbp + 0x20]
movzx ebx, byte [rbp + 0x1f]
movzx edi, word [rbp + 0x1d]
movzx esi, word [rbp + 0x1b]
mov dword [rsp + 0x88], eax
mov eax, dword [rbp + 0x17]
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], r8d
mov dword [rsp + 0x68], r9d
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x27]
lea r9, str...cem_accelerometer.cpp
mov dword [rsp + 0x30], eax
lea rax, str.PID___d___08lX__04hX__04hX__02X_02X__02X_02X_02X_02X_02X_02X_n
lea r8, str.CAccelerometer::IsSensorCompatible
mov qword [rsp + 0x28], rax
mov edx, 4
mov ecx, 0x200000
mov dword [rsp + 0x20], 0x16a
call fcn.140001a41
mov ecx, dword [reloc.WSOCK32.dll_accept]
mov eax, dword [0x140124900]
lea rbx, str.Supported_X_sensor_found_n
lea rdi, str.Supported_Y_sensor_found_n
lea rsi, str.Supported_Z_sensor_found_n
mov edx, dword [rbp + 0x27]
mov r9, qword [rbp + 0x1f]
mov r8, qword [rbp + 0x17]
cmp edx, dword [reloc.WSOCK32.dll_bind]
jne 0x14006be1b
cmp r8, qword [0x140101d48]
jne 0x14006be1b
cmp r9, qword [0x140101d50]
jne 0x14006be1b
cmp ecx, 4
jl 0x14006be10
bt eax, 0x15
jae 0x14006be10
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::IsSensorCompatible
mov edx, 4
mov ecx, 0x200000
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x16d
call fcn.140001a41
mov r13d, 1
jmp 0x14006bec7
cmp edx, dword [reloc.WSOCK32.dll_closesocket]
jne 0x14006be72
cmp r8, qword [0x140101128]
jne 0x14006be72
cmp r9, qword [0x140101130]
jne 0x14006be72
cmp ecx, 4
jl 0x14006be6a
bt eax, 0x15
jae 0x14006be6a
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::IsSensorCompatible
mov edx, 4
mov ecx, 0x200000
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x173
call fcn.140001a41
mov r12d, 1
jmp 0x14006bec7
cmp edx, dword [0x140101230]
jne 0x14006bec7
cmp r8, qword [0x140101220]
jne 0x14006bec7
cmp r9, qword [0x140101228]
jne 0x14006bec7
cmp ecx, 4
jl 0x14006bec1
bt eax, 0x15
jae 0x14006bec1
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::IsSensorCompatible
mov edx, 4
mov ecx, 0x200000
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x179
call fcn.140001a41
mov r15d, 1
inc r14d
cmp r14d, dword [rbp + 7]
jb 0x14006bcc0
mov rdi, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xf8]
xor ebx, ebx
mov r14, qword [rsp + 0x108]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14006befd
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
test r13d, r13d
je 0x14006bf11
test r12d, r12d
je 0x14006bf11
mov eax, 1
test r15d, r15d
jne 0x14006bf13
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14008d900
add rsp, 0xc0
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret