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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x570374]
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 0x411dd2
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
call fcn.004067b0
movzx ecx, al
test ecx, ecx
je 0x411ddc
mov eax, 1
jmp 0x412098
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.004067b0
movzx edx, al
test edx, edx
jne 0x411e0f
mov ecx, dword [ebp - 0x220]
add ecx, 0x14
call fcn.00405660
mov dword [ebp - 0x228], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a8eb0
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.00405660
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.00405290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.0040ffd0
lea ecx, [ebp - 0x21c]
call fcn.00410090
lea ecx, [ebp - 0x21c]
call fcn.004067b0
movzx edx, al
test edx, edx
je 0x411edc
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405480
mov eax, dword [ebp - 0x234]
jmp 0x412098
push 0x52de38
push 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00415fb0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004158d0
add esp, 8
mov byte [ebp - 0x221], al
lea ecx, [ebp - 0x23c]
call fcn.00405480
movzx edx, byte [ebp - 0x221]
test edx, edx
je 0x411f7e
lea ecx, [ebp - 0x21c]
call fcn.00406530
sub eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416120
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.004055e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00405480
push 0x52de3c
push 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416120
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.004158d0
add esp, 8
mov byte [ebp - 0x222], al
lea ecx, [ebp - 0x250]
call fcn.00405480
movzx edx, byte [ebp - 0x222]
test edx, edx
je 0x412020
lea ecx, [ebp - 0x21c]
call fcn.00406530
sub eax, 1
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00415fb0
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.004055e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00405480
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.004067b0
movzx eax, al
test eax, eax
jne 0x412068
mov ecx, dword [ebp - 0x220]
add ecx, 0x18
call fcn.00405660
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00415e50
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00416050
lea ecx, [ebp - 0x21c]
call fcn.00405660
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.00405480
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.0047c5a8
mov esp, ebp
pop ebp
ret