Function at 0x4099f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4555e8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x47f060]
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 esi, edx
mov eax, ecx
mov dword [ebp - 0x38], eax
xor edi, edi
push eax
mov edx, str.SOFTWARE_
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00411570
add esp, 4
mov dword [ebp - 4], edi
call fcn.0042da20
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x409aab
push dword [ebp - 0x38]
mov edx, str.SOFTWAREWow6432Node_
lea ecx, [ebp - 0x50]
call fcn.00411570
mov edi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, edi
je 0x409a98
cmp dword [ebp - 0x14], 8
jb 0x409a7b
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004066d0
cmp dword [ebp - 0x3c], 8
jb 0x409aa6
push dword [ebp - 0x50]
call ebx
add esp, 4
mov edi, 0x200
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
or edi, 0xf003f
push edi
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409cd1
push 0x45ebf0
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.00411480
mov edi, eax
add esp, 4
cmp esi, edi
je 0x409b5e
cmp dword [esi + 0x14], 8
jb 0x409b06
push dword [esi]
call ebx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x409b35
mov eax, dword [edi + 0x10]
inc eax
je 0x409b3f
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x409b3f
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0x3c], 8
jb 0x409b6c
push dword [ebp - 0x50]
call ebx
add esp, 4
push 1
xor eax, eax
push 0x45ebf0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
call fcn.00406c00
mov byte [ebp - 4], 1
push 2
xor eax, eax
push 0x45d3c0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00406c00
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0042caa0
mov edi, eax
add esp, 8
cmp esi, edi
je 0x409c3a
cmp dword [esi + 0x14], 8
jb 0x409be2
push dword [esi]
call ebx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x409c11
mov eax, dword [edi + 0x10]
inc eax
je 0x409c1b
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x409c1b
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0x3c], 8
jb 0x409c48
push dword [ebp - 0x50]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x54], 8
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x409c6a
push dword [ebp - 0x68]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
jb 0x409c8c
push dword [ebp - 0x80]
call ebx
add esp, 4
mov ecx, esi
call fcn.00406d60
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x409ca0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ca0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
mov ecx, esi
call fcn.00406d60
push eax
push 1
push 0
push 0x45d188
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x409cdf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x409ced
push dword [ebp - 0x28]
call ebx
add esp, 4
mov al, byte [ebp - 0x31]
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.00452076
mov esp, ebp
pop ebp
ret