Function at 0x46cec0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x569f2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [esp + 0x134]
push ebp
mov ebp, 1
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.00530bfd
mov ecx, dword [0x5d2d10]
mov dword [esp + 0x130], 0
mov dword [esp + 0x10], ecx
push 0xf07e
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call fcn.00532f94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push edx
push eax
mov dword [esp + 0x1c], SysReAllocStringLen
call fcn.00514c8c
add esp, 8
test eax, eax
je 0x46d10d
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004799d0
add esp, 8
test ax, ax
je 0x46d10d
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSID_OBJID.Pro7BU
push SysReAllocStringLen
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46d10f
mov ecx, dword [0x5d2d10]
push ebx
push esi
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x24]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
mov bl, 2
push 0
push edx
mov byte [esp + 0x150], bl
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46d044
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
call fcn.00530d18
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46d044
xor esi, esi
test ecx, ecx
jle 0x46d01c
mov cl, byte [esi + eax]
mov eax, esi
cdq
mov ebp, 0xa
idiv ebp
add dl, cl
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.005310d5
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x46cff4
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.0052849d
cmp eax, 0xffffffff
je 0x46d036
xor ebp, ebp
jmp 0x46d0ed
push 0x5c979c
lea ecx, [esp + 0x10]
call fcn.00530f6b
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.00530fa7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46d0ed
cmp ecx, 0x100
jbe 0x46d0aa
mov eax, ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov esi, dword [ecx - 8]
lea ecx, [esp + 0xc]
sub eax, esi
dec eax
push eax
push edx
call fcn.0052835c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 3
call fcn.00530cc8
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], bl
call fcn.00530b8f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
xor esi, esi
test ecx, ecx
jle 0x46d0d7
mov cl, byte [esi + eax]
mov eax, esi
cdq
mov ebx, 0xa
idiv ebx
sub cl, dl
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.005310d5
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x46d0b3
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 1
call fcn.00530b8f
pop esi
pop ebx
jmp 0x46d10f
xor ebp, ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.00530b8f
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x128]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x130
ret 4