Function at 0x140081ae0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
sub edx, 0x21000501
je 0x140081bc8
cmp edx, 8
jne 0x140081bb5
mov r9d, r8d
lea rdx, [0x140328e58]
lea r8, str.AutoPowerByJackImp
lea rcx, [0x1403dd120]
call fcn.140102e14
mov rax, qword [rdi + 0x90]
mov rbx, qword [rax + 0x1bd8]
test rbx, rbx
je 0x140081b70
mov rdi, rbx
test rbx, rbx
je 0x140081d65
mov rdi, qword [rdi + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x140081b6b
mov eax, dword [rdi + 0x1d8]
dec eax
test eax, 0xfffffffd
jne 0x140081b6b
mov rcx, rdi
call fcn.14001b540
mov edx, eax
mov rcx, rdi
call fcn.14001b5d0
test rbx, rbx
jne 0x140081b32
mov rcx, qword [0x1403db8b0]
test rcx, rcx
jne 0x140081ba7
lea r8, str.c:userschunyung_source_repos_rtkngui_rtkngui_audioobjectui.cpp
mov edx, 0x9b
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x21000509
call qword [rax + 0x60]
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rcx + 0x90]
mov qword [rsp + 0x70], rsi
test dword [rax + 0x88], 0x1000
je 0x140081bea
mov ebx, 1
jmp 0x140081d50
test rax, rax
jne 0x140081c0e
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguijackimpedancedetect.cpp
mov edx, 0x8f
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor ebx, ebx
jmp 0x140081d50
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
jne 0x140081c39
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguijackimpedancedetect.cpp
mov edx, 0x90
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
xor ebx, ebx
jmp 0x140081d50
xor esi, esi
test dword [rax + 0x1dc], 0x10000000
je 0x140081d4e
mov dword [rsp + 0x78], 0x9999
lea ebx, [rsi + 1]
cmp dword [rcx + reloc.COMCTL32.dll_Ordinal_380], 0xffffffff
mov dword [rsp + 0x40], esi
jne 0x140081ca7
mov rax, qword [0x1403bee48]
test eax, eax
jg 0x140081c86
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguidriverpropertyclient.cpp
lea edx, [rsi + 0x61]
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x140081ceb
movups xmm0, xmmword [0x140326d70]
movaps xmmword [rsp + 0x50], xmm0
test rax, rax
jle 0x140081d6b
mov rcx, qword [0x1403bee40]
mov rcx, qword [rcx]
jmp 0x140081cba
movups xmm0, xmmword [0x140326d70]
mov rcx, qword [rcx + 0x150]
movaps xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 4
mov r8d, 0x3a
mov qword [rsp + 0x20], rax
call fcn.14005d300
mov esi, eax
test esi, esi
je 0x140081d40
cmp dword [rdi + 0xb0], 0
jne 0x140081d40
lea rax, [rsp + 0x40]
mov dword [rdi + 0xb0], ebx
mov qword [rsp + 0x28], rax
lea r9, [rdi - 0x18]
lea r8, [0x140081a50]
mov dword [rsp + 0x20], 0
xor edx, edx
mov dword [rdi + 0xa8], 5
xor ecx, ecx
mov dword [rdi + 0xac], 5
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x98], rax
mov edx, esi
lea rcx, str.CSpkSettingUI::SetImpedanceSensingDetect__Success__d
call fcn.140052e90
mov ebx, esi
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call fcn.1400f5890
int3
call fcn.1400f5890
int3