Function at 0x10362ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8f4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x8ec], 0xffffffff
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x4b8]
push dword [ebp + 0xc]
xor edi, edi
push 0x1002750
push 0x105
push eax
mov dword [ebp - 0x8d4], edi
mov dword [ebp - 0x8d0], edi
call fcn.01035ff3
test eax, eax
jge 0x1036356
or eax, 0xffffffff
jmp 0x103662f
push ebx
lea eax, [ebp - 0x8d4]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x4b8]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036628
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x8cc]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x8d4]
mov dword [ebp - 0x8cc], edi
mov dword [ebp - 0x8e4], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10365be
mov eax, dword [ebp - 0x8cc]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
mov dword [ebp - 0x8e0], edi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, edi
je 0x1036454
cmp dword [ebp - 0x8cc], edi
mov dword [ebp - 0x8d8], edi
jle 0x1036454
push 0x20a
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x8d8]
shl ecx, 2
mov dword [ecx + edx], eax
mov eax, dword [esi]
cmp dword [ecx + eax], edi
jne 0x1036440
xor ebx, ebx
cmp dword [ebp - 0x8d8], edi
jle 0x1036431
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x1036428
push dword [eax]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi]
pop ecx
mov dword [eax + ebx*4], edi
inc ebx
cmp ebx, dword [ebp - 0x8d8]
jl 0x1036412
mov eax, dword [esi]
cmp eax, edi
je 0x1036440
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], edi
inc dword [ebp - 0x8d8]
mov eax, dword [ebp - 0x8d8]
cmp eax, dword [ebp - 0x8cc]
jl 0x10363e8
cmp dword [esi], edi
jne 0x103646c
push dword [ebp - 0x8d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x103662e
lea eax, [ebp - 0x8e8]
push eax
lea eax, [ebp - 0x2ac]
push eax
push edi
push edi
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0xa4]
push eax
push edi
push dword [ebp - 0x8d4]
mov dword [ebp - 0x8e8], 0x208
mov dword [ebp - 0x8e4], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10365be
mov ebx, 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x6c0]
push dword [ebp + 0xc]
push 0x1002250
push ebx
push eax
call fcn.01035ff3
test eax, eax
jl 0x1036562
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
lea eax, [ebp - 0x8c8]
push eax
call fcn.0103602f
lea eax, [ebp - 0x8c8]
push eax
call fcn.01055efe
push dword [ebp + 0xc]
mov dword [ebp - 0x8f4], eax
lea eax, [ebp - 0x8dc]
push eax
mov dword [ebp - 0x8f0], edx
mov dword [ebp - 0x8dc], edi
mov dword [ebp - 0x8d8], edi
call fcn.010362c8
mov eax, dword [ebp - 0x8f0]
cmp eax, dword [ebp - 0x8d8]
jb 0x1036562
ja 0x1036544
mov eax, dword [ebp - 0x8f4]
cmp eax, dword [ebp - 0x8dc]
jb 0x1036562
mov ecx, dword [ebp - 0x8d0]
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [esi]
push ebx
push dword [eax + ecx*4]
call fcn.01035831
inc dword [ebp - 0x8d0]
inc dword [ebp - 0x8e0]
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8cc]
jae 0x10365be
lea eax, [ebp - 0x8e8]
push eax
lea eax, [ebp - 0x2ac]
push eax
push edi
push edi
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x8e0]
mov dword [ebp - 0x8e8], ebx
push dword [ebp - 0x8d4]
mov dword [ebp - 0x8e4], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10364b8
mov eax, dword [ebp - 0x8cc]
mov ebx, dword [ebp - 0x8d0]
cmp eax, ebx
jle 0x103660c
cmp dword [esi], edi
je 0x103660c
cmp ebx, eax
jae 0x10365f5
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x10365ec
push dword [eax]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi]
pop ecx
mov dword [eax + ebx*4], edi
inc ebx
cmp ebx, dword [ebp - 0x8cc]
jb 0x10365d6
cmp dword [ebp - 0x8d0], edi
jne 0x103660c
mov eax, dword [esi]
cmp eax, edi
je 0x103661c
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], edi
mov eax, dword [ebp - 0x8d0]
cmp eax, edi
jle 0x103661c
mov dword [ebp - 0x8ec], eax
push dword [ebp - 0x8d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x8ec]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 0xc