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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x424004]
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 0x40b9be
test ebx, ebx
jne 0x40b6ee
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b6ee
mov al, byte [ebp - 6]
cmp al, 3
je 0x40b9b8
cmp al, 2
je 0x40b9b8
push dword [0x4041ec]
mov edx, ebx
mov byte [ebp - 0x23d], 0
push 3
pop ecx
call fcn.0040ddcd
cmp dword [ebp + 8], 0
jne 0x40b747
push dword [0x4041d4]
mov edx, ebx
push 3
pop ecx
call fcn.0040ddcd
push dword [0x4041e4]
mov edx, ebx
push 3
pop ecx
call fcn.0040ddcd
push dword [0x4041f0]
xor edx, edx
test ebx, ebx
push 3
sete dl
pop ecx
call fcn.0040ddcd
mov ecx, ebx
call fcn.0040b5fe
test ebx, ebx
je 0x40b766
mov ecx, esi
call fcn.0040ac73
push esi
push 1
push ecx
push ecx
mov ecx, reloc.SHLWAPI.dll_ParseURLW
call fcn.00409b51
jmp 0x40b89e
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402978
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b7e4
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.00409a47
test eax, eax
jne 0x40b7d8
lea eax, [ebp - 0x20c]
push eax
push 0x402f5c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40b7d8
push eax
push 0x4021bc
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.0040aa9b
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.0040aa9b
push 1
push 1
push 4
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], esi
pop ecx
call fcn.0040aa9b
mov esi, 0x4033c0
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.0040ab06
mov esi, 0x4033a0
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, 0x4033e0
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.0040ab06
push 0x17
pop ecx
call fcn.0040ab56
mov ecx, 0x402d78
call fcn.0040bbcd
mov byte [ebp - 0x23d], 1
call fcn.00409ae0
test eax, eax
jne 0x40b96b
mov esi, SysReAllocStringLen
test ebx, ebx
je 0x40b8bd
call fcn.0040c3c8
test al, al
jne 0x40b937
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402978
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b937
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.00409a47
test eax, eax
jne 0x40b92b
lea eax, [ebp - 0x20c]
push eax
push 0x402f5c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40b92b
push eax
push 0x4021bc
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.0040b345
test ebx, ebx
je 0x40b956
mov edx, 0x402a74
call fcn.00409c3e
mov edx, 0x4028fc
call fcn.00409c3e
jmp 0x40b962
push 0x402ba0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
call fcn.00409a9f
jmp 0x40b97f
push 0x402800
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x23d], 0
je 0x40b998
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.0040ca77
test al, al
je 0x40b9b8
test ebx, ebx
jne 0x40b9b8
lea ecx, [ebp - 0x20c]
call fcn.0040bbcd
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 4