Function at 0x41bea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c738e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c4
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x7cc]
mov dword [ebp - 0x7d0], edi
call fcn.00443cd0
push str.success
lea ecx, [ebp - 0x7ac]
mov dword [ebp - 4], 0
call fcn.00443c90
lea eax, [ebp - 0x7ac]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 1
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0
call fcn.00443ee0
push 0x4dba50
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x7bc]
push eax
call fcn.0044ff60
add esp, 0x1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x79c]
push eax
push 0x20019
push 0
push dword [ebp - 0x7bc]
mov byte [ebp - 4], 3
push VariantInit
mov dword [ebp - 0x79c], 0
call esi
test eax, eax
je 0x41c09f
push eax
lea eax, [ebp - 0x790]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x798]
push str.specialFoldersFromReg_sid_error_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 4
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41bfe2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x798]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 7
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 8
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 7
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
jb 0x41c050
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x798]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c073
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7bc]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c096
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41cf10
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [ebp - 0x7bc]
push eax
lea eax, [ebp - 0x7b4]
push eax
mov dword [ebp - 0x79c], 0
call fcn.0040b790
add esp, 0xc
lea eax, [ebp - 0x79c]
push eax
push 0x20019
push 0
push dword [ebp - 0x7b4]
mov byte [ebp - 4], 9
push VariantInit
call esi
test eax, eax
je 0x41c1e2
push eax
lea eax, [ebp - 0x790]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x798]
push str.specialFoldersFromReg_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xc
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41c146
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x798]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0xd
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0xe
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0xd
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
jb 0x41c1b4
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x798]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c1d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7b4]
jmp 0x41c056
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov dword [ebp - 0x794], 0x410
mov dword [ebp - 0x7b8], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov esi, dword [ebp - 0x794]
shr esi, 1
mov byte [ebp - 4], 0xf
jns 0x41c224
push 0x80070057
call fcn.004044c0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x41c247
push esi
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov eax, dword [ebp - 0x78c]
lea ecx, [ebp - 0x794]
push ecx
push eax
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.AppData
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c315
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x10
call fcn.00443bf0
push str.AppDataFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x11
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x10
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41c315
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov ecx, dword [ebp - 0x78c]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea edx, [ecx - 0x10]
je 0x41c37e
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jge 0x41c35a
cmp dword [ecx - 8], 0
jge 0x41c340
push 0x80070057
call fcn.004044c0
mov dword [ecx - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x78c]
jmp 0x41c37e
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x41c36e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x78c], ecx
mov ebx, dword [0x521340]
mov esi, 0x15
lea edx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, edx
imul eax, ebx
cdq
idiv esi
cmp edx, 9
jne 0x41c3ff
mov dword [ebp - 0x794], 0
lea ebx, [ebp - 0x6a4]
lea ecx, [ecx]
mov eax, dword [0x521340]
xor esi, esi
inc esi
cdq
xor edi, edi
idiv esi
mov dword [ebp - 0x798], esi
mov dword [ebp - 0x790], edx
lea esp, [esp]
lea esi, [edi + 1]
mov edi, esi
cmp edi, 0xf
jl 0x41c3d0
mov esi, dword [ebp - 0x798]
mov eax, dword [0x521340]
add ebx, 0xf
cmp esi, 8
jl 0x41c3b7
mov eax, dword [ebp - 0x794]
inc eax
mov dword [ebp - 0x794], eax
cmp eax, 0xe
jl 0x41c3b0
mov edi, 1
mov dword [ebp - 0x794], 0x410
mov eax, dword [ecx - 8]
mov edx, edi
sub edx, dword [ecx - 4]
sub eax, 0x208
or eax, edx
jge 0x41c435
push 0x208
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov ecx, dword [ebp - 0x78c]
lea eax, [ebp - 0x794]
push eax
push ecx
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.Local_AppData
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c5d5
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x12
call fcn.00443bf0
push str.LocalAppDataFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x13
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x12
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41c50b
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
push str._temp
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x790]
push eax
call fcn.0040b790
add esp, 0xc
push eax
lea eax, [ebp - 0x6bc]
push eax
mov byte [ebp - 4], 0x14
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x15
call fcn.00443bf0
push str.temp
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x16
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x15
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
jb 0x41c592
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x6a8], 0xf
mov dword [ebp - 0x6ac], 0
mov byte [ebp - 0x6bc], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c5d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41c5d8
or ebx, 0xffffffff
mov eax, dword [ebp - 0x78c]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41c640
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41c61d
cmp dword [eax - 8], 0
jge 0x41c603
push 0x80070057
call fcn.004044c0
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x78c]
jmp 0x41c640
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41c630
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov dword [ebp - 0x794], 0x410
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
jge 0x41c672
push 0x208
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov eax, dword [ebp - 0x78c]
lea ecx, [ebp - 0x794]
push ecx
push eax
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c748
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x17
call fcn.00443bf0
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x18
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x17
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41c748
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov eax, dword [ebp - 0x78c]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41c7b0
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41c78d
cmp dword [eax - 8], 0
jge 0x41c773
push 0x80070057
call fcn.004044c0
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x78c]
jmp 0x41c7b0
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41c7a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov edx, dword [0x521340]
lea esi, [edx + 2]
lea ecx, [edx + 1]
imul esi, ecx
imul esi, edx
and esi, reloc.OLEAUT32.dll_VariantInit
jns 0x41c7cf
dec esi
or esi, 0xfffffff8
inc esi
cmp esi, 7
jne 0x41c7fb
push 4
call fcn.004a6c5d
add esp, 4
mov esi, eax
call fcn.004a8009
mov dword [esi], eax
push esi
mov dword [0x521340], eax
call fcn.004a6c2e
mov eax, dword [ebp - 0x78c]
add esp, 4
mov dword [ebp - 0x794], 0x410
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
jge 0x41c82d
push 0x208
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov eax, dword [ebp - 0x78c]
lea ecx, [ebp - 0x794]
push ecx
push eax
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.Personal
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c903
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x19
call fcn.00443bf0
push str.MyDocumentsFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x1a
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x19
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41c903
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov eax, dword [ebp - 0x78c]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41c96b
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41c948
cmp dword [eax - 8], 0
jge 0x41c92e
push 0x80070057
call fcn.004044c0
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x78c]
jmp 0x41c96b
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41c95b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov dword [ebp - 0x794], 0x410
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
jge 0x41c99d
push 0x208
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov eax, dword [ebp - 0x78c]
lea ecx, [ebp - 0x794]
push ecx
push eax
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.Desktop
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ca73
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x1b
call fcn.00443bf0
push str.DesktopFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x1c
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x1b
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41ca73
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov eax, dword [ebp - 0x78c]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41cadb
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41cab8
cmp dword [eax - 8], 0
jge 0x41ca9e
push 0x80070057
call fcn.004044c0
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x78c]
jmp 0x41cadb
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41cacb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov dword [ebp - 0x794], 0x410
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x208
or ecx, edi
jge 0x41cb0b
push 0x208
lea ecx, [ebp - 0x78c]
call fcn.00408680
mov eax, dword [ebp - 0x78c]
lea ecx, [ebp - 0x794]
push ecx
push eax
lea eax, [ebp - 0x7b8]
push eax
push 0
push str.My_Pictures
push dword [ebp - 0x79c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cbe1
mov eax, dword [ebp - 0x78c]
push dword [eax - 8]
push eax
call fcn.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x41c21a
mov ecx, dword [ebp - 0x78c]
cmp edx, dword [ecx - 8]
jg 0x41c21a
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x6bc]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x1d
call fcn.00443bf0
push str.PicturesFolder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x1e
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x1d
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0xf
jb 0x41cbe1
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov eax, dword [ebp - 0x78c]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41cc43
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41cc20
cmp dword [eax - 8], 0
jge 0x41cc0c
push 0x80070057
call fcn.004044c0
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x78c]
xor ecx, ecx
mov word [eax], cx
jmp 0x41cc43
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41cc33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
lea eax, [ebp - 0x790]
push eax
call fcn.00433c80
add esp, 4
push eax
lea eax, [ebp - 0x6bc]
push eax
mov byte [ebp - 4], 0x1f
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x20
call fcn.00443bf0
push str.ProgFiles32Folder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x21
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x20
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
jb 0x41ccbe
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
mov dword [ebp - 0x6a8], 0xf
mov dword [ebp - 0x6ac], 0
mov byte [ebp - 0x6bc], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ccfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00417900
test al, al
jne 0x41cd12
lea eax, [ebp - 0x788]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ebp - 0x790]
push eax
call fcn.00433e20
add esp, 4
push eax
lea eax, [ebp - 0x6bc]
push eax
mov byte [ebp - 4], 0x22
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x23
call fcn.00443bf0
push str.ProgFiles64Folder
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x24
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0x23
call fcn.00443ee0
cmp dword [ebp - 0x6a8], 0x10
jb 0x41cd8d
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x790]
add edx, 0xfffffff0
mov dword [ebp - 0x6a8], 0xf
mov dword [ebp - 0x6ac], 0
mov byte [ebp - 0x6bc], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cdcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0043eea0
lea ecx, [ebp - 0x7ac]
push eax
call fcn.00443dd0
push str.is64bitos
lea ecx, [ebp - 0x7cc]
mov byte [ebp - 4], 0x25
call fcn.00444170
lea ecx, [ebp - 0x7ac]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 0xf
call fcn.00443ee0
mov edx, dword [ebp - 0x78c]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ce30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7b4]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ce53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7bc]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cf09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41cf09
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6dc]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x2a
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x7b4], esi
lea eax, [ebp - 0x7cc]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x6dc]
mov byte [ebp - 4], 0x2b
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x2c
jb 0x41cf60
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x41cf7f
xor ecx, ecx
jmp 0x41cf9d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x790], eax
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cf90
sub ecx, dword [ebp - 0x790]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x798]
push eax
call fcn.0044ff60
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x2d
cmp edx, edi
je 0x41d01c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x41d007
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x41d007
push edx
call fcn.00404880
add esp, 4
mov dword [ebp - 0x790], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41cffc
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x790]
lea esi, [eax + 0x10]
mov dword [ebp - 0x7b4], esi
jmp 0x41d01c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x7b4]
call fcn.004097a0
mov esi, dword [ebp - 0x7b4]
mov edx, dword [ebp - 0x798]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2c
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d03f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x6a8], 0x10
mov byte [ebp - 4], 0x2b
jb 0x41d05a
push dword [ebp - 0x6bc]
call fcn.004a6c2e
add esp, 4
mov edi, dword [ebp - 0x7d0]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41d07b
call fcn.0040c350
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0x2a
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41d099
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x6c4], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x6dc], 0x4da4e4
jb 0x41d0be
push dword [ebp - 0x6d8]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x6dc]
mov dword [ebp - 0x6c4], 0xf
mov dword [ebp - 0x6c8], 0
mov byte [ebp - 0x6d8], 0
call fcn.00446040
lea ecx, [ebp - 0x7cc]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret