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

Disassembly:
push 0xffffffffffffffff
push 0x524ffc
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.00507da8
mov ecx, dword [0x569c90]
mov dword [esp + 0x130], 0
mov dword [esp + 0x10], ecx
push 0xf07e
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call fcn.0050cd58
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push edx
push eax
mov dword [esp + 0x1c], connect
call fcn.004f298c
add esp, 8
test eax, eax
je 0x46e92d
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004e6dc0
add esp, 8
test ax, ax
je 0x46e92d
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSID_OBJID.Pro8BU
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46e92f
mov ecx, dword [0x569c90]
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 0x46e864
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
call fcn.00507ec3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46e864
xor esi, esi
test ecx, ecx
jle 0x46e83c
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.00508280
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x46e814
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00505156
cmp eax, 0xffffffff
je 0x46e856
xor ebp, ebp
jmp 0x46e90d
push 0x5625ac
lea ecx, [esp + 0x10]
call fcn.00508116
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.00508152
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46e90d
cmp ecx, 0x100
jbe 0x46e8ca
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.00505015
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 3
call fcn.00507e73
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], bl
call fcn.00507d3a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
xor esi, esi
test ecx, ecx
jle 0x46e8f7
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.00508280
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x46e8d3
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.00507d3a
pop esi
pop ebx
jmp 0x46e92f
xor ebp, ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.00507d3a
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.00507d3a
mov ecx, dword [esp + 0x128]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x130
ret 4