Function at 0x10046f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e328
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 0x10047260
cmp byte [eax], 0x5b
jne 0x10047260
push eax
mov byte [ebp - 4], 2
call fcn.100552e7
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x10047098
mov ecx, dword [edi*8 + 0x10091148]
cmp ecx, esi
je 0x1004702d
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x10047022
cmp byte [ecx], 0
je 0x10047037
add ecx, 1
sub eax, 1
jmp 0x10047011
mov edx, 0x80070057
xor esi, esi
test edx, edx
jge 0x1004703f
mov esi, 0xd
jmp 0x10047210
test edx, edx
jl 0x10047027
sub esi, eax
jmp 0x10047029
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 0x100470a4
mov edx, dword [edi*8 + 0x1009114c]
add ebx, esi
cmp byte [ebx], 0x5c
mov dword [ebp - 0x58], edx
jne 0x10047074
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 0x10047080
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.10002ff3
cmp edi, 5
jne 0x100470ae
mov esi, 0xd
jmp 0x10047210
add edi, 1
xor esi, esi
jmp 0x10046ff4
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x100470c0
call fcn.10051df3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x100470d0
lea eax, [ebp - 0x2c]
cmp byte [eax + esi], 0x5d
je 0x100470e0
mov esi, 0xd
jmp 0x10047215
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x100470f4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.100029b7
jmp 0x10047101
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10046630
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.100451f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x10047139
cmp eax, ecx
ja 0x10047132
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.100029b7
jmp 0x10047192
push 0
sub eax, ecx
push eax
jmp 0x1004718a
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.10046f30
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10002f20
cmp dword [ebp - 0x68], edi
mov byte [ebp - 4], 2
jb 0x10047171
mov eax, dword [ebp - 0x7c]
push eax
call fcn.10050e9e
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10047185
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.100029b7
jmp 0x10047192
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.10046630
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x100471c2
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x100471a9
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 0x10047215
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x100471cd
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 0x10047215
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x10047215
cmp eax, 2
je 0x10047215
mov esi, 0x65e
jmp 0x10047215
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10047228
cmp dword [ebp - 0x58], eax
je 0x10047228
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x10047239
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 0x1004725c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10050e9e
add esp, 4
mov eax, esi
jmp 0x10047265
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