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

Disassembly:
push 0xffffffffffffffff
push 0x5253a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov eax, dword [0x569c90]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 2
push ecx
push 1
push ebx
push str.SoftwareClassesCLSID_OBJID.Pro8
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x46faed
lea edx, [esp + 0x30]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push ebx
push edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46fae6
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
call fcn.00507ec3
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x46fae6
xor esi, esi
cmp ecx, ebx
jle 0x46fa8d
mov al, byte [esi + eax]
lea ecx, [esp + 0x28]
dec al
push eax
push esi
call fcn.00508280
mov eax, dword [esp + 0x28]
inc esi
cmp esi, dword [eax - 8]
jl 0x46fa73
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
push ecx
push str._lx__x__x__lx__x
push eax
call fcn.004f2884
add esp, 0x1c
cmp eax, 5
jne 0x46fad2
cmp dword [esp + 0x14], ebx
je 0x46fad6
cmp dword [esp + 0x10], ebx
je 0x46fad6
mov ecx, edi
call fcn.0046f990
test eax, eax
jne 0x46fae6
jmp 0x46fad6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
push edx
call ebp
cmp dword [esp + 0x14], ebx
jl 0x46fb3d
mov eax, dword [esp + 0x70]
push 0x55ecf8
push eax
call fcn.004f27d5
add esp, 8
test eax, eax
je 0x46fb35
cmp dword [esp + 0x14], ebx
jne 0x46fb1c
lea ecx, [esp + 0x20]
push ecx
call fcn.004f2bfb
add esp, 4
mov edx, dword [esp + 0x70]
push edx
call fcn.004f40d5
mov ecx, dword [esp + 0x18]
add esp, 4
add ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x46fb3d
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x10], ebx
jl 0x46fb8d
mov eax, dword [esp + 0x74]
push 0x55ecf8
push eax
call fcn.004f27d5
add esp, 8
test eax, eax
je 0x46fb85
cmp dword [esp + 0x10], ebx
jne 0x46fb6c
lea ecx, [esp + 0x18]
push ecx
call fcn.004f2bfb
add esp, 4
mov edx, dword [esp + 0x74]
push edx
call fcn.004f40d5
mov ecx, dword [esp + 0x14]
add esp, 4
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x46fb8d
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x18], ebx
jne 0x46fba0
lea eax, [esp + 0x18]
push eax
call fcn.004f2bfb
add esp, 4
mov ecx, dword [0x569c90]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push str._lx__x__x__lx__x
push ecx
mov byte [esp + 0x84], 3
call fcn.005054dc
add esp, 0x1c
lea edx, [esp + 0x1c]
xor edi, edi
push ebx
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareClassesCLSID_OBJID.Pro8
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46fc4c
mov eax, dword [esp + 0x24]
xor esi, esi
cmp dword [eax - 8], ebx
jle 0x46fc27
mov al, byte [esi + eax]
lea ecx, [esp + 0x24]
inc al
push eax
push esi
call fcn.00508280
mov eax, dword [esp + 0x24]
inc esi
cmp esi, dword [eax - 8]
jl 0x46fc0d
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x24]
push 1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46fc45
mov edi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 2
call fcn.00507d3a
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 1
call fcn.00507d3a
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], bl
call fcn.00507d3a
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8