Function at 0x46afd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x54]
push esi
xor esi, esi
cmp eax, esi
jne 0x46b00a
xor al, al
jmp 0x46b2cf
mov al, byte [ebx + 0x51d]
test al, al
je 0x46b03d
push 1
mov ecx, ebx
call fcn.00464970
push esi
push 1
lea ecx, [ebx + 0x53c]
mov byte [ebx + 0x56c], 1
call fcn.00482f70
neg eax
sbb eax, eax
neg eax
jmp 0x46b2cf
lea eax, [ebx + 0x40]
push eax
lea ecx, [ebp - 0x6c]
push str.SOFTWARE_
push ecx
call fcn.0040c710
push eax
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 4], esi
call fcn.004893e0
add esp, 0x14
cmp dword [ebp - 0x54], 0x10
jb 0x46b071
mov eax, dword [ebp - 0x68]
push eax
call fcn.004e11d0
add esp, 4
push edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
mov edi, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
mov byte [ebp - 0x14], 0x5c
call fcn.00404f40
mov esi, eax
cmp esi, 0xffffffff
je 0x46b15e
push esi
push 0
lea edx, [ebp - 0x88]
push edx
mov ecx, edi
call fcn.00426900
push eax
lea eax, [ebp - 0x6c]
push 0x504804
push eax
mov byte [ebp - 4], 4
call fcn.0040c710
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004078b0
cmp dword [ebp - 0x54], 0x10
jb 0x46b0ef
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x70], 0x10
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 3
jb 0x46b11a
mov edx, dword [ebp - 0x84]
push edx
call fcn.004e11d0
add esp, 4
push 0xffffffffffffffff
inc esi
push esi
lea eax, [ebp - 0x88]
push eax
mov ecx, edi
call fcn.00426900
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00408e40
mov eax, dword [ebp - 0x70]
mov esi, 0x10
cmp eax, esi
mov byte [ebp - 4], 3
jb 0x46b170
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004e11d0
add esp, 4
jmp 0x46b170
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00408e40
mov esi, 0x10
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x46b17b
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x18]
push edx
push 0x20006
xor edi, edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x46b238
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x4c]
jae 0x46b1a6
lea eax, [ebp - 0x4c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
push 0xf003f
push edi
push 0x504800
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x46b238
mov al, byte [ebx + 0x51c]
test al, al
je 0x46b201
mov ecx, ebx
call fcn.004648d0
push 1
add ebx, 0x53c
push edi
mov ecx, ebx
call fcn.0048e7d0
push 5
push 0xc
mov ecx, ebx
call fcn.0048e7d0
push 1
push edi
mov ecx, ebx
call fcn.0048e7d0
cmp dword [ebp - 0x1c], esi
jb 0x46b212
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
jb 0x46b231
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004e11d0
add esp, 4
xor al, al
jmp 0x46b2ce
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x46b243
lea eax, [ebp - 0x30]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebx + 0x51c]
test al, al
je 0x46b29c
mov ecx, ebx
call fcn.004648d0
push 1
add ebx, 0x53c
push edi
mov ecx, ebx
call fcn.0048e7d0
push 5
push 0xc
mov ecx, ebx
call fcn.0048e7d0
push 1
push 1
mov ecx, ebx
call fcn.0048e7d0
cmp dword [ebp - 0x1c], esi
jb 0x46b2ad
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
jb 0x46b2cc
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004e11d0
add esp, 4
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004e19df
mov esp, ebp
pop ebp
ret 0x10