Function at 0x46f9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513b19
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov edx, dword [ebx]
mov dword [ebp - 0x54], esi
test edx, edx
jne 0x46fa4a
xor eax, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x46fc70
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46fa54
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fc5a
cmp dword [ebp - 0x4c], eax
je 0x46fc5a
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x46fa8a
cmp eax, 2
jne 0x46fc5a
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
cmp ecx, eax
ja 0x46faed
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46fafa
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004535c4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x46fb0d
mov edi, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fbfa
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405784
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x46fb5b
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp word [eax + ecx*2 - 2], 0
jne 0x46fb5b
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x44]
call fcn.0045361f
push 0x18
lea eax, [ebp - 0x44]
mov dword [esi + 0x10], 0
push eax
push esi
mov dword [esi + 0x14], 0
call fcn.004db240
add esp, 0xc
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46fbe4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fbda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fc97
push edx
push ecx
call fcn.004d9b41
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x46fc77
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x46fc4e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46fc44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fc9c
push edx
push ecx
call fcn.004d9b41
add esp, 8
mov dword [ebp - 0x34], 0
jmp 0x46fb9a
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d9b30
mov esp, ebp
pop ebp
ret 0xc
call fcn.004dfbf5
call fcn.004dfbf5
int3