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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4d8c
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x100b5008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x100a9600
lea ecx, [ebp - 0x364]
call fcn.1001f1d0
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
mov dword [ebp - 0x3b0], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x334]
push ecx
call fcn.10048990
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x364]
call fcn.1001f070
lea edx, [ebp - 0x3a0]
push edx
push 0x20019
push 0
push 0x100a9608
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10012428
mov byte [ebp - 0x395], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.1001f070
mov al, byte [ebp - 0x395]
jmp 0x10012623
mov dword [ebp - 0x39c], 0
lea ecx, [ebp - 0x34c]
call fcn.1001e9e0
mov byte [ebp - 4], 3
mov dword [ebp - 0x3b4], 0x104
mov dword [ebp - 0x3a8], 0x104
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x3b8]
push edx
push 0
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x39c]
push edx
mov eax, dword [ebp - 0x3a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x39c]
add ecx, 1
mov dword [ebp - 0x39c], ecx
cmp dword [ebp - 0x3a4], 0x103
jne 0x100124ef
mov edx, dword [ebp - 0x3a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x396], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34c]
call fcn.1001e990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.1001f070
mov al, byte [ebp - 0x396]
jmp 0x10012623
cmp dword [ebp - 0x3a4], 0
jne 0x10012501
cmp dword [ebp - 0x3b8], 1
je 0x10012506
jmp 0x100125e8
mov ecx, dword [ebp + 8]
call fcn.1001ece0
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.1001ed00
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x100125e8
mov ecx, dword [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x394]
call fcn.1001f240
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c0], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c0]
push ecx
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x37c]
push eax
call fcn.10049a90
add esp, 0xc
mov dword [ebp - 0x3c4], eax
mov ecx, dword [ebp - 0x3c4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1001f0c0
lea ecx, [ebp - 0x37c]
call fcn.1001f070
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x394]
call fcn.1001f070
mov edx, dword [ebp - 0x3a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x397], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34c]
call fcn.1001e990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.1001f070
mov al, byte [ebp - 0x397]
jmp 0x10012623
mov eax, 1
test eax, eax
jne 0x10012441
mov byte [ebp - 0x398], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34c]
call fcn.1001e990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.1001f070
mov al, byte [ebp - 0x398]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a2fb6
mov esp, ebp
pop ebp
ret