Function at 0x41c330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f6d3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
call fcn.00420fc0
mov byte [ebp - 4], 2
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00431a70
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00431a70
lea eax, [ebp + 8]
mov edx, str.SoftwarePhotoViewerReportoffline_
push eax
lea ecx, [ebp - 0x80]
call fcn.0041f910
add esp, 4
mov byte [ebp - 4], 3
lea edx, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
cmovae edx, dword [ebp - 0x80]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x90], 0xf
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp byte [edx], 0
jne 0x41c3f0
xor ecx, ecx
jmp 0x41c3fe
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c3f5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00420210
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa4]
push 0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], 0x80000001
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.004204e0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x41c46b
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.0040e120
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
xor edi, edi
xor edx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x30], eax
jbe 0x41c5b9
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
cmp eax, edi
jae 0x41c540
cmp ecx, eax
ja 0x41c540
sub eax, ecx
mov dword [ebp - 0x84], eax
cmp edi, edx
jne 0x41c537
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x41c531
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x41c651
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x88], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x88]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0041f710
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x84]
test edi, edi
je 0x41c59d
mov al, byte [ecx + eax]
jmp 0x41c59b
cmp edi, edx
jne 0x41c595
mov eax, edx
sub eax, edi
cmp eax, 1
jae 0x41c58f
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x41c651
sub edx, ecx
sub edi, ecx
mov eax, edx
mov dword [ebp - 0x88], edx
shr eax, 1
inc edi
mov ecx, eax
add eax, edx
not ecx
xor edx, edx
cmp ecx, dword [ebp - 0x88]
lea ecx, [ebp - 0x28]
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0041f710
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x84]
test edi, edi
je 0x41c59d
mov al, byte [eax]
mov byte [edi], al
mov eax, dword [ebp - 0x8c]
inc edi
inc eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x30], eax
ja 0x41c4b5
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x8c], edx
cmp dword [ebp + 0x30], edx
jbe 0x41c6d2
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
cmp eax, esi
jae 0x41c65b
cmp edx, eax
ja 0x41c65b
sub eax, edx
mov dword [ebp - 0x88], eax
cmp esi, ecx
jne 0x41c648
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x41c642
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x41c651
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x84], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x84]
not ecx
cmp ecx, dword [ebp - 0x84]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0041f710
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x88]
test esi, esi
je 0x41c6b8
mov al, byte [edx + eax]
jmp 0x41c6b6
push str.vector_T__too_long
call fcn.0043842e
cmp esi, ecx
jne 0x41c6b0
mov eax, ecx
sub eax, esi
cmp eax, 1
jae 0x41c6aa
mov eax, edx
sub eax, esi
dec eax
cmp eax, 1
jb 0x41c651
sub ecx, edx
sub esi, edx
mov eax, ecx
mov dword [ebp - 0x84], ecx
shr eax, 1
inc esi
mov ecx, eax
xor edx, edx
add eax, dword [ebp - 0x84]
not ecx
cmp ecx, dword [ebp - 0x84]
lea ecx, [ebp - 0x1c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.0041f710
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x88]
test esi, esi
je 0x41c6b8
mov al, byte [eax]
mov byte [esi], al
mov edx, dword [ebp - 0x8c]
inc esi
inc edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x8c], edx
cmp dword [ebp + 0x30], edx
ja 0x41c5ca
push 4
push str.code
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
call fcn.00420210
lea ecx, [ebp - 0x68]
call fcn.004332f0
test al, al
je 0x41c734
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xa4]
sub edi, ecx
cmp dword [ebp - 0x90], 0x10
push edi
cmovae eax, dword [ebp - 0xa4]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x41c751
push 1
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.00402b00
add esp, 0xc
push 4
push str.path
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
call fcn.00420210
lea ecx, [ebp - 0x68]
call fcn.004332f0
test al, al
je 0x41c7b3
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xa4]
sub esi, ecx
cmp dword [ebp - 0x90], 0x10
push esi
cmovae eax, dword [ebp - 0xa4]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x41c7d0
push 1
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.00402b00
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.0041f410
lea ecx, [ebp - 0x28]
call fcn.0041f410
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41c7f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x41c80c
push 1
inc eax
push eax
push dword [ebp - 0x64]
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp eax, 0x10
jb 0x41c835
push 1
inc eax
push eax
push dword [ebp - 0x80]
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp eax, 0x10
jb 0x41c85e
push 1
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x41c887
push 1
inc eax
push eax
push dword [ebp + 8]
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x41c8ae
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040e120
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret