Function at 0x140001030
Capabilities:
Check mutex on windows
Get session user name
Query environment variable
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x5e0
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov rdi, rcx
lea r8, str.QAWiFiPowerSwitch_3705FC90_FE9C_45FB_B0F4_86261D6FBEB0
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000133b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14000133b
mov r9d, 0x64
mov qword [rsp + 0x5f8], rbx
mov qword [rsp + 0x600], rbp
lea r8, [0x14000dbe0]
mov rcx, rdi
mov qword [rsp + 0x608], rsi
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x14000db10]
mov rcx, rdi
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rdi
call fcn.140001340
xor esi, esi
lea rbp, [0x140008928]
mov qword [rsp + 0x30], rsi
lea rdx, str.SOFTWAREOEMQuick_AccessLog
mov qword [rsp + 0x28], rsi
mov r9d, 0xffff
mov r8, rbp
mov qword [rsp + 0x20], rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140001237
xor edx, edx
lea rcx, [rsp + 0x1b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x3c0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov dword [rsp + 0x90], 0x208
lea rdx, [rsp + 0x1b0]
lea rcx, str.PROGRAMDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r9, str.OEMQuick_AccessLog
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x1b0]
lea rdx, str._s_s_s.log
lea rcx, [rsp + 0x1b0]
call fcn.140003ad0
lea ecx, [rsi + 0x38]
call fcn.140006034
mov rbx, rax
lea rcx, [rsp + 0xa0]
xor eax, eax
xor edx, edx
mov r8d, 0x104
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
lea rax, [rsp + 0x1b0]
mov qword [rbx], rax
mov qword [rbx + 8], rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x1b0]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [0x14000daf0], rbx
mov qword [rsp + 0x58], rsi
lea r8, [0x14000dbe0]
mov qword [rsp + 0x50], rdi
lea rdx, [0x14000db10]
mov qword [rsp + 0x48], rsi
mov r9d, 0xcf0000
mov qword [rsp + 0x40], rsi
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x80000000
mov qword [0x14000dbd8], rdi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, qword [rsp + 0x608]
mov rbp, qword [rsp + 0x600]
test rax, rax
je 0x140001318
mov rcx, rax
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 0x6d
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001314
nop dword [rax]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400012fd
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400012d0
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x5f8]
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.140006010
add rsp, 0x5e0
pop rdi
ret
xor eax, eax
jmp 0x140001320