Function at 0x4075d0
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 - 0x5c], ecx
mov dword [ebp - 0x48], edx
mov esi, dword [ebp + 0xc]
mov ecx, 0x427020
lea ebx, [ebp - 0x24]
mov eax, dword [0x43200c]
xor eax, ebp
test esi, esi
mov dword [ebp - 0x10], eax
mov eax, 0x427010
cmove ecx, eax
push ebx
push 0
push 0x8000
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov ebx, dword [ebx]
test eax, eax
js 0x407723
xor eax, eax
cmp esi, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
jne 0x407631
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
or eax, edx
jne 0x4079d2
movsd xmm0, qword [0x42a3e6]
movsd xmm1, qword [0x42a3de]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
movsd qword [edx + 8], xmm0
movsd qword [edx], xmm1
call fcn.00407ac0
mov edi, eax
test eax, eax
js 0x40772a
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x58], ebx
xor eax, eax
lea ebx, [ebp - 0x34]
mov dword [ebx], eax
mov dword [ebx + 4], eax
push edi
call fcn.00416709
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
lea esi, [eax + ecx + 1]
mov dword [ebp - 0x54], edx
push edx
push edi
push 0x42cb46
push esi
push ebx
call fcn.00407bd0
add esp, 0x14
cmp dword [ebx], esi
mov edi, 0x80004005
mov dword [ebp - 0x50], esi
jne 0x407982
mov esi, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
test esi, esi
je 0x4078dd
mov ecx, dword [ebp - 0x48]
xor edi, edi
lea ebx, [ebp - 0x44]
mov eax, 0x42acbb
mov dword [ebx], edi
mov dword [ebx + 4], edi
test ecx, ecx
cmovne eax, ecx
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 0xc], 0x42a64f
call fcn.00407cc0
add esp, 0x10
cmp dword [ebx], edi
mov ebx, 0
je 0x4077e9
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x4c], 0
push eax
push 2
push esi
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov dword [ebp - 0x48], ebx
je 0x407732
xor ebx, ebx
jmp 0x407779
mov edi, eax
jmp 0x4079b3
mov eax, dword [ebp - 0x28]
jmp 0x40799f
mov ebx, dword [ebp - 0x20]
xor eax, eax
dec eax
add ebx, ebx
cmovb ebx, eax
push ebx
call fcn.0040d784
add esp, 4
xor ecx, ecx
push ebx
mov ebx, eax
push ecx
push eax
call fcn.0040fdd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
xor eax, eax
push eax
push 2
push esi
push dword [ebp - 0x48]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov dword [ebp - 0x4c], ebx
je 0x40787a
lea ecx, [ebp - 0x20]
xor eax, eax
push ecx
push eax
push eax
push 2
push esi
mov eax, dword [ebp - 0x48]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4077e9
mov ebx, dword [ebp - 0x20]
xor eax, eax
dec eax
add ebx, ebx
cmovb ebx, eax
push ebx
call fcn.0040d784
add esp, 4
push ebx
mov ebx, eax
push 0
push eax
call fcn.0040fdd0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4077c9
push eax
call fcn.0040d78d
add esp, 4
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push 2
push esi
push dword [ebp - 0x48]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40787a
cmp word [esi], 0
mov dword [ebp - 0x48], ebx
je 0x407801
xor eax, eax
cmp word [esi + eax + 2], 0
lea edi, [eax + 2]
mov eax, edi
jne 0x4077f4
push edi
push esi
call fcn.0040c3c0
add esp, 8
mov edi, eax
mov dword [ebp - 0x4c], edx
push 0x22
call fcn.0040d784
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x48]
mov word [ebx + 0x20], 0
test eax, eax
jne 0x407a02
sub esp, 0x14
cmp dword [ebp + 0xc], 1
je 0x4079e7
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], str._llX
mov dword [esp + 0x10], eax
call fcn.00407560
add esp, 0x14
test eax, eax
jle 0x4078bd
cmp eax, 0x10
ja 0x4078bd
movsd xmm0, qword [0x42a3f6]
movsd xmm1, qword [str.updates]
lea edi, [ebp - 0x20]
movsd qword [edi + 8], xmm0
movsd qword [edi], xmm1
push ebx
call fcn.00416709
add esp, 4
mov ecx, dword [ebp - 0x50]
lea eax, [ecx + eax + 9]
lea ecx, [ebp - 0x3c]
push ebx
push edi
push dword [ebp - 0x30]
push str._s_s_s
push eax
push ecx
call fcn.00407bd0
add esp, 0x18
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], 0
test eax, eax
je 0x4078d4
push eax
call fcn.0040d78d
add esp, 4
push ebx
call fcn.0040d78d
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x40790d
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x3c], 0
je 0x4078f7
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x3c]
push eax
push 1
jmp 0x4078ff
lea ecx, [ebp - 0x34]
mov edx, ecx
push eax
push 0
call fcn.00407d90
add esp, 8
mov edi, eax
test eax, eax
js 0x40796b
mov eax, dword [ebp + 0x14]
test esi, esi
je 0x407936
cmp dword [ebp - 0x3c], 0
je 0x407952
mov ecx, dword [eax]
mov edx, dword [ebp - 0x38]
test ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [eax], edx
je 0x407959
push ecx
call fcn.00416709
add esp, 4
mov dword [ebp - 0x3c], eax
jmp 0x407969
mov ecx, dword [eax]
mov edx, dword [ebp - 0x30]
test ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [eax], edx
je 0x407962
push ecx
call fcn.00416709
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x407969
mov edi, 0x80004005
jmp 0x40796b
mov dword [ebp - 0x3c], 0
jmp 0x407969
mov dword [ebp - 0x34], 0
xor edi, edi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x407982
push eax
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x40799c
push eax
call fcn.0040d78d
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
mov dword [ebp - 0x28], 0
je 0x4079b3
push eax
call fcn.0040d78d
add esp, 4
test ebx, ebx
je 0x4079be
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dec1
mov eax, edi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
test eax, eax
cmovne edx, eax
call fcn.00407a10
jmp 0x407655
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov dword [esp + 8], str._X_X
mov dword [esp + 0xc], eax
jmp 0x407869
push eax
call fcn.0040d78d
add esp, 4
jmp 0x407846