Function at 0x401838
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x30
mov eax, 0x5b7b08
call fcn.0058f985
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x214]
mov edi, dword [ebp + 0x218]
mov dword [ebp - 0x3c], eax
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
mov byte [ebp - 4], 1
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x18]
call fcn.0040141e
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.0058fa90
xor ebx, ebx
add esp, 0xc
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
call fcn.004964e5
push str.SLM_Dispatch11.dll
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00496bdc
push str.SLM_Dispatch12.dll
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.00496bdc
push str.SLM_Dispatch12OEM.dll
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.00496bdc
push str.SLM_Dispatch13.dll
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call fcn.00496bdc
cmp dword [0x667bcc], esi
je 0x40193a
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov dword [edi + 0xf4], esi
push dword [0x667bd4]
call ebx
push esi
push dword [0x667bd8]
call ebx
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
push esi
call fcn.0040152b
push 0x5d44c4
call fcn.004437b6
lea ecx, [ebp - 0x18]
mov dword [esp], 0x2bd5
call fcn.004014f8
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a83
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push esi
push esi
push str.CommonFilesDir
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a6f
cmp dword [ebp - 0x2c], esi
jle 0x401a7a
cmp ebx, esi
jne 0x4019c3
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push esi
push edi
call fcn.004536b5
add esp, 0x14
push ebx
lea ecx, [ebp - 0x34]
call fcn.00446d5b
push dword [eax]
lea eax, [ebp - 0x14]
push str.Using:__s
push eax
call fcn.00401518
push dword [ebp - 0x14]
call fcn.004437b6
add esp, 0x10
push ebx
lea ecx, [ebp - 0x34]
call fcn.00446d5b
push dword [eax]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push str._sRoxio_SharedDLLShared_s
push eax
call fcn.00401518
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a2b
push dword [ebp - 0x10]
mov eax, dword [edi + 0xc0]
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
call fcn.00401761
jmp 0x401a52
push ebx
lea ecx, [ebp - 0x34]
call fcn.00446d5b
push dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x14]
push str.____s_could_not_be_found_using_path:__s
push eax
call fcn.00401518
push dword [ebp - 0x14]
call fcn.004437b6
add esp, 0x14
push esi
push dword [ebp - 0x18]
inc ebx
push dword [ebp - 0x2c]
push ebx
push edi
call fcn.004536b5
add esp, 0x14
cmp ebx, dword [ebp - 0x2c]
jl 0x4019ae
jmp 0x401a7a
push str.___Could_not_retrieve_the_value_of_the_common_files_folder
call fcn.004437b6
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x667bcc], esi
je 0x401a95
mov dword [edi + 0xf4], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004968d3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret 8