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

Disassembly:
push 0x238
mov eax, 0x42366f
call fcn.0042193f
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x240], 4
lea ecx, [ebp - 0x224]
mov ebx, edi
call dword [0x42e21c]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call dword [0x42e21c]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call dword [0x42e21c]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call dword [0x42e21c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], edi
je 0x4165af
push 0x254
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
mov esi, 0x40407c
lea eax, [ebp - 0x228]
push esi
push eax
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::SpanExcluding]
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call dword [0x42e224]
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
push 0x153
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push 0x255
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push esi
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::SpanExcluding]
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call dword [0x42e224]
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
push 0x153
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
mov eax, dword [0x42ccbc]
cmp dword [eax - 8], edi
jne 0x416509
lea eax, [ebp - 0x238]
push eax
push 1
push edi
push 0x404080
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4163d5
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
push edi
push edi
push 0x4040e4
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jle 0x41639d
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
lea ecx, [ebp - 0x224]
jne 0x4163bc
cmp dword [ebp - 0x244], 1
jne 0x4163b5
push 0x2f0
jmp 0x4163c1
push 0x2f1
jmp 0x4163c1
push 0x2ef
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4163e6
push 0x2ef
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x416509
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x218]
call fcn.00418f7b
mov ebx, eax
test ebx, ebx
js 0x416509
mov eax, dword [ebp - 0x234]
sub esi, eax
push ecx
push 0x404110
push ecx
lea ecx, [ebp - 0x218]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418fc4
mov ebx, eax
test ebx, ebx
js 0x416509
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x416509
push 0x404128
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x416502
or dword [ebp - 0x228], 0xffffffff
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call dword [0x42e58c]
call dword [ebp - 0x234]
mov ebx, eax
test ebx, ebx
je 0x4164aa
cmp ebx, 0x80070522
jne 0x416502
push 0x2ff
jmp 0x4164f6
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x4164f1
test eax, eax
je 0x4164ea
cmp eax, 1
je 0x4164e3
cmp eax, 2
je 0x4164dc
lea ecx, [ebp - 0x21c]
cmp eax, 3
je 0x4164d5
push 0x153
jmp 0x4164fc
push 0x2f5
jmp 0x4164fc
push 0x2f4
jmp 0x4164f6
push 0x2f3
jmp 0x4164f6
push 0x2f2
jmp 0x4164f6
push 0x153
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x220]
push edi
push edi
mov edi, dword [ebp - 0x23c]
mov esi, dword [eax]
lea eax, [ebp - 0x230]
push eax
push edi
mov ecx, dword [esi + 0x30]
call dword [0x42e58c]
mov ecx, dword [ebp - 0x220]
call dword [esi + 0x30]
mov eax, dword [ebp - 0x220]
add edi, 0x1c
mov esi, dword [eax]
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x224]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x42e58c]
mov ecx, dword [ebp - 0x220]
call dword [esi + 0x30]
mov eax, dword [ebp - 0x220]
mov esi, dword [eax]
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x22c]
mov ecx, dword [esi + 0x30]
push eax
push dword [ebp - 0x23c]
call dword [0x42e58c]
mov ecx, dword [ebp - 0x220]
call dword [esi + 0x30]
mov eax, dword [ebp - 0x220]
mov esi, dword [eax]
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x21c]
mov ecx, dword [esi + 0x30]
push eax
push edi
call dword [0x42e58c]
mov ecx, dword [ebp - 0x220]
call dword [esi + 0x30]
mov edi, ebx
lea ecx, [ebp - 0x22c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov eax, edi
call fcn.004218ee
ret