Function at 0x46ff20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x394], eax
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a4]
push esi
mov esi, dword [ebp + 0x3a0]
push edi
lea edx, [ebp - 0x74]
push edx
xor ecx, ecx
push ebx
xor edi, edi
push esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov word [eax], cx
call fcn.0046dcd0
add esp, 0xc
test eax, eax
je 0x4701f0
xor eax, eax
mov word [ebp + 0x194], ax
mov eax, ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46ff90
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0xa]
mov eax, ebx
lea edx, [eax + 2]
cmp ecx, 0x400
ja 0x46ffe0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46ffb0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0xa]
call fcn.0044a220
mov eax, esp
cmp eax, edi
je 0x46ffd7
mov dword [eax], 0xcccc
add eax, 8
mov edi, eax
mov dword [ebp - 0x70], edi
jmp 0x47000e
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46ffe0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 0xa]
push edx
call fcn.00448217
add esp, 4
cmp eax, edi
je 0x470009
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x70], eax
mov edi, eax
test edi, edi
je 0x4701e9
mov edx, edi
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x470020
push 0x5c
push edi
call fcn.0044a678
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4701a8
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi + esi + 0xc]
cmp eax, 0x400
ja 0x47006f
call fcn.0044a220
mov edi, esp
test edi, edi
je 0x4700fb
mov dword [edi], 0xcccc
add edi, 8
jmp 0x470087
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x470085
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x4700fb
mov eax, dword [ebp - 0x70]
inc esi
push esi
push eax
push edi
call fcn.0044dce8
add esp, 0xc
test eax, eax
je 0x4700e1
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
push edx
push 0x20019
xor ecx, ecx
push ecx
push edi
push eax
mov word [edi + esi*2], cx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4700e7
lea eax, [ebx + 2]
lea edx, [ebp + 0x194]
mov dword [ebp - 0x74], 1
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4700d0
jmp 0x4700e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x4700fb
push edi
call fcn.004482e1
add esp, 4
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4701e2
cmp word [ebp + 0x194], 0
je 0x4701e2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x6c]
push edx
push edi
push eax
mov dword [ebp - 0x78], 0x200
call ebx
mov esi, eax
test esi, esi
jne 0x47017c
lea esp, [esp]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x194]
push ecx
inc edi
call fcn.0044b2ae
add esp, 8
test eax, eax
lea eax, [ebp - 0x6c]
je 0x4701c9
mov ecx, dword [ebp - 0x7c]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x78]
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x78], 0x200
call ebx
mov esi, eax
test esi, esi
je 0x470140
mov edi, dword [ebp - 0x70]
cmp dword [ebp - 0x74], 0
je 0x47018f
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x4701a4
push eax
call fcn.004482e1
add esp, 4
mov eax, esi
jmp 0x4701f3
lea edx, [ebp + 0x194]
mov dword [ebp - 0x7c], esi
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4701b5
jmp 0x4700fe
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x6c]
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4701d1
jmp 0x47017c
mov esi, 2
jmp 0x47017f
mov eax, 8
jmp 0x4701f3
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
call fcn.00447645
add ebp, 0x398
mov esp, ebp
pop ebp
ret