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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520f81
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x572374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0xc], 0
je 0x411e02
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.004067e0
movzx ecx, al
test ecx, ecx
je 0x411e0c
mov eax, 1
jmp 0x4120c8
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.004067e0
movzx edx, al
test edx, edx
jne 0x411e3f
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.00405690
mov dword [ebp - 0x228], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a9b50
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x230], 1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.00405690
push eax
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004052c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00410000
lea ecx, [ebp - 0x21c]
call fcn.004100c0
lea ecx, [ebp - 0x21c]
call fcn.004067e0
movzx edx, al
test edx, edx
je 0x411f0c
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004054b0
mov eax, dword [ebp - 0x234]
jmp 0x4120c8
push 0x530e34
push 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00415fe0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00415900
add esp, 8
mov byte [ebp - 0x221], al
lea ecx, [ebp - 0x23c]
call fcn.004054b0
movzx edx, byte [ebp - 0x221]
test edx, edx
je 0x411fae
lea ecx, [ebp - 0x21c]
call fcn.00406560
sub eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416150
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x244]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00405610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004054b0
push 0x530e38
push 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416150
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00415900
add esp, 8
mov byte [ebp - 0x222], al
lea ecx, [ebp - 0x250]
call fcn.004054b0
movzx edx, byte [ebp - 0x222]
test edx, edx
je 0x412050
lea ecx, [ebp - 0x21c]
call fcn.00406560
sub eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00415fe0
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x258]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00405610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.004054b0
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.004067e0
movzx eax, al
test eax, eax
jne 0x412098
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.00405690
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00415e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00416080
lea ecx, [ebp - 0x21c]
call fcn.00405690
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004054b0
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d268
mov esp, ebp
pop ebp
ret