Function at 0x46bc20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x570074]
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 0x46bc7a
xor eax, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x46bef5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46bc84
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 0x46bedf
cmp dword [ebp - 0x4c], eax
je 0x46bedf
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x46bcba
cmp eax, 2
jne 0x46bedf
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
shr ecx, 1
cmp ecx, dword [ebp - 0x34]
ja 0x46bd1b
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], ecx
cmovae eax, dword [ebp - 0x44]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46bd26
push 0
push ecx
lea ecx, [ebp - 0x44]
call fcn.0044f09c
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp dword [edi + 0x14], 8
jb 0x46bd39
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 0x46be81
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405125
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46bd87
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], 0
jne 0x46bd87
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044f0f7
push 0x18
lea eax, [ebp - 0x2c]
mov dword [esi + 0x10], 0
push eax
push esi
mov dword [esi + 0x14], 0
call fcn.004d1910
xor eax, eax
mov dword [ebp - 0x1c], 0
add esp, 0xc
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x46be11
mov eax, dword [ebp - 0x2c]
mov ecx, 8
cmp ecx, 0x7fffffff
ja 0x46be7c
mov ecx, 0x1000
cmp ecx, 0x10
ja 0x46be08
test al, 0x1f
jne 0x46be7c
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x46be7c
sub eax, ecx
cmp eax, 4
jb 0x46be7c
cmp eax, 0x23
ja 0x46be7c
mov eax, ecx
push eax
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x46be63
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
ja 0x46be7c
add eax, eax
cmp eax, 0x1000
jb 0x46be5a
test cl, 0x1f
jne 0x46be7c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46be7c
sub ecx, eax
cmp ecx, 4
jb 0x46be7c
cmp ecx, 0x23
ja 0x46be7c
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x46befc
call fcn.004d5be4
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 eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x46be11
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
ja 0x46be7c
add eax, eax
cmp eax, 0x1000
jb 0x46bed9
test cl, 0x1f
jne 0x46be7c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46be7c
sub ecx, eax
cmp ecx, 4
jb 0x46be7c
cmp ecx, 0x23
ja 0x46be7c
mov ecx, eax
push ecx
jmp 0x46be09
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.004d0217
mov esp, ebp
pop ebp
ret 0xc