Function at 0x140002734
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov dil, cl
mov byte [rsp + 0x40], cl
mov r15d, 0x10c
lea rcx, [rbp + 0x90]
mov r8d, r15d
xor edx, edx
call sub.ntdll.dll_memset
xor r13d, r13d
mov dword [rbp + 0x80], 0x11c
mov r8b, 3
mov qword [rbp + 0x84], 0xa
xor ecx, ecx
mov dword [rbp + 0x8c], 0x4a22
lea r14d, [r13 + 2]
mov edx, r14d
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
nop dword [rax + rax]
mov r8b, 3
lea edx, [r13 + 1]
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
nop dword [rax + rax]
mov r8b, 3
lea edx, [r13 + 4]
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
nop dword [rax + rax]
mov r8, rax
lea edx, [r13 + 7]
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_VerifyVersionInfoW]
nop dword [rax + rax]
lea rcx, str.GameInput.dll
mov qword [rsp + 0x68], r13
test eax, eax
mov qword [rbp + 0x68], rcx
lea rax, str.GameInputRedist.dll
mov qword [rsp + 0x70], r13
setne sil
mov qword [rbp + 0x30], rax
xor edx, edx
mov qword [rbp + 0x70], rax
xor ecx, ecx
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400028d1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], r14d
mov edi, eax
jbe 0x140002bdf
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002bdf
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002bdf
mov dword [rbp - 0x2c], eax
lea rdx, [0x140008cbe]
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x28], r15d
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
jmp 0x140002bd5
mov rcx, qword gs:[0x60]
mov rax, r14
mul rbx
mov rcx, qword [rcx + 0x30]
mov r15, 0xffffffffffffffff
cmovo rax, r15
xor edx, edx
mov r8, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14000297d
cmp dword [section..data], r14d
mov ebx, 0x8007000e
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x20], ebx
mov qword [rbp - 8], rax
lea rdx, [0x140008c6e]
lea rax, [rbp - 0x20]
mov dword [rbp - 0x1c], 0x10e
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
jmp 0x140003330
mov rcx, qword [rsp + 0x68]
mov edx, ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140002a18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], r14d
mov edi, eax
jbe 0x140002bdf
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002bdf
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002bdf
mov dword [rsp + 0x78], eax
lea rdx, [0x140008cbe]
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rsp + 0x7c], 0x10f
mov qword [rbp], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
jmp 0x140002bd5
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_wow64_l1_1_1.dll_GetSystemWow64DirectoryW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140002aaa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], r14d
mov edi, eax
jbe 0x140002bdf
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002bdf
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002bdf
mov dword [rbp - 0x80], eax
lea rdx, [0x140008cbe]
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x7c], 0x116
mov qword [rbp + 8], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
jmp 0x140002bd5
mov rcx, qword gs:[0x60]
mov rax, r14
mul rbx
mov rcx, qword [rcx + 0x30]
cmovo rax, r15
xor edx, edx
mov r8, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140002b4f
cmp dword [section..data], r14d
mov ebx, 0x8007000e
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x78], ebx
mov qword [rbp + 0x10], rax
lea rdx, [0x140008c6e]
lea rax, [rbp - 0x78]
mov dword [rbp - 0x74], 0x118
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
jmp 0x140003330
mov rcx, qword [rsp + 0x70]
mov edx, ebx
call qword [sym.imp.api_ms_win_core_wow64_l1_1_1.dll_GetSystemWow64DirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140002bf1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], r14d
mov edi, eax
jbe 0x140002bdf
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002bdf
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002bdf
mov dword [rbp - 0x70], eax
lea rdx, [0x140008cbe]
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x6c], 0x119
mov qword [rbp + 0x18], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
call fcn.140001008
test edi, edi
jne 0x140002da5
mov ebx, 0x8000ffff
jmp 0x14000333a
test dil, dil
je 0x140002dbd
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x30], rax
lea r8, str.RedistDir
mov ebx, 0x20002
mov qword [rsp + 0x28], r13
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], r13
mov r9d, ebx
lea rdx, str.SOFTWAREMicrosoftGameInput
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140002c56
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000333a
mov ecx, dword [rsp + 0x58]
mov rax, r14
mul rcx
mov rcx, qword gs:[0x60]
cmovo rax, r15
xor edx, edx
mov r8, rax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140002cff
cmp dword [section..data], r14d
mov ebx, 0x8007000e
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x68], ebx
mov qword [rbp + 0x20], rax
lea rdx, [0x140008c6e]
lea rax, [rbp - 0x68]
mov dword [rbp - 0x64], 0x12f
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
jmp 0x140003330
lea rax, [rsp + 0x58]
mov r9d, ebx
mov qword [rsp + 0x30], rax
lea r8, str.RedistDir
mov rax, qword [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftGameInput
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140002db8
cmp dword [section..data], r14d
jbe 0x140002da5
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002da5
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002da5
mov dword [rbp - 0x60], eax
lea rdx, [0x140008cbe]
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x5c], 0x137
mov qword [rbp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
call fcn.140001008
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14000333a
mov dil, byte [rsp + 0x40]
movzx r14d, sil
lea r12, [rbp + 0x68]
xor r14, 1
lea rax, [rbp + 0x30]
inc r14
mov rbx, r13
test sil, sil
mov rcx, r13
cmovne r12, rax
mov rdx, qword [r12 + rcx*8]
mov rax, r15
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140002de4
cmp rax, rbx
cmovbe rax, rbx
inc rcx
mov rbx, rax
cmp rcx, r14
jb 0x140002ddd
mov r15, r13
test dil, dil
je 0x140002ed0
mov rcx, qword [rsp + 0x60]
or r8, 0xffffffffffffffff
mov rax, r8
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140002e18
mov rcx, qword gs:[0x60]
lea r15, [rax + 0xf]
add r15, rbx
mov eax, 2
mul r15
mov rcx, qword [rcx + 0x30]
cmovo rax, r8
xor edx, edx
mov r8, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140002ed0
cmp dword [section..data], 2
mov ebx, 0x8007000e
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x58], ebx
mov qword [rbp + 0x38], rax
lea rdx, [0x140008c6e]
lea rax, [rbp - 0x58]
mov dword [rbp - 0x54], 0x160
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
jmp 0x140003330
mov rax, qword [rsp + 0x68]
or r9, 0xffffffffffffffff
mov rcx, r9
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x140002edc
mov rax, qword [rsp + 0x70]
lea r8, [rbx + 2]
add r8, rcx
mov qword [rbp - 0x18], r8
test rax, rax
je 0x140002f21
mov rdx, r9
inc rdx
cmp word [rax + rdx*2], r13w
jne 0x140002efe
lea rax, [rbx + 2]
add rax, rdx
cmp r8, rax
lea r8, [rbx + 2]
cmovb rcx, rdx
add r8, rcx
mov qword [rbp - 0x18], r8
mov rcx, qword gs:[0x60]
mov eax, 2
mul r8
mov rcx, qword [rcx + 0x30]
cmovo rax, r9
xor edx, edx
mov r8, rax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140002fc8
cmp dword [section..data], 2
mov ebx, 0x8007000e
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x3c], ebx
mov qword [rbp + 0x40], rax
lea rdx, [0x140008c6e]
lea rax, [rbp - 0x3c]
mov dword [rbp - 0x50], 0x16c
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
jmp 0x140003330
mov r13, qword [rbp - 0x18]
lea rbx, [0x1400086d0]
test sil, sil
je 0x140003055
test dil, dil
je 0x140003055
mov rax, qword [r12]
lea r8, str._ws.._ws_ws
mov r9, qword [rsp + 0x60]
mov rdx, r15
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
mov r9, qword [rsp + 0x68]
lea rax, str.GameInput.dll
mov rcx, qword [rsp + 0x48]
lea r8, str._ws_ws
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140001ed8
cmp eax, 1
jne 0x140003055
mov ebx, 0x80030105
jmp 0x14000333a
xor edi, edi
mov rsi, qword [r12 + rdi*8]
lea r8, str._ws_ws
mov r9, qword [rsp + 0x68]
mov rdx, r13
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
cmp byte [rsp + 0x40], 0
je 0x14000313c
mov r9, qword [rsp + 0x60]
lea r8, str._ws.._ws_ws
mov rcx, qword [rsp + 0x50]
mov rdx, r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140001fbc
mov ebx, eax
test eax, eax
jns 0x140003150
cmp dword [section..data], 2
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x4c], ebx
mov qword [rbp + 0x48], rax
lea rdx, [0x140008c31]
lea rax, [rbp - 0x4c]
mov dword [rbp - 0x48], 0x184
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
jmp 0x140003330
mov rcx, qword [rsp + 0x48]
call fcn.1400023a4
mov ebx, eax
test eax, eax
js 0x1400032d3
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140003250
mov rcx, qword [rsp + 0x48]
lea r8, str._ws_ws
mov r9, rax
mov qword [rsp + 0x20], rsi
mov rdx, r13
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
cmp byte [rsp + 0x40], 0
je 0x140003240
mov r9, qword [rsp + 0x60]
lea rax, [0x1400086d8]
mov rcx, qword [rsp + 0x50]
lea r8, str._ws.._ws_ws
mov qword [rsp + 0x28], rsi
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140001fbc
mov ebx, eax
test eax, eax
jns 0x140003250
cmp dword [section..data], 2
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x44], ebx
mov qword [rbp + 0x50], rax
lea rdx, [0x140008c31]
lea rax, [rbp - 0x44]
mov dword [rbp - 0x40], 0x190
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
jmp 0x140003330
mov rcx, qword [rsp + 0x48]
call fcn.1400023a4
mov ebx, eax
test eax, eax
js 0x140003264
inc rdi
cmp rdi, r14
jae 0x1400032cf
lea rbx, [0x1400086d0]
jmp 0x140003057
cmp dword [section..data], 2
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x24], ebx
mov qword [rbp + 0x58], rax
lea rdx, [0x140008c31]
lea rax, [rbp - 0x24]
mov dword [rbp - 0x38], 0x194
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
jmp 0x140003330
xor ebx, ebx
jmp 0x14000333a
cmp dword [section..data], 2
jbe 0x14000333a
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000333a
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x14000333a
lea rax, str.onecorexboxgameinput2published_svc_service.cpp
mov dword [rbp - 0x34], ebx
mov qword [rbp + 0x60], rax
lea rdx, [0x140008c31]
lea rax, [rbp - 0x34]
mov dword [rbp - 0x30], 0x188
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140001008
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14000334c
mov rcx, rax
call fcn.1400062b4
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000335e
mov rcx, rax
call fcn.1400062b4
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140003370
mov rcx, rax
call fcn.1400062b4
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140003382
mov rcx, rax
call fcn.1400062b4
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140003394
mov rcx, rax
call fcn.1400062b4
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140006f60
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret