Function at 0x14009a3b0
Capabilities:
Check mutex on windows
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x19]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14009a638
lea r8, [rbp + 0x2b]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rbp + 0x27], 1
mov dword [rbp + 0x33], 2
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009a638
mov dword [rbp - 1], 1
mov dword [rbp - 0x11], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rbp - 9], r14
lea r8, str.WetypeInstaller
xor edx, edx
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14009a490
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009a638
mov edx, 0x9c41
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
call fcn.14008d4a0
mov ecx, 2
call fcn.140312ed0
test eax, eax
je 0x14009a551
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
lea rax, str.start
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], 5
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
movaps xmm1, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm1
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.140077780
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x79], rax
mov rax, qword [rbp + 0x17]
mov qword [rbp - 0x71], rax
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [rbp - 0x79]
mov qword [rsp + 0x28], rax
lea rax, str.WetypeUpdate
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
mov r8d, 0x44
lea rdx, str.C:codeWeChatPinYinwxkb01_mozcWetypeUpdateWetypeInstallerWetypeUpdateWetypeUpdate.cpp
lea ecx, [r8 - 0x42]
call fcn.140077ea0
lea rcx, [rbp + 7]
call fcn.14007cfc0
lea rax, [0x140514ba0]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x21], rax
mov qword [rbp + 7], r14
movdqa xmm0, xmmword [0x140535b80]
movdqu xmmword [rbp + 0x17], xmm0
xor r8d, r8d
lea rdx, [0x1404d34b0]
lea rcx, [rbp + 7]
call fcn.14007cb70
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 7]
call fcn.140126650
lea rcx, [rbp + 7]
call fcn.14007cfc0
mov r9, rsi
mov rcx, rdi
call fcn.14009a660
call fcn.1400a2010
mov rcx, qword [0x1405b3130]
mov rax, qword [rcx + 8]
mov qword [rax], r14
mov rdi, qword [rcx]
test rdi, rdi
je 0x14009a5e5
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.140123b10
mov edx, 0x30
mov rcx, rdi
call fcn.140398020
mov rdi, rbx
test rbx, rbx
jne 0x14009a5c4
mov rax, qword [0x1405b3130]
mov qword [rax], rax
mov rax, qword [0x1405b3130]
mov qword [rax + 8], rax
mov qword [0x1405b3138], r14
call fcn.1402d3d70
mov rcx, qword [0x140593b80]
cmp rcx, 0xffffffffffffffff
je 0x14009a633
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140593b80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140593b80], 0xffffffffffffffff
call fcn.14031b7e0
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret