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

Disassembly:
push 0x238
mov eax, 0x42ad7d
call fcn.00428a3d
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x23c], 4
lea ecx, [ebp - 0x224]
mov ebx, edi
call dword [0x43629c]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call dword [0x43629c]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call dword [0x43629c]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call dword [0x43629c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], edi
je 0x41cb6a
push 0x254
lea ecx, [ebp - 0x230]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
mov esi, 0x404744
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 [0x4362a4]
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 [0x4362a4]
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 [0x434f4c]
cmp dword [eax - 8], edi
jne 0x41cac4
lea eax, [ebp - 0x234]
push eax
push 1
push edi
push 0x404748
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c9bc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push 0x4047ac
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jle 0x41c984
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
lea ecx, [ebp - 0x224]
jne 0x41c9a3
cmp dword [ebp - 0x240], 1
jne 0x41c99c
push 0x2f0
jmp 0x41c9a8
push 0x2f1
jmp 0x41c9a8
push 0x2ef
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c9cd
push 0x2ef
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC42u.dll_CString::LoadStringW]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41cac4
push 0x4047d8
lea ecx, [ebp - 0x218]
call fcn.0040d3b5
mov ebx, eax
test ebx, ebx
js 0x41cac4
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x41cac4
push 0x4047f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x41cabd
or dword [ebp - 0x228], 0xffffffff
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call dword [0x436604]
call dword [ebp - 0x244]
mov ebx, eax
test ebx, ebx
je 0x41ca65
cmp ebx, 0x80070522
jne 0x41cabd
push 0x2ff
jmp 0x41cab1
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x41caac
test eax, eax
je 0x41caa5
cmp eax, 1
je 0x41ca9e
cmp eax, 2
je 0x41ca97
lea ecx, [ebp - 0x21c]
cmp eax, 3
je 0x41ca90
push 0x153
jmp 0x41cab7
push 0x2f5
jmp 0x41cab7
push 0x2f4
jmp 0x41cab1
push 0x2f3
jmp 0x41cab1
push 0x2f2
jmp 0x41cab1
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 - 0x238]
mov esi, dword [eax]
lea eax, [ebp - 0x230]
push eax
push edi
mov ecx, dword [esi + 0x30]
call dword [0x436604]
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 [0x436604]
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 - 0x238]
call dword [0x436604]
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 [0x436604]
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.004289da
ret