Function at 0x10046f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e248
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1009140c]
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 dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x64], ecx
mov ecx, 0xf
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
cmp eax, esi
mov byte [ebp - 4], 1
je 0x10047270
cmp byte [eax], 0x5b
jne 0x10047270
push eax
mov byte [ebp - 4], 2
call fcn.100552e7
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x100470a8
mov ecx, dword [edi*8 + 0x10091148]
cmp ecx, esi
je 0x1004703d
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x10047032
cmp byte [ecx], 0
je 0x10047047
add ecx, 1
sub eax, 1
jmp 0x10047021
mov edx, 0x80070057
xor esi, esi
test edx, edx
jge 0x1004704f
mov esi, 0xd
jmp 0x10047220
test edx, edx
jl 0x10047037
sub esi, eax
jmp 0x10047039
mov ecx, dword [edi*8 + 0x10091148]
lea eax, [esi - 1]
push eax
push ecx
push ebx
call fcn.100564d8
add esp, 0xc
test eax, eax
jne 0x100470b4
mov edx, dword [edi*8 + 0x1009114c]
add ebx, esi
cmp byte [ebx], 0x5c
mov dword [ebp - 0x58], edx
jne 0x10047084
push ebx
call fcn.100552e7
add esp, 4
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10047090
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.100030aa
cmp edi, 5
jne 0x100470be
mov esi, 0xd
jmp 0x10047220
add edi, 1
xor esi, esi
jmp 0x10047004
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x100470d0
call fcn.10051df3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x100470e0
lea eax, [ebp - 0x2c]
cmp byte [eax + esi], 0x5d
je 0x100470f0
mov esi, 0xd
jmp 0x10047225
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x10047104
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002a07
jmp 0x10047111
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10046640
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.10045200
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x10047149
cmp eax, ecx
ja 0x10047142
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002a07
jmp 0x100471a2
push 0
sub eax, ecx
push eax
jmp 0x1004719a
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.10046f40
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10002f64
cmp dword [ebp - 0x68], edi
mov byte [ebp - 4], 2
jb 0x10047181
mov eax, dword [ebp - 0x7c]
push eax
call fcn.10050e9e
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10047195
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.10002a07
jmp 0x100471a2
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.10046640
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x100471d2
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x100471b9
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x54]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10047225
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x100471dd
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
push ecx
push edx
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x5c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x10047225
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x10047225
cmp eax, 2
je 0x10047225
mov esi, 0x65e
jmp 0x10047225
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10047238
cmp dword [ebp - 0x58], eax
je 0x10047238
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x10047249
mov eax, dword [ebp - 0x48]
push eax
call fcn.10050e9e
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x1004726c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10050e9e
add esp, 4
mov eax, esi
jmp 0x10047275
mov eax, 0xd
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.100511f7
mov esp, ebp
pop ebp
ret 8