Function at 0x140097330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140221f78]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp], rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov qword [rcx + 0x10], r14
lea rdi, [rcx + 0x18]
mov qword [rdi], r14
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
lea r15, str.LarkSensorEvent::LarkSensorEvent
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], SafeArrayAllocDescriptorEx
lea r12, str.c:DAX35dax3APIDAXAPILarkSensor.cpp
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], SafeArrayAllocDescriptorEx
mov ecx, 0x200
call fcn.1401353e0
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movdqa xmmword [rbp + 0x30], xmm1
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf8
lea r8, [rbp + 0x30]
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.140134f50
nop
mov qword [0x14022b230], rbx
lea rax, [0x14022b198]
mov qword [rbp + 8], rax
lock inc qword [0x14022b198]
mov rcx, qword [0x14022b190]
test rcx, rcx
je 0x140097471
mov qword [rbp + 0xa0], r14
mov rax, qword [rcx]
lea rdx, [rbp + 0xa0]
call qword [rax + 0x30]
test eax, eax
js 0x140097754
mov rax, qword [rbp + 0xa0]
mov qword [rsp + 0x40], rax
lock dec qword [0x14022b198]
jmp 0x14009749b
lock dec qword [0x14022b198]
lea rax, [0x140096cc0]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [0x14022b190]
call fcn.140096d20
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x1400974bd
cmp qword [rdi], 0
je 0x1400974b3
mov rcx, rdi
call fcn.14006feb0
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
jmp 0x1400974cf
cmp qword [rsp + 0x40], 0
je 0x1400974cf
lea rcx, [rsp + 0x40]
call fcn.14006feb0
cmp qword [rdi], 0
je 0x1400976a0
lea rax, str.m_OrientationSensor_Ready
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], SafeArrayCopy
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 0x20
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], SafeArrayAllocDescriptorEx
mov ecx, 0x200
call fcn.1401353e0
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movdqa xmmword [rbp + 0x50], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp + 0x60], xmm0
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x100
lea r8, [rbp + 0x60]
mov dl, 5
mov rcx, rax
call fcn.140036100
mov dword [rbp + 0xa8], r14d
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea rdx, [rbp + 0xa8]
call qword [rax + 0x30]
test eax, eax
js 0x14009775c
mov eax, dword [rbp + 0xa8]
mov dword [0x14022b23c], eax
lea rax, str.GetCurrentOrientation:___d_
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x1b
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 0x20
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], SafeArrayAllocDescriptorEx
mov ecx, 0x200
call fcn.1401353e0
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp + 0x70], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0x80], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x90], xmm0
lea rcx, [0x14022b23c]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x28], rcx
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, 0x103
lea r8, [rbp + 0x90]
mov dl, 5
mov rcx, rax
call fcn.140036820
mov edx, dword [0x14022b23c]
mov ecx, dword [0x14022b268]
call qword [0x14022b230]
mov qword [rbp - 0x10], rsi
lea rax, [0x140099960]
mov qword [rbp - 8], rax
mov ecx, 0x20
call fcn.14015ea14
mov rbx, rax
mov qword [rbp + 0x10], rax
test rax, rax
je 0x140097667
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax + 8], xmm0
mov eax, 1
lock xadd dword [0x14022b130], eax
mov dword [rbx + 0x18], 1
lea rax, [0x1401bda88]
mov qword [rbx], rax
jmp 0x14009766a
mov rbx, r14
mov qword [rbp + 0xb0], rbx
mov qword [rsp + 0x50], r14
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rbx
call qword [rax + 0x38]
test eax, eax
js 0x140097764
test rbx, rbx
je 0x1400976a0
lea rcx, [rbp + 0xb0]
call fcn.14006feb0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14015ea14
test rax, rax
je 0x1400976bf
mov qword [rax], rsi
lea rcx, [0x140098ec0]
mov qword [rax + 8], rcx
jmp 0x1400976c2
mov rax, r14
mov qword [rbp + 0xb0], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x1400429c0]
xor edx, edx
xor ecx, ecx
call fcn.14016e06c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140097744
cmp dword [rsi + 8], 0
jne 0x14009773e
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
lea rcx, [rbp + 0xc0]
call fcn.140135170
nop
mov rax, rsi
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14015eb70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14016e14c
nop
mov dword [rsp + 0x68], r14d
mov ecx, 6
call fcn.14015c480
nop
mov ecx, eax
call fcn.14009c9d0
nop
mov ecx, eax
call fcn.14009c9d0
nop
mov ecx, eax
call fcn.14009c9d0
int3