Function at 0x413b40
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb5a3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x69c
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x638]
mov dword [ebp - 0x640], 0x208
push 0x208
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x638]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [0x53c158], 8
lea ecx, [ebp - 0x638]
mov eax, 0x53c144
cmovae eax, dword [0x53c144]
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041a990
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x220]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x413c5a
cmp dword [0x53c170], 8
lea ecx, [ebp - 0x640]
push ecx
lea ecx, [ebp - 0x220]
mov eax, 0x53c15c
cmovae eax, dword [0x53c15c]
push ecx
lea ecx, [ebp - 0x644]
push ecx
push 0x51c79c
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x220]
push eax
call esi
test eax, eax
je 0x413ed9
xor eax, eax
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 7
mov word [ebp - 0x6a0], ax
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x670], 7
mov word [ebp - 0x684], ax
mov byte [ebp - 0x66c], al
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x6a0]
cmp dword [0x53c188], 8
mov eax, 0x53c174
push dword [0x53c184]
cmovae eax, dword [0x53c174]
push eax
call fcn.0041a5b0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x688], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413cd5
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x684]
call fcn.0041a5b0
push 0
push 0x53c1a4
push 0x53c18c
call fcn.004176e0
test al, al
jne 0x413d28
push 0
push 0x53c1bc
push 0x53c18c
call fcn.004176e0
mov byte [ebp - 0x66c], 0
test al, al
je 0x413d2f
mov byte [ebp - 0x66c], 1
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x6a4], 0
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea ecx, [ebp - 0x6a4]
cmp dword [0x53c1e8], 8
mov eax, 0x53c1d4
cmovae eax, dword [0x53c1d4]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x6a4]
test ecx, ecx
je 0x413dbd
cmp dword [0x53c200], 8
lea edx, [ebp - 0x63c]
push edx
lea edx, [ebp - 0x430]
mov dword [ebp - 0x63c], 0x104
push edx
push 0
mov eax, 0x53c1ec
cmovae eax, dword [0x53c1ec]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x430], 0
je 0x413e5d
sub esp, 0x18
lea ecx, [ebp - 0x430]
mov edx, esp
mov dword [ebp - 0x63c], esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413df2
sub ecx, esi
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov eax, dword [0x53aca4]
test eax, eax
jne 0x413e50
push 0x44
call fcn.0048e9bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x6a8], esi
push 0x44
push 0
push esi
mov byte [ebp - 4], 2
call fcn.004bcaf0
add esp, 0xc
mov ecx, esi
call fcn.0042eb20
mov byte [ebp - 4], 1
mov dword [0x53aca4], eax
push 1
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0042f5e0
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x6a0]
push eax
cmp dword [0x53cd94], esi
je 0x413ec3
mov ecx, esi
mov dword [ebp - 0x6a8], esi
call fcn.0041a300
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x688]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x684]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x668]
mov al, byte [ebp - 0x66c]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x658]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x413ece
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0x6a0]
call fcn.004136b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4