Function at 0x40b515
Capabilities:
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 0x40b847
test ebx, ebx
jne 0x40b577
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b577
mov al, byte [ebp - 6]
cmp al, 3
je 0x40b841
cmp al, 2
je 0x40b841
push dword [0x404098]
mov edx, ebx
mov byte [ebp - 0x23d], 0
push 3
pop ecx
call fcn.0040db6d
cmp dword [ebp + 8], 0
jne 0x40b5d0
push dword [0x404070]
mov edx, ebx
push 3
pop ecx
call fcn.0040db6d
push dword [0x404080]
mov edx, ebx
push 3
pop ecx
call fcn.0040db6d
push dword [0x40409c]
xor edx, edx
test ebx, ebx
push 3
sete dl
pop ecx
call fcn.0040db6d
mov ecx, ebx
call fcn.0040b487
test ebx, ebx
je 0x40b5ef
mov ecx, esi
call fcn.0040ab0b
push esi
push 1
push ecx
push ecx
mov ecx, reloc.SHLWAPI.dll_ParseURLW
call fcn.004099e9
jmp 0x40b727
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402958
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b66d
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.004098df
test eax, eax
jne 0x40b661
lea eax, [ebp - 0x20c]
push eax
push 0x402f3c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40b661
push eax
push 0x4021a0
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.0040a933
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.0040a933
push 1
push 1
push 4
lea edx, [ebp - 0x248]
mov dword [ebp - 0x248], esi
pop ecx
call fcn.0040a933
mov esi, 0x403270
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.0040a99e
mov esi, 0x403250
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, 0x403290
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.0040a99e
push 0x17
pop ecx
call fcn.0040a9ee
mov ecx, 0x402d58
call fcn.0040ba56
mov byte [ebp - 0x23d], 1
call fcn.00409978
test eax, eax
jne 0x40b7f4
mov esi, SysReAllocStringLen
test ebx, ebx
je 0x40b746
call fcn.0040c251
test al, al
jne 0x40b7c0
lea eax, [ebp - 0x244]
push eax
push 3
push 0
push 0x402958
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b7c0
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.004098df
test eax, eax
jne 0x40b7b4
lea eax, [ebp - 0x20c]
push eax
push 0x402f3c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40b7b4
push eax
push 0x4021a0
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.0040b1ce
test ebx, ebx
je 0x40b7df
mov edx, 0x402a54
call fcn.00409ad6
mov edx, 0x4028dc
call fcn.00409ad6
jmp 0x40b7eb
push 0x402b80
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
call fcn.00409937
jmp 0x40b808
push 0x4027e0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x23d], 0
je 0x40b821
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.0040c817
test al, al
je 0x40b841
test ebx, ebx
jne 0x40b841
lea ecx, [ebp - 0x20c]
call fcn.0040ba56
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 4