Function at 0x46e260
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cff98
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, ecx
je 0x46e28a
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
mov dword [edi + 0xc], esi
mov ecx, dword [eax + 8]
lea edx, [eax + 4]
mov dword [esp + 0x10], edx
mov eax, dword [edx + 8]
push eax
push ecx
mov ecx, edx
call fcn.0040b57d
cmp dword [edi + 8], esi
je 0x46e4f7
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x46e2c0
mov eax, 0x4d68e8
mov edx, dword [edi + 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x5c]
push ecx
push esi
push esi
push esi
push eax
push edx
call ebp
cmp eax, esi
mov dword [edi + 0xc], eax
je 0x46e30b
mov ecx, dword [ebx + 4]
mov edx, 0x4d68e8
cmp ecx, esi
je 0x46e2ea
mov edx, ecx
mov ecx, dword [edi + 0x18]
cmp ecx, esi
jne 0x46e2f6
mov ecx, 0x4d68e8
push edx
push ecx
push str.RegQueryValueEx:__s_:__s
push eax
push 0x503ff0
call fcn.00423520
add esp, 0x14
mov eax, dword [esp + 0x5c]
push eax
call fcn.004bfbe2
mov ecx, dword [esp + 0x5c]
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [ecx + 4]
cmp eax, esi
jne 0x46e32e
mov eax, 0x4d68e8
lea edx, [esp + 0x5c]
push edx
push ebx
push esi
push esi
push eax
mov eax, dword [edi + 4]
push eax
call ebp
cmp eax, esi
mov dword [edi + 0xc], eax
je 0x46e377
mov ecx, dword [esp + 0x58]
mov edx, 0x4d68e8
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x46e356
mov edx, ecx
mov ecx, dword [edi + 0x18]
cmp ecx, esi
jne 0x46e362
mov ecx, 0x4d68e8
push edx
push ecx
push str.RegQueryValueEx:__s_:__s
push eax
push 0x503ff0
call fcn.00423520
add esp, 0x14
cmp dword [edi + 0xc], esi
je 0x46e387
push ebx
call fcn.004c004b
jmp 0x46e4f4
mov edi, dword [esp + 0x60]
cmp edi, esi
je 0x46e391
mov dword [edi], esi
mov dl, byte [esp + 0x58]
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.00406ad6
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov al, byte [ebx]
mov dword [esp + 0x50], esi
test al, al
je 0x46e4b5
jmp 0x46e3bf
mov edi, dword [esp + 0x60]
cmp edi, esi
je 0x46e3c5
inc dword [edi]
mov al, byte [esp + 0x58]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00406ad6
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x54], 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00406a51
test al, al
je 0x46e424
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.0042bb00
xor esi, esi
mov eax, dword [0x4d68ec]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 2
call fcn.0040b3b2
mov eax, dword [esp + 0x28]
mov byte [esp + 0x50], 0
cmp eax, esi
je 0x46e458
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x46e47d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46e474
cmp al, 0xff
je 0x46e474
dec al
mov byte [ecx], al
jmp 0x46e47d
push ecx
call fcn.004be17b
add esp, 4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push 1
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00437c60
mov ecx, dword [esp + 0x38]
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x46e3bb
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004c004b
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x46e4d3
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x46e4f7
mov al, byte [ecx - 1]
test al, al
je 0x46e4ed
cmp al, 0xff
je 0x46e4ed
dec al
mov byte [ecx - 1], al
jmp 0x46e4f7
dec ecx
push ecx
call fcn.004be17b
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc