Function at 0x408fd0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov ecx, 0x428020
mov eax, dword [0x43300c]
xor eax, ebp
test ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0x428010
cmove ecx, eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x8000
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
mov eax, dword [ebp - 0x24]
test edi, edi
jns 0x409033
test eax, eax
je 0x40901f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, edi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
cmp ebx, 1
mov esi, ebx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], 0
jne 0x409069
mov edx, dword [ebp + 8]
mov eax, ecx
or eax, edx
je 0x409069
test ecx, ecx
cmovne edx, ecx
lea ecx, [ebp - 0x48]
call fcn.004093c0
jmp 0x40908e
movsd xmm0, qword [0x42b418]
movsd xmm1, qword [0x42b410]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x20]
movsd qword [ebp - 0x18], xmm0
movsd qword [ebp - 0x20], xmm1
call fcn.00409470
mov edi, eax
test eax, eax
jns 0x4090bb
mov eax, dword [ebp - 0x44]
test eax, eax
mov dword [ebp - 0x44], 0
je 0x4090ab
push eax
call fcn.0040da4a
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x409018
jmp 0x40901f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push edi
call fcn.00416b42
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
lea ebx, [eax + ecx + 1]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x58], edx
push edx
push edi
push 0x42db84
push ebx
push eax
call fcn.00409560
add esp, 0x14
cmp dword [ebp - 0x38], ebx
mov edi, 0x80004005
jne 0x4091c3
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
test ecx, ecx
jne 0x4091e2
test esi, esi
jne 0x40914e
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x40], 0
je 0x409135
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x40]
push eax
push 1
jmp 0x40913d
lea ecx, [ebp - 0x38]
mov edx, ecx
push eax
push 0
call fcn.00409650
add esp, 8
mov ecx, dword [ebp - 0x28]
mov edi, eax
test eax, eax
js 0x4091ac
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x409177
cmp dword [ebp - 0x40], 0
je 0x409193
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
test ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [eax], edx
je 0x40919a
push ecx
call fcn.00416b42
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x4091aa
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
test ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [eax], edx
je 0x4091a3
push ecx
call fcn.00416b42
add esp, 4
mov dword [ebp - 0x38], eax
jmp 0x4091aa
mov edi, 0x80004005
jmp 0x4091ac
mov dword [ebp - 0x40], 0
jmp 0x4091aa
mov dword [ebp - 0x38], 0
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x4091c3
push eax
call fcn.0040da4a
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4091da
push eax
call fcn.0040da4a
add esp, 4
mov eax, dword [ebp - 0x58]
jmp 0x409097
mov ecx, dword [ebp - 0x2c]
mov eax, 0x42bcdf
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], 0
test ecx, ecx
cmovne eax, ecx
sub esp, 0x10
lea ecx, [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x42b673
mov dword [esp], ecx
call fcn.004095d0
add esp, 0x10
cmp dword [ebp - 0x50], 0
je 0x40931b
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40929b
mov eax, dword [ebp - 0x20]
mov ebx, 0xffffffff
add eax, eax
cmovae ebx, eax
push ebx
call fcn.0040da41
add esp, 4
mov edi, eax
push ebx
push 0
push eax
call fcn.00410040
add esp, 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], edi
push eax
push edi
push 0
push 2
push dword [ebp - 0x28]
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov ebx, edi
mov dword [ebp - 0x2c], edi
jne 0x4092a2
jmp 0x409339
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409318
mov eax, dword [ebp - 0x20]
mov edi, 0xffffffff
add eax, eax
cmovae edi, eax
push edi
call fcn.0040da41
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call fcn.00410040
add esp, 0xc
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
je 0x4092f7
push dword [ebp - 0x2c]
call fcn.0040da4a
add esp, 4
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push 2
push dword [ebp - 0x28]
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x40931b
jmp 0x409339
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
xor eax, eax
cmp esi, 1
lea edx, [ebp - 0x30]
sete al
push eax
call fcn.00408e80
add esp, 4
test eax, eax
js 0x40937d
mov ebx, dword [ebp - 0x30]
movsd xmm0, qword [0x42b428]
movsd xmm1, qword [str.updates]
movsd qword [ebp - 0x18], xmm0
movsd qword [ebp - 0x20], xmm1
push ebx
call fcn.00416b42
add esp, 4
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x40]
lea eax, [ecx + eax + 9]
lea ecx, [ebp - 0x20]
push ebx
push ecx
push dword [ebp - 0x34]
push str._s_s_s
push eax
push edx
call fcn.00409560
add esp, 0x18
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x409394
push eax
call fcn.0040da4a
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4093ab
push eax
call fcn.0040da4a
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x40914e
jmp 0x409121