Function at 0x4198d0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x432e0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [esp + 0x248]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.00419f60
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x250], ebx
call fcn.0042ec56
push 0x445248
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419942
test al, 0x10
jne 0x419942
mov eax, 1
jmp 0x419944
xor eax, eax
test al, al
mov byte [esi + 4], al
je 0x419bcd
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], 1
call fcn.0042ec56
push str.Setup.ini
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [str.AppInfo]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x445238]
mov dword [esp + 0x30], edx
push ecx
push ebx
lea edx, [esp + 0x38]
push str.KBytes
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esi + 0xc]
push 0x20
push ecx
push 0x449060
lea edx, [esp + 0x40]
push str.Version
push edx
call edi
mov eax, dword [esp + 0x10]
lea ebp, [esi + 0x30]
push eax
push 0x40
push ebp
push 0x449060
lea ecx, [esp + 0x40]
push str.CLSID
push ecx
call edi
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x70]
push edx
push 0x20
push eax
push 0x449060
lea ecx, [esp + 0x40]
push str.Driver
push ecx
call edi
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.00419fa0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], 2
call fcn.0042ec56
push str.Setup.iss
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 3
call fcn.0042ec02
push str._AskDestPath_0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x1c]
push eax
push 0x104
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x48]
push ecx
push 0x449060
push str.szPath
push edx
call edi
mov al, byte [esp + 0x40]
pop ebp
test al, al
jne 0x419aae
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x2f]
call fcn.00419770
mov dl, byte [eax]
lea eax, [esp + 0x13]
push 0x43d038
push eax
mov byte [esp + 0x1b], dl
call sub.MSVCRT.dll__CxxThrowException
xor edi, edi
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 4
push ecx
push 1
push ebx
push str.SoftWareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x419ae4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x140]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push str.ProgramFilesDir
push edi
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CString::CString_1
add esi, 0x2c
lea eax, [esp + 0x140]
mov bl, 5
push eax
mov ecx, esi
mov byte [esp + 0x250], bl
call fcn.0042ec02
push 0x444e98
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push str.C:Program_Files_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov byte [esp + 0x250], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.0042ebf6
lea ecx, [esp + 0x28]
mov byte [esp + 0x24c], 4
call fcn.0042ebf6
test edi, edi
je 0x419b9a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.0042ebf6
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call fcn.0042ebf6
lea ecx, [esp + 0xc]
mov byte [esp + 0x24c], 0
call fcn.0042ebf6
lea ecx, [esp + 0x20]
mov dword [esp + 0x24c], 0xffffffff
call fcn.0042ebf6
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret 4