Function at 0x10046d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d698
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1008f414]
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 0x10047050
cmp byte [eax], 0x5b
jne 0x10047050
push eax
mov byte [ebp - 4], 2
call fcn.10054927
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x10046e88
mov ecx, dword [edi*8 + 0x1008f150]
cmp ecx, esi
je 0x10046e1d
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x10046e12
cmp byte [ecx], 0
je 0x10046e27
add ecx, 1
sub eax, 1
jmp 0x10046e01
mov edx, 0x80070057
xor esi, esi
test edx, edx
jge 0x10046e2f
mov esi, 0xd
jmp 0x10047000
test edx, edx
jl 0x10046e17
sub esi, eax
jmp 0x10046e19
mov ecx, dword [edi*8 + 0x1008f150]
lea eax, [esi - 1]
push eax
push ecx
push ebx
call fcn.10055b18
add esp, 0xc
test eax, eax
jne 0x10046e94
mov edx, dword [edi*8 + 0x1008f154]
add ebx, esi
cmp byte [ebx], 0x5c
mov dword [ebp - 0x58], edx
jne 0x10046e64
push ebx
call fcn.10054927
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 0x10046e70
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.10002f58
cmp edi, 5
jne 0x10046e9e
mov esi, 0xd
jmp 0x10047000
add edi, 1
xor esi, esi
jmp 0x10046de4
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x10046eb0
call fcn.10051433
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x10046ec0
lea eax, [ebp - 0x2c]
cmp byte [eax + esi], 0x5d
je 0x10046ed0
mov esi, 0xd
jmp 0x10047005
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x10046ee4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002932
jmp 0x10046ef1
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10046420
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.10044fe0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x10046f29
cmp eax, ecx
ja 0x10046f22
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002932
jmp 0x10046f82
push 0
sub eax, ecx
push eax
jmp 0x10046f7a
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.10046d20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10002e85
cmp dword [ebp - 0x68], edi
mov byte [ebp - 4], 2
jb 0x10046f61
mov eax, dword [ebp - 0x7c]
push eax
call fcn.100504de
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10046f75
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.10002932
jmp 0x10046f82
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.10046420
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x10046fb2
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x10046f99
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 0x10047005
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x10046fbd
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 0x10047005
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x10047005
cmp eax, 2
je 0x10047005
mov esi, 0x65e
jmp 0x10047005
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10047018
cmp dword [ebp - 0x58], eax
je 0x10047018
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x10047029
mov eax, dword [ebp - 0x48]
push eax
call fcn.100504de
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x1004704c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100504de
add esp, 4
mov eax, esi
jmp 0x10047055
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.10050837
mov esp, ebp
pop ebp
ret 8