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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60edf7
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x428], 1
push 0x660040
lea ecx, [ebp - 0x42c]
call fcn.0040ab00
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0058abd0
add esp, 0xc
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x444], 0x104
xor ecx, ecx
mov byte [ebp - 0x421], cl
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
push ecx
push str.InstallDir
lea ecx, [ebp - 0x421]
call fcn.0041d1a0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41cf32
mov dword [ebp - 0x428], 2
jmp 0x41d134
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040aac0
xor eax, eax
mov byte [ebp - 0x422], al
lea ecx, [ebp - 0x422]
call fcn.0041d320
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41cf82
mov dword [ebp - 0x428], 2
jmp 0x41d134
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0058abd0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [0x699e64]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x434]
call fcn.0040efc0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040ab00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.0040c2b0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
call fcn.0040aae0
lea ecx, [ebp - 0x430]
call fcn.0040efc0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040ab00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.0040c2b0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x43c]
call fcn.0040aae0
lea ecx, [ebp - 0x430]
call fcn.0040efe0
movzx eax, al
test eax, eax
je 0x41d084
mov dword [ebp - 0x428], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0040aae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.0040aae0
jmp 0x41d134
lea ecx, [ebp - 0x434]
call fcn.0040f070
push eax
lea ecx, [ebp - 0x430]
call fcn.0040f070
push eax
call fcn.0051d1a0
add esp, 8
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jge 0x41d0cf
push 0x660078
lea ecx, [ebp - 0x42c]
call fcn.0040aac0
mov dword [ebp - 0x428], 0xffffffff
jmp 0x41d10e
cmp dword [ebp - 0x440], 0
jne 0x41d0f4
push 0x66007c
lea ecx, [ebp - 0x42c]
call fcn.0040aac0
mov dword [ebp - 0x428], 0
jmp 0x41d10e
mov dword [ebp - 0x428], 1
push 0x660080
lea ecx, [ebp - 0x42c]
call fcn.0040aac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0040aae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.0040aae0
xor ecx, ecx
jne 0x41cebc
lea ecx, [ebp - 0x42c]
call fcn.0040f070
push eax
call fcn.005198c0
add esp, 4
lea ecx, [ebp - 0x42c]
call fcn.0040ac80
push eax
call fcn.0040a7c0
mov ecx, eax
call fcn.0041ca40
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0040aae0
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret