Function at 0x409bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a01d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x608ec4]
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 dword [ebp - 4], 2
mov dword [ebp - 0x28], vtable.CRegistryEx.0
call fcn.00431e1a
mov ecx, eax
test ecx, ecx
je 0x409e65
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], SysReAllocString
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add esp, 4
lea esi, [eax + 0x10]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or edi, 0xffffffff
mov dword [ebp - 0x24], eax
add esi, 0xfffffff0
mov dword [ebp - 0x1c], 0
test eax, eax
mov dword [ebp - 0x20], 0
mov eax, edi
je 0x409cef
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409ca4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add esp, 4
lea esi, [eax + 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esi, 0xfffffff0
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409d01
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004039d0
add eax, 0x10
lea ecx, [ebp - 0x28]
mov dword [esi], eax
call fcn.00409410
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004039d0
mov ebx, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov esi, dword [eax - 0xc]
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x2c], eax
call fcn.0042545e
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.005720f0
push esi
push dword [ebp - 0x30]
push edi
call fcn.00571b70
add esp, 0x20
lea eax, [esi + 1]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x2c]
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
call fcn.00425467
mov edx, dword [ebp - 0x30]
or ebx, 0xffffffff
add esp, 4
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409db2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], vtable.CRegistryEx.0
test eax, eax
je 0x409dd2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409dec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409e0a
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 + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409e28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x409e47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0056ee93
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00403680
int3