Function at 0x418960
Capabilities:
Check os version
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d19
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x47a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 1
jl 0x4189af
cmp word [eax], 0x22
jne 0x4189af
push ecx
push 0
lea ecx, [ebp + 8]
call fcn.00418fa0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
cmp edx, 1
jl 0x4189d3
lea ecx, [edx - 1]
cmp ecx, edx
jg 0x418d70
cmp word [eax + ecx*2], 0x22
jne 0x4189d3
push ecx
push ecx
lea ecx, [ebp + 8]
call fcn.00418fa0
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x418d7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x418d7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x418d7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x418d7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x30]
add esi, 0xfffffff0
lea edx, [eax - 0x10]
mov dword [ebp - 0x14], edx
cmp edx, esi
je 0x418a99
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x418a8d
mov edx, dword [edx]
cmp edx, dword [esi]
jne 0x418a8d
mov ecx, dword [ebp - 0x14]
call fcn.00405cd0
mov dword [ebp - 0x14], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x418a85
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x418a99
push dword [eax - 0xc]
lea ecx, [ebp - 0x30]
push eax
call fcn.004058c0
push 0x47015c
push str.orun___f
lea eax, [ebp - 0x28]
push str._aut_srom__t_s
push eax
call fcn.00405a50
mov ecx, dword [0x47cfec]
add esp, 0x10
test cl, 1
jne 0x418af9
or ecx, 1
mov dword [0x47cfec], ecx
push 0x64
push 0
push 0x47cf88
mov byte [ebp - 4], 2
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [0x47cfec]
mov edx, dword [0x47cfcc]
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
lea edi, [edx - 0x10]
cmp edi, esi
je 0x418b51
cmp dword [esi + 0xc], 0
jl 0x418b3f
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x418b3f
mov ecx, edi
call fcn.00405cd0
mov edi, eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418b37
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x24], eax
jmp 0x418b4b
push dword [edx - 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.004058c0
mov ecx, dword [0x47cfec]
mov dword [ebp - 0x20], 5
test cl, 1
jne 0x418b91
or ecx, 1
mov dword [0x47cfec], ecx
push 0x64
push 0
push 0x47cf88
mov byte [ebp - 4], 3
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [0x47cfc8]
lea ecx, [ecx - 0x10]
call fcn.00405cd0
mov dword [ebp - 0x14], eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
mov esi, dword [0x47d00c]
test esi, esi
jne 0x418bd1
push 4
call fcn.00437bbc
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [0x47d00c], esi
mov dword [esi], vtable.CAutoRunManager.0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x10], 0
je 0x418c38
mov eax, dword [0x47ab34]
cmp eax, 0xffffffff
jne 0x418c14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x418bfb
mov dword [0x47ab34], 1
jmp 0x418c18
lea eax, [ebp - 0x30]
mov dword [0x47ab34], 0
push eax
push edi
call fcn.004281b0
jmp 0x418cb3
test eax, eax
je 0x418c2c
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push edi
call fcn.00427170
test eax, eax
jne 0x418cb3
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.004281b0
jmp 0x418cb3
push edi
call fcn.00427f50
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x418d7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x470af0
push str.Windows
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 6
push str.SoftwareMicrosoft_sCurrentVersion_s
push eax
call fcn.00405a50
mov esi, dword [ebp - 0x10]
add esp, 0x10
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push esi
push SysReAllocString
call edi
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418cb3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418cec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x418d59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401920
push 0x80004005
call fcn.00401920
int3