Function at 0x40f490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab8e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x567680]
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
or edi, 0xffffffff
cmp dword [0x568b50], 0
mov dword [ebp - 4], 2
je 0x40f6aa
cmp dword [0x568b54], 0
je 0x40f6aa
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x68]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004026d0
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f521
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00422880
push dword [ebp - 0x74]
lea ecx, [ebp + 8]
call fcn.004027d0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x68]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004026d0
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f59a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 6
call fcn.00422880
push dword [ebp - 0x6c]
lea ecx, [ebp + 0xc]
call fcn.004027d0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x68]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.004026d0
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f613
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.00422880
push dword [ebp - 0x64]
lea ecx, [ebp + 0x10]
call fcn.004027d0
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f66a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f68a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f6aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
xor ebx, ebx
cmp byte [0x568b58], bl
mov ecx, 0x5671f0
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 9
je 0x40f73b
cmp byte [0x56203c], 0
jne 0x40f73b
mov eax, dword [0x568bc0]
cmp dword [eax - 0xc], 0
jne 0x40f6f3
mov ebx, SysReAllocStringLen
jmp 0x40f73b
push 0x51a434
lea eax, [ebp - 0x68]
push 0x568bc0
push eax
mov ebx, SysReAllocStringLen
call fcn.00402b60
add esp, 0xc
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.004026d0
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f73b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
mov eax, str.Software_
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x40f798
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x40f7a5
push esi
push eax
lea ecx, [ebp - 0x64]
call fcn.004082e0
jmp 0x40f7a5
push str.Software_
lea ecx, [ebp - 0x64]
call fcn.004027d0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402aa0
push 0x568b98
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402aa0
push 0x51a434
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00402b60
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x10
call fcn.00402aa0
add esp, 0x30
lea ecx, [ebp - 0x84]
push 0
push 0
push 0x20006
push 0
push 0
push dword [eax]
push ebx
call fcn.0040c1c0
mov esi, dword [ebp - 0x68]
add esi, 0xfffffff0
mov ebx, eax
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f831
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f851
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f871
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f8b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x40f994
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x84]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x64], ebx
test ecx, ecx
je 0x40f94a
mov edx, eax
lea esi, [edx + 2]
jmp 0x40f8e0
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f8e0
sub edx, esi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f94a
test ebx, ebx
je 0x40f91a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x64], eax
call fcn.0040fe60
test al, al
jne 0x40f946
mov ebx, dword [0x568ad4]
xor edx, edx
mov dword [ebp - 0x6c], edx
lea esi, [ebp - 0x60]
xor ecx, ecx
inc ecx
inc esi
cmp ecx, 0xd
jl 0x40f933
mov edx, dword [ebp - 0x6c]
inc edx
mov dword [ebp - 0x6c], edx
cmp edx, 6
jl 0x40f931
mov bl, 1
jmp 0x40f99f
mov eax, dword [0x568ad4]
imul eax, eax
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 0x12
jne 0x40f980
mov esi, 1
mov eax, esi
mov edx, 0x4e
jmp 0x40f970
dec edx
lea ecx, [eax + esi]
lea esi, [eax]
mov eax, ecx
jns 0x40f970
mov dword [0x568ad4], ecx
test ebx, ebx
je 0x40f99d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x64], 0
jmp 0x40f99d
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x64], eax
xor bl, bl
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40f9ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f9cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f9ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fa0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40fa2e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.004e9514
mov esp, ebp
pop ebp
ret