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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x462074]
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.0040c622
test eax, eax
jne 0x407943
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 0x407656
cmp dword [ebp - 0x658], 0xa
jne 0x407643
mov edx, str.__1_
lea ecx, [ebp - 0x20c]
call fcn.0040be37
test eax, eax
jne 0x407656
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 0x40793d
lea eax, [ebp - 0x624]
mov edx, str.ShellEx
push eax
lea eax, [ebp - 0x650]
mov ecx, edi
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x40793d
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.0040c622
test eax, eax
jne 0x40793d
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 0x407724
cmp dword [ebp - 0x65c], 0x4e
jne 0x407720
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
lea ecx, [ebp - 0x414]
call fcn.0040be37
test eax, eax
jne 0x407724
mov bl, 1
jmp 0x40772a
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 0x407939
lea eax, [ebp - 0x624]
mov edx, 0x438360
push eax
lea eax, [ebp - 0x64c]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040c622
test eax, eax
jne 0x407939
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.0040c622
test eax, eax
jne 0x407939
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.0040c622
test eax, eax
jne 0x407939
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.0040c622
test eax, eax
jne 0x407939
cmp byte [ebp - 0x626], al
je 0x40783f
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.0040c622
test eax, eax
jne 0x407939
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 0x407939
test bl, bl
je 0x4078b6
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.0040c622
test eax, eax
jne 0x407939
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.0040c622
test eax, eax
jne 0x407939
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 0x407939
cmp dword [ebp - 0x668], edi
jne 0x407934
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.0040c622
test eax, eax
jne 0x407939
push 1
lea ecx, [ebp - 0x61c]
call fcn.0040a130
test eax, eax
je 0x407939
lea ecx, [ebp - 0x61c]
call fcn.0040bd8c
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 0x407939
push 0x12
push str.Apartment
push 1
push edi
push str.ThreadingModel
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x407939
xor ebx, ebx
inc ebx
jmp 0x407945
mov ebx, edi
jmp 0x407945
mov ebx, dword [ebp - 0x620]
xor edi, edi
cmp dword [ebp - 0x62c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40795c
push dword [ebp - 0x62c]
call esi
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], edi
je 0x407973
push dword [ebp - 0x63c]
call esi
cmp dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], edi
je 0x40798a
push dword [ebp - 0x640]
call esi
cmp dword [ebp - 0x644], 0
mov dword [ebp - 0x640], edi
je 0x4079a1
push dword [ebp - 0x644]
call esi
cmp dword [ebp - 0x630], 0
mov dword [ebp - 0x644], edi
je 0x4079b8
push dword [ebp - 0x630]
call esi
cmp dword [ebp - 0x648], 0
mov dword [ebp - 0x630], edi
je 0x4079cf
push dword [ebp - 0x648]
call esi
cmp dword [ebp - 0x634], 0
mov dword [ebp - 0x648], edi
je 0x4079e6
push dword [ebp - 0x634]
call esi
cmp dword [ebp - 0x64c], 0
mov dword [ebp - 0x634], edi
je 0x4079fd
push dword [ebp - 0x64c]
call esi
cmp dword [ebp - 0x638], 0
mov dword [ebp - 0x64c], edi
je 0x407a14
push dword [ebp - 0x638]
call esi
cmp dword [ebp - 0x650], 0
mov dword [ebp - 0x638], edi
je 0x407a2b
push dword [ebp - 0x650]
call esi
cmp dword [ebp - 0x654], 0
mov dword [ebp - 0x650], edi
je 0x407a42
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.0043182e
leave
ret 4