Function at 0x412ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e070
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x80], edi
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
push ebx
lea ecx, [ebp - 0x74]
call fcn.00404e80
push eax
mov edx, str.SoftwareClasses_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0041c710
add esp, 4
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x412b7c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412b78
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412b78
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412b7c
mov ecx, edx
call esi
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412b81
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0x5a3e2c
push dword [ebp - 0x78]
push SysReAllocStringLen
call esi
mov ecx, ebx
call fcn.004126c0
test eax, eax
je 0x412bc0
mov edx, edi
mov ecx, ebx
call fcn.004129b0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bc5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0x5a3e2c
push dword [ebp - 0x78]
push SysReAllocStringLen
call esi
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x412c1a
test edi, edi
je 0x412c1a
lea eax, [ebp - 0x70]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00458cf0
add esp, 4
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x412c2f
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412c44
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x412c46
call edx
add eax, 0x10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
mov ebx, 0x5a6530
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push dword [ebx]
push eax
call fcn.00420620
mov esi, dword [ebp - 0x74]
add esp, 8
mov edx, esi
call fcn.0040a3b0
xor eax, eax
mov dword [ebp - 0x44], 7
add esp, 4
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edi], ax
jne 0x412c90
xor ecx, ecx
jmp 0x412ca4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c95
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.0041d550
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
push 6
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.ProgId
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0041d550
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x412cf6
xor ecx, ecx
jmp 0x412d0f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0041d550
push ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
call fcn.0040a6c0
mov byte [ebp - 4], 6
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412d88
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x41302c
add eax, eax
cmp eax, 0x1000
jb 0x412d7f
test cl, 0x1f
jne 0x41302c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41302c
sub ecx, eax
cmp ecx, 4
jb 0x41302c
cmp ecx, 0x23
ja 0x41302c
mov ecx, eax
push ecx
call fcn.005221dc
add esp, 4
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x412df3
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x41302c
add eax, eax
cmp eax, 0x1000
jb 0x412dea
test cl, 0x1f
jne 0x41302c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41302c
sub ecx, eax
cmp ecx, 4
jb 0x41302c
cmp ecx, 0x23
ja 0x41302c
mov ecx, eax
push ecx
call fcn.005221dc
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x412e5e
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
ja 0x41302c
add eax, eax
cmp eax, 0x1000
jb 0x412e55
test cl, 0x1f
jne 0x41302c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41302c
sub ecx, eax
cmp ecx, 4
jb 0x41302c
cmp ecx, 0x23
ja 0x41302c
mov ecx, eax
push ecx
call fcn.005221dc
add esp, 4
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov dword [ebp - 0x44], 7
cmovae edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x412e86
xor ecx, ecx
jmp 0x412ea2
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e90
sub ecx, edi
mov edi, dword [ebp - 0x80]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0041d550
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push 4
xor eax, eax
mov dword [ebp - 0x14], 7
push str.Hash
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041d550
mov byte [ebp - 4], 9
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [esi], ax
jne 0x412ef4
xor ecx, ecx
jmp 0x412f0f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0041d550
push ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
call fcn.0040a6c0
mov byte [ebp - 4], 9
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x412f88
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x41302c
add eax, eax
cmp eax, 0x1000
jb 0x412f7f
test cl, 0x1f
jne 0x41302c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41302c
sub ecx, eax
cmp ecx, 4
jb 0x41302c
cmp ecx, 0x23
ja 0x41302c
mov ecx, eax
push ecx
call fcn.005221dc
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x412fb1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041fce0
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x412fde
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0041fce0
add ebx, 4
cmp ebx, 0x5a6540
jl 0x412c55
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413033
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x413031
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x413031
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x413033
call fcn.00531451
call edx
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x413048
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0041fce0
xor eax, eax
mov dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00404e00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret