Function at 0x46ecc0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d0096
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 8], esi
cmp eax, edi
mov dword [esp + 0x10], 0x100
jne 0x46ecfb
xor eax, eax
jmp 0x46eed2
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
cmp dword [ebp + 8], edi
jne 0x46ed0c
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x34]
push edx
push edi
lea ecx, [eax + 1]
push edi
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x24]
push edi
lea edx, [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x46ed66
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x46ed45
mov ecx, 0x4d68e8
mov edx, dword [esi + 0x18]
cmp edx, edi
jne 0x46ed51
mov edx, 0x4d68e8
push ecx
push edx
push str.RegEnumKeyEx:__s_:__s
push eax
push 0x503ff0
call fcn.00423520
add esp, 0x14
cmp dword [esi + 0xc], edi
jne 0x46ee3f
mov cl, byte [esp + 0x17]
push edi
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00406ad6
mov dword [esp + 0x144], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00406a51
test al, al
je 0x46edd8
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x4d68ec]
lea edx, [esp + 0x1c]
push ecx
push 0
push edx
mov ecx, ebp
mov dword [esp + 0x150], 1
call fcn.0040b3b2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46ee11
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46eeb6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46ee34
cmp al, 0xff
je 0x46ee34
dec al
mov byte [ecx], al
jmp 0x46eeb6
push ecx
call fcn.004be17b
add esp, 4
jmp 0x46eeb6
mov esi, dword [ebp + 4]
mov ebx, dword [0x4d68ec]
test esi, esi
je 0x46ee75
mov al, byte [esi - 1]
test al, al
je 0x46ee75
cmp al, 0xff
je 0x46ee75
push 1
mov ecx, ebp
call fcn.00406ad6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, ebp
call fcn.0040695a
mov eax, dword [ebp + 8]
cmp eax, ebx
jae 0x46ee7e
mov ebx, eax
test ebx, ebx
jbe 0x46eeb2
mov ecx, dword [ebp + 4]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.004bf5b0
mov esi, dword [ebp + 8]
add esp, 0xc
sub esi, ebx
mov ecx, ebp
push 0
push esi
call fcn.00406a51
test al, al
je 0x46eeb2
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], esi
mov byte [ecx + esi], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
pop ebp
cmp eax, 0x103
pop ebx
jne 0x46eec9
mov dword [esi + 0x10], 0
xor edx, edx
test eax, eax
sete dl
mov eax, edx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x138
ret 4