Function at 0x4085a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4440d1
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
call fcn.0041ff50
mov ecx, 0x200
test al, al
cmovne esi, ecx
or esi, 0xf003f
push esi
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov byte [ebp - 0x638], 0
call fcn.00422490
mov dword [ebp - 4], 0
cmp dword [ebp - 0x640], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4088a7
cmp dword [edi + 0x14], 8
jb 0x40863c
mov eax, dword [edi]
jmp 0x40863e
mov eax, edi
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push esi
push 0
push 0
push 0
push eax
push dword [ebp - 0x640]
mov dword [ebp - 0x65c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x408682
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x63c], 0
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x40868f
push eax
call ebx
mov eax, dword [ebp - 0x65c]
push edi
mov edx, str.SOFTWARE_
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x640], eax
call fcn.0040d300
add esp, 4
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x634]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov byte [ebp - 0x62c], 0
call fcn.00422490
mov byte [ebp - 4], 2
cmp dword [ebp - 0x634], 0
je 0x40885d
call fcn.0040dde0
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x408710
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408715
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x44a064
push dword [ebp - 0x634]
call esi
call fcn.0040dde0
cmp dword [eax + 0x5c], 8
lea edx, [eax + 0x48]
jb 0x408754
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408760
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.channel
push dword [ebp - 0x634]
call esi
push 0xc
push str.yacum
push 1
push 0
push 0x44bb74
push dword [ebp - 0x634]
call esi
xor eax, eax
push 0x616
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov edx, 0x30c
lea ecx, [ebp - 0x628]
call fcn.0042a5d0
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
jmp 0x4087e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4087e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push 0
push str.guid
push dword [ebp - 0x634]
call esi
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x40882a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x630], 0
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x408841
push eax
call ebx
mov dword [ebp - 0x634], 0
cmp dword [ebp - 0x644], 8
jb 0x408859
push dword [ebp - 0x658]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov bl, 1
jmp 0x4088a9
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x40888f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x630], 0
test eax, eax
je 0x40888f
push eax
call ebx
mov dword [ebp - 0x634], 0
cmp dword [ebp - 0x644], 8
jb 0x4088a7
push dword [ebp - 0x658]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor bl, bl
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x4088c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x63c], 0
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x4088d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret