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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x45b070]
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.0040c0a2
test eax, eax
jne 0x407818
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 0x40752b
cmp dword [ebp - 0x658], 0xa
jne 0x407518
mov edx, str.__1_
lea ecx, [ebp - 0x20c]
call fcn.0040b955
test eax, eax
jne 0x40752b
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 0x407812
lea eax, [ebp - 0x624]
mov edx, str.ShellEx
push eax
lea eax, [ebp - 0x650]
mov ecx, edi
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x407812
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.0040c0a2
test eax, eax
jne 0x407812
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 0x4075f9
cmp dword [ebp - 0x65c], 0x4e
jne 0x4075f5
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
lea ecx, [ebp - 0x414]
call fcn.0040b955
test eax, eax
jne 0x4075f9
mov bl, 1
jmp 0x4075ff
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 0x40780e
lea eax, [ebp - 0x624]
mov edx, 0x434390
push eax
lea eax, [ebp - 0x64c]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040c0a2
test eax, eax
jne 0x40780e
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.0040c0a2
test eax, eax
jne 0x40780e
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.0040c0a2
test eax, eax
jne 0x40780e
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.0040c0a2
test eax, eax
jne 0x40780e
cmp byte [ebp - 0x626], al
je 0x407714
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.0040c0a2
test eax, eax
jne 0x40780e
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 0x40780e
test bl, bl
je 0x40778b
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.0040c0a2
test eax, eax
jne 0x40780e
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.0040c0a2
test eax, eax
jne 0x40780e
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 0x40780e
cmp dword [ebp - 0x668], edi
jne 0x407809
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.0040c0a2
test eax, eax
jne 0x40780e
push 1
lea ecx, [ebp - 0x61c]
call fcn.0040a131
test eax, eax
je 0x40780e
lea ecx, [ebp - 0x61c]
call fcn.0040b82d
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 0x40780e
push 0x12
push str.Apartment
push 1
push edi
push str.ThreadingModel
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x40780e
xor ebx, ebx
inc ebx
jmp 0x40781a
mov ebx, edi
jmp 0x40781a
mov ebx, dword [ebp - 0x620]
xor edi, edi
cmp dword [ebp - 0x62c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407831
push dword [ebp - 0x62c]
call esi
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], edi
je 0x407848
push dword [ebp - 0x63c]
call esi
cmp dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], edi
je 0x40785f
push dword [ebp - 0x640]
call esi
cmp dword [ebp - 0x644], 0
mov dword [ebp - 0x640], edi
je 0x407876
push dword [ebp - 0x644]
call esi
cmp dword [ebp - 0x630], 0
mov dword [ebp - 0x644], edi
je 0x40788d
push dword [ebp - 0x630]
call esi
cmp dword [ebp - 0x648], 0
mov dword [ebp - 0x630], edi
je 0x4078a4
push dword [ebp - 0x648]
call esi
cmp dword [ebp - 0x634], 0
mov dword [ebp - 0x648], edi
je 0x4078bb
push dword [ebp - 0x634]
call esi
cmp dword [ebp - 0x64c], 0
mov dword [ebp - 0x634], edi
je 0x4078d2
push dword [ebp - 0x64c]
call esi
cmp dword [ebp - 0x638], 0
mov dword [ebp - 0x64c], edi
je 0x4078e9
push dword [ebp - 0x638]
call esi
cmp dword [ebp - 0x650], 0
mov dword [ebp - 0x638], edi
je 0x407900
push dword [ebp - 0x650]
call esi
cmp dword [ebp - 0x654], 0
mov dword [ebp - 0x650], edi
je 0x407917
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.0042d667
leave
ret 4