Function at 0x406eb5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x668], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x664], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x62c], eax
mov byte [ebp - 0x626], al
mov byte [ebp - 0x625], al
mov dword [ebp - 0x660], eax
mov eax, 0x104
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x654]
push eax
sub esp, 0x14
mov dword [ebp - 0x620], ebx
mov edx, str.DefaultIcon
call fcn.0040bb2f
test eax, eax
jne 0x4072cf
movzx eax, byte [ebp - 0x20c]
xor ecx, ecx
cmp dword [ebp - 0x624], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmove eax, ecx
xor esi, esi
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push esi
push esi
push dword [ebp - 0x654]
call ebx
test eax, eax
jne 0x406fe2
cmp dword [ebp - 0x658], 0xa
jne 0x406fcf
mov edx, str.__1_
lea ecx, [ebp - 0x20c]
call fcn.0040b3de
test eax, eax
jne 0x406fe2
mov eax, dword [ebp - 0x624]
mov dword [ebp - 0x660], eax
mov byte [ebp - 0x626], 1
push 8
push str.__1_
push 1
push esi
push esi
push dword [ebp - 0x654]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
test eax, eax
jne 0x4072c9
lea eax, [ebp - 0x624]
mov edx, str.ShellEx
push eax
lea eax, [ebp - 0x650]
mov ecx, edi
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c9
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x638]
mov edx, str.IconHandler
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c9
movzx eax, byte [ebp - 0x414]
xor ecx, ecx
cmp dword [ebp - 0x624], 1
cmove eax, ecx
xor edi, edi
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push edi
push dword [ebp - 0x638]
call ebx
test eax, eax
jne 0x4070b0
cmp dword [ebp - 0x65c], 0x4e
jne 0x4070ac
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
lea ecx, [ebp - 0x414]
call fcn.0040b3de
test eax, eax
jne 0x4070b0
mov bl, 1
jmp 0x4070b6
mov bl, byte [ebp - 0x625]
push 0x4c
push str.42042206_2D85_11D3_8CFF_005004838597
push 1
push edi
push edi
push dword [ebp - 0x638]
call esi
test eax, eax
jne 0x4072c5
lea eax, [ebp - 0x624]
mov edx, 0x41c290
push eax
lea eax, [ebp - 0x64c]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x634]
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x648]
mov edx, str.Old_Icon
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
mov edx, dword [ebp - 0x664]
lea eax, [ebp - 0x624]
mov ecx, dword [ebp - 0x648]
push eax
lea eax, [ebp - 0x630]
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
cmp byte [ebp - 0x626], al
je 0x4071cb
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x644]
mov edx, str.DefaultIcon
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
push dword [ebp - 0x658]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x660]
push edi
push edi
push dword [ebp - 0x644]
call esi
test eax, eax
jne 0x4072c5
test bl, bl
je 0x407242
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x640]
mov edx, str.ShellEx
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
mov ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x63c]
mov edx, str.IconHandler
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
push dword [ebp - 0x65c]
lea eax, [ebp - 0x414]
push eax
push 1
push edi
push edi
push dword [ebp - 0x63c]
call esi
test eax, eax
jne 0x4072c5
cmp dword [ebp - 0x668], edi
jne 0x4072c0
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x62c]
mov edx, str.InprocServer32
push eax
sub esp, 0x14
call fcn.0040bb2f
test eax, eax
jne 0x4072c5
push 1
lea ecx, [ebp - 0x61c]
call fcn.00409c60
test eax, eax
je 0x4072c5
lea ecx, [ebp - 0x61c]
call fcn.0040b2d4
add eax, eax
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push edi
push edi
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x4072c5
push 0x12
push str.Apartment
push 1
push edi
push str.ThreadingModel
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x4072c5
xor ebx, ebx
inc ebx
jmp 0x4072d1
mov ebx, edi
jmp 0x4072d1
mov ebx, dword [ebp - 0x620]
xor edi, edi
cmp dword [ebp - 0x62c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4072e8
push dword [ebp - 0x62c]
call esi
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], edi
je 0x4072ff
push dword [ebp - 0x63c]
call esi
cmp dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], edi
je 0x407316
push dword [ebp - 0x640]
call esi
cmp dword [ebp - 0x644], 0
mov dword [ebp - 0x640], edi
je 0x40732d
push dword [ebp - 0x644]
call esi
cmp dword [ebp - 0x630], 0
mov dword [ebp - 0x644], edi
je 0x407344
push dword [ebp - 0x630]
call esi
cmp dword [ebp - 0x648], 0
mov dword [ebp - 0x630], edi
je 0x40735b
push dword [ebp - 0x648]
call esi
cmp dword [ebp - 0x634], 0
mov dword [ebp - 0x648], edi
je 0x407372
push dword [ebp - 0x634]
call esi
cmp dword [ebp - 0x64c], 0
mov dword [ebp - 0x634], edi
je 0x407389
push dword [ebp - 0x64c]
call esi
cmp dword [ebp - 0x638], 0
mov dword [ebp - 0x64c], edi
je 0x4073a0
push dword [ebp - 0x638]
call esi
cmp dword [ebp - 0x650], 0
mov dword [ebp - 0x638], edi
je 0x4073b7
push dword [ebp - 0x650]
call esi
cmp dword [ebp - 0x654], 0
mov dword [ebp - 0x650], edi
je 0x4073ce
push dword [ebp - 0x654]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416bd0
mov esp, ebp
pop ebp
ret 4