Function at 0x451507
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1690]
mov eax, 0x1710
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x168c], eax
mov eax, dword [ebp + 0x1698]
push ebx
push esi
push edi
push 0x20
pop ecx
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov esi, 0x4a0a38
lea edi, [ebp + 0x15a4]
mov dword [ebp - 0x78], eax
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
mov dword [ebp - 0x7c], 1
call fcn.004670a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp + 0x15a4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x451620
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0046715b
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
push esi
mov word [ebp + 0x78c], ax
lea eax, [ebp + 0x78e]
push ebx
push eax
call fcn.004670a0
add esp, 0x14
cmp word [ebp - 0x74], 0x25
jne 0x4515df
push 0x400
lea eax, [ebp + 0x78c]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4515f1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x78c]
push eax
call fcn.004689b2
pop ecx
pop ecx
push str.SoftMgr_somkernl.dll
lea eax, [ebp + 0x78c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x78c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451620
lea eax, [ebp + 0x78c]
push eax
jmp 0x45171d
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp + 0x1194], ax
xor esi, esi
lea eax, [ebp + 0x1196]
push esi
push eax
call fcn.004670a0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1194]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push ebx
mov word [ebp + 0x139c], ax
lea eax, [ebp + 0x139e]
push esi
push eax
call fcn.004670a0
add esp, 0xc
push 0xd
pop ecx
mov esi, str.....SoftMgr_somkernl.dll
lea edi, [ebp + 0x1624]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x1624]
push eax
lea eax, [ebp + 0x1194]
push eax
lea eax, [ebp + 0x139c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x139c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4516b7
lea eax, [ebp + 0x139c]
jmp 0x45161a
xor eax, eax
push ebx
push eax
mov word [ebp + 0xf8c], ax
lea eax, [ebp + 0xf8e]
push eax
call fcn.004670a0
add esp, 0xc
push 0xc
pop ecx
lea eax, [ebp + 0x165c]
push eax
lea eax, [ebp + 0x1194]
push eax
lea eax, [ebp + 0xf8c]
mov esi, str...SoftMgr_somkernl.dll
lea edi, [ebp + 0x165c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0xf8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451718
lea eax, [ebp + 0xf8c]
jmp 0x45161a
push 0x4a11e8
mov ecx, dword [ebp - 0x78]
call fcn.004029f9
mov ecx, dword [ebp + 0x168c]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046711a
add ebp, 0x1690
leave
ret