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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x468080]
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.0040c24b
test eax, eax
jne 0x4077a7
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 0x4074ba
cmp dword [ebp - 0x658], 0xa
jne 0x4074a7
mov edx, str.__1_
lea ecx, [ebp - 0x20c]
call fcn.0040ba62
test eax, eax
jne 0x4074ba
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 0x4077a1
lea eax, [ebp - 0x624]
mov edx, str.ShellEx
push eax
lea eax, [ebp - 0x650]
mov ecx, edi
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x4077a1
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.0040c24b
test eax, eax
jne 0x4077a1
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 0x407588
cmp dword [ebp - 0x65c], 0x4e
jne 0x407584
mov edx, str.42042206_2D85_11D3_8CFF_005004838597
lea ecx, [ebp - 0x414]
call fcn.0040ba62
test eax, eax
jne 0x407588
mov bl, 1
jmp 0x40758e
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 0x40779d
lea eax, [ebp - 0x624]
mov edx, 0x43d2e0
push eax
lea eax, [ebp - 0x64c]
mov ecx, Ordinal_1
push eax
sub esp, 0x14
call fcn.0040c24b
test eax, eax
jne 0x40779d
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.0040c24b
test eax, eax
jne 0x40779d
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.0040c24b
test eax, eax
jne 0x40779d
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.0040c24b
test eax, eax
jne 0x40779d
cmp byte [ebp - 0x626], al
je 0x4076a3
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.0040c24b
test eax, eax
jne 0x40779d
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 0x40779d
test bl, bl
je 0x40771a
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.0040c24b
test eax, eax
jne 0x40779d
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.0040c24b
test eax, eax
jne 0x40779d
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 0x40779d
cmp dword [ebp - 0x668], edi
jne 0x407798
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.0040c24b
test eax, eax
jne 0x40779d
push 1
lea ecx, [ebp - 0x61c]
call fcn.00409f33
test eax, eax
je 0x40779d
lea ecx, [ebp - 0x61c]
call fcn.0040b9b7
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 0x40779d
push 0x12
push str.Apartment
push 1
push edi
push str.ThreadingModel
push dword [ebp - 0x62c]
call esi
test eax, eax
jne 0x40779d
xor ebx, ebx
inc ebx
jmp 0x4077a9
mov ebx, edi
jmp 0x4077a9
mov ebx, dword [ebp - 0x620]
xor edi, edi
cmp dword [ebp - 0x62c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4077c0
push dword [ebp - 0x62c]
call esi
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], edi
je 0x4077d7
push dword [ebp - 0x63c]
call esi
cmp dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], edi
je 0x4077ee
push dword [ebp - 0x640]
call esi
cmp dword [ebp - 0x644], 0
mov dword [ebp - 0x640], edi
je 0x407805
push dword [ebp - 0x644]
call esi
cmp dword [ebp - 0x630], 0
mov dword [ebp - 0x644], edi
je 0x40781c
push dword [ebp - 0x630]
call esi
cmp dword [ebp - 0x648], 0
mov dword [ebp - 0x630], edi
je 0x407833
push dword [ebp - 0x648]
call esi
cmp dword [ebp - 0x634], 0
mov dword [ebp - 0x648], edi
je 0x40784a
push dword [ebp - 0x634]
call esi
cmp dword [ebp - 0x64c], 0
mov dword [ebp - 0x634], edi
je 0x407861
push dword [ebp - 0x64c]
call esi
cmp dword [ebp - 0x638], 0
mov dword [ebp - 0x64c], edi
je 0x407878
push dword [ebp - 0x638]
call esi
cmp dword [ebp - 0x650], 0
mov dword [ebp - 0x638], edi
je 0x40788f
push dword [ebp - 0x650]
call esi
cmp dword [ebp - 0x654], 0
mov dword [ebp - 0x650], edi
je 0x4078a6
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.004370bb
leave
ret 4