Function at 0x40a4c3
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
pop edi
push edi
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40a7f5
test ebx, ebx
jne 0x40a525
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a525
mov al, byte [ebp - 6]
cmp al, 3
je 0x40a7ef
cmp al, 2
je 0x40a7ef
push dword [0x403c28]
mov edx, ebx
mov byte [ebp - 0x23d], 0
push 3
pop ecx
call fcn.0040c842
cmp dword [ebp + 8], 0
jne 0x40a57e
push dword [0x403c10]
mov edx, ebx
push 3
pop ecx
call fcn.0040c842
push dword [0x403c20]
mov edx, ebx
push 3
pop ecx
call fcn.0040c842
push dword [0x403c2c]
xor edx, edx
test ebx, ebx
push 3
sete dl
pop ecx
call fcn.0040c842
mov ecx, ebx
call fcn.0040a435
test ebx, ebx
je 0x40a59d
mov ecx, esi
call fcn.00409ad7
push esi
push 1
push ecx
push ecx
mov ecx, reloc.SHLWAPI.dll_ParseURLW
call fcn.00408bc8
jmp 0x40a6d5
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402508
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a61b
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x244]
call fcn.00408ac0
test eax, eax
jne 0x40a60f
lea eax, [ebp - 0x20c]
push eax
push 0x402aec
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40a60f
push eax
push 0x401d54
push 1
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x19
mov ecx, edi
call fcn.004098f7
push 0x17
pop esi
push 1
push edi
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x24c], esi
mov ecx, edi
mov dword [ebp - 0x248], 6
call fcn.004098f7
push 1
push 1
push 4
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], esi
pop ecx
call fcn.004098f7
mov esi, 0x402e24
lea edi, [ebp - 0x21c]
push 0
push 1
lea edx, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409962
mov esi, 0x402e04
lea edi, [ebp - 0x23c]
push 1
push 2
lea edx, [ebp - 0x23c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x402e44
lea edi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409962
push 0x17
pop ecx
call fcn.004099af
mov ecx, 0x402908
call fcn.0040a985
mov byte [ebp - 0x23d], 1
call fcn.00408b56
test eax, eax
jne 0x40a7a2
mov esi, SysReAllocStringLen
test ebx, ebx
je 0x40a6f4
call fcn.0040b097
test al, al
jne 0x40a76e
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402508
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a76e
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x244]
call fcn.00408ac0
test eax, eax
jne 0x40a762
lea eax, [ebp - 0x20c]
push eax
push 0x402aec
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40a762
push eax
push 0x401d54
push 1
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040a17c
test ebx, ebx
je 0x40a78d
mov edx, 0x402604
call fcn.00408cb5
mov edx, 0x40248c
call fcn.00408cb5
jmp 0x40a799
push 0x402730
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
call fcn.00408b15
jmp 0x40a7b6
push 0x402390
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x23d], 0
je 0x40a7cf
xor eax, eax
push eax
push eax
push eax
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ecx
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040b515
test al, al
je 0x40a7ef
test ebx, ebx
jne 0x40a7ef
lea ecx, [ebp - 0x20c]
call fcn.0040a985
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce8b
mov esp, ebp
pop ebp
ret 4