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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x60], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
mov eax, 0x428010
mov ecx, 0x428020
cmove ecx, eax
lea ebx, [ebp - 0x24]
push ebx
push 0
push 0x8000
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov ebx, dword [ebx]
test eax, eax
js 0x401b04
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
cmp esi, 1
jne 0x401881
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
or eax, edx
jne 0x401bba
movups xmm0, xmmword [0x42b4e0]
lea edx, [ebp - 0x20]
movups xmmword [edx], xmm0
lea ecx, [ebp - 0x2c]
call fcn.00401c00
mov edi, eax
test eax, eax
js 0x401b0b
mov dword [ebp - 0x5c], ebx
xor eax, eax
lea ebx, [ebp - 0x34]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov edi, dword [ebp - 0x24]
push edi
call fcn.0040d0bb
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea esi, [eax + ecx]
inc esi
mov dword [ebp - 0x58], edx
push edx
push edi
push 0x42dcc6
push esi
push ebx
call section..text
add esp, 0x14
mov edi, 0x80004005
mov dword [ebp - 0x54], esi
cmp dword [ebx], esi
jne 0x401b78
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x401aea
xor edi, edi
lea ebx, [ebp - 0x44]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
mov eax, 0x42be3b
cmovne eax, ecx
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 0xc], 0x42b7cf
call fcn.00401690
add esp, 0x10
mov dword [ebp - 0x48], 0
cmp dword [ebx], edi
je 0x401a1d
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
xor eax, eax
push ecx
push eax
mov dword [ebp - 0x48], 0
push eax
push 2
push esi
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov dword [ebp - 0x4c], ebx
jne 0x4019a9
mov ebx, dword [ebp - 0x20]
xor eax, eax
dec eax
add ebx, ebx
cmovb ebx, eax
push ebx
call fcn.0040cf57
add esp, 4
xor ecx, ecx
push ebx
push ecx
mov ebx, eax
push eax
call fcn.0040f9d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
xor eax, eax
push eax
push 2
push esi
push dword [ebp - 0x4c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x48], ebx
test eax, eax
je 0x401a9c
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push 2
push esi
mov eax, dword [ebp - 0x4c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x401a1d
mov ecx, dword [ebp - 0x20]
xor eax, eax
dec eax
add ecx, ecx
cmovb ecx, eax
mov dword [ebp - 0x50], ecx
push ecx
call fcn.0040cf57
add esp, 4
mov ebx, eax
push dword [ebp - 0x50]
push 0
push eax
call fcn.0040f9d0
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4019fe
push eax
call fcn.0040d268
add esp, 4
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push 2
push esi
push dword [ebp - 0x4c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x48], ebx
test eax, eax
je 0x401a9c
cmp word [esi], 0
je 0x401a32
xor eax, eax
lea edi, [eax + 2]
cmp word [esi + eax + 2], 0
mov eax, edi
jne 0x401a25
push edi
push esi
call fcn.00401f10
add esp, 8
mov edi, eax
mov dword [ebp - 0x4c], edx
push 0x22
call fcn.0040cf57
add esp, 4
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov word [eax + 0x20], 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x401bea
sub esp, 0x14
cmp dword [ebp + 0xc], 1
je 0x401bcf
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], str._llX
call fcn.00408eb0
add esp, 0x14
test eax, eax
jle 0x401ad1
cmp eax, 0x10
ja 0x401ad1
movups xmm0, xmmword [str.updates]
lea edi, [ebp - 0x20]
movups xmmword [edi], xmm0
push ebx
call fcn.0040d0bb
add esp, 4
mov ecx, dword [ebp - 0x54]
add eax, ecx
add eax, 9
lea ecx, [ebp - 0x3c]
push ebx
push edi
push dword [ebp - 0x30]
push str._s_s_s
push eax
push ecx
call section..text
add esp, 0x18
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401ae1
push eax
call fcn.0040d268
add esp, 4
push ebx
call fcn.0040d268
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x401b26
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x3c], 0
je 0x401b10
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x3c]
push eax
push 1
jmp 0x401b18
mov edi, eax
jmp 0x401b9b
mov eax, dword [ebp - 0x28]
jmp 0x401b8e
lea ecx, [ebp - 0x34]
mov edx, ecx
push eax
push 0
call fcn.00408f10
add esp, 8
mov edi, eax
test eax, eax
js 0x401b68
mov eax, dword [ebp + 0x14]
test esi, esi
je 0x401b45
cmp dword [ebp - 0x3c], 0
je 0x401b63
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [eax], ecx
xor edi, edi
test edx, edx
jne 0x401b68
jmp 0x401b78
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [eax], edx
xor edi, edi
test ecx, ecx
je 0x401b68
push ecx
call fcn.0040d0bb
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x401b68
mov edi, 0x80004005
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x401b78
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
mov ebx, dword [ebp - 0x5c]
je 0x401b8b
push eax
call fcn.0040d268
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x401b9b
push eax
call fcn.0040d268
add esp, 4
test ebx, ebx
je 0x401ba6
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x48]
test eax, eax
cmovne edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00426550
jmp 0x401896
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [esp + 8], str._X_X
jmp 0x401a8b
push eax
call fcn.0040d268
add esp, 4
jmp 0x401a68