Function at 0x412370
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x28c4]
mov eax, 0x2944
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp + 0x28c0], eax
push ebx
push esi
push edi
xor eax, eax
push 0xffe
mov word [ebp + 0x14b0], ax
xor ebx, ebx
lea eax, [ebp + 0x14b2]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x80], edi
call fcn.00437ff0
mov esi, 0x800
push esi
lea eax, [ebp + 0x14b0]
push ebx
push eax
call fcn.00437ff0
push esi
push ebx
push edi
call fcn.00437ff0
add esp, 0x24
push esi
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412549
cmp dword [ebp - 0x64], 2
jne 0x412439
push esi
lea eax, [ebp + 0x14b0]
push ebx
push eax
call fcn.00437ff0
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp + 0x14b0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SOM_
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x412549
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x26b8], ax
lea eax, [ebp + 0x26ba]
push ebx
push eax
call fcn.00437ff0
xor eax, eax
push edi
mov word [ebp + 0x24b0], ax
lea eax, [ebp + 0x24b2]
push ebx
push eax
call fcn.00437ff0
xor eax, eax
push edi
mov word [ebp + 0x12a8], ax
lea eax, [ebp + 0x12aa]
push ebx
push eax
call fcn.00437ff0
xor eax, eax
push edi
mov word [ebp + 0x10a0], ax
lea eax, [ebp + 0x10a2]
push ebx
push eax
call fcn.00437ff0
mov eax, 0x104
push eax
lea ecx, [ebp + 0x10a0]
push ecx
push eax
lea ecx, [ebp + 0x12a8]
push ecx
push eax
lea ecx, [ebp + 0x24b0]
push ecx
push eax
lea eax, [ebp + 0x26b8]
push eax
lea eax, [ebp + 0x14b0]
push eax
call fcn.00438e66
add esp, 0x54
xor eax, eax
push 0xffe
mov word [ebp + 0xa0], ax
lea eax, [ebp + 0xa2]
push ebx
push eax
call fcn.00437ff0
lea eax, [ebp + 0x26b8]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.00438df7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0x18
lea eax, [ebp + 0x24b0]
push eax
lea eax, [ebp + 0xa0]
push eax
call edi
push 0x451c08
lea eax, [ebp + 0xa0]
push eax
call edi
push esi
lea eax, [ebp + 0x14b0]
push ebx
push eax
call fcn.00437ff0
lea eax, [ebp + 0xa0]
push eax
lea eax, [ebp + 0x14b0]
push esi
push eax
call fcn.00438df7
add esp, 0x18
call fcn.0040290a
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp + 0x14b0]
push eax
call edi
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
lea eax, [ebp + 0x14b0]
je 0x41262c
push esi
push ebx
push eax
call fcn.00437ff0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20219
push ebx
push str.SOFTWARESOFTCAMPDSDirectory
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4125c4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x14b0]
push eax
push ebx
push ebx
push str.DSSDSPath
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x78], ebx
je 0x4125d2
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x412605
push dword [ebp - 0x7c]
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SoftcampSDS
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.0040290a
push eax
lea eax, [ebp + 0x14b0]
push eax
call edi
lea eax, [ebp + 0x14b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x412639
lea eax, [ebp + 0x14b0]
push eax
push esi
push dword [ebp - 0x80]
call fcn.00438df7
add esp, 0xc
mov ecx, dword [ebp + 0x28c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437ed4
add ebp, 0x28c4
leave
ret