Function at 0x1035c82
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8f4
mov eax, dword [0x107fa78]
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 0x1002a30
push 0x105
push eax
mov dword [ebp - 0x8d4], edi
mov dword [ebp - 0x8d0], edi
call fcn.01035970
test eax, eax
jge 0x1035cd9
or eax, 0xffffffff
jmp 0x1035fb2
push ebx
lea eax, [ebp - 0x8d4]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x4b8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035fab
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 0x1035f41
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_
cmp eax, edi
pop ecx
mov dword [esi], eax
je 0x1035dd7
cmp dword [ebp - 0x8cc], edi
mov dword [ebp - 0x8d8], edi
jle 0x1035dd7
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 0x1035dc3
xor ebx, ebx
cmp dword [ebp - 0x8d8], edi
jle 0x1035db4
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x1035dab
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 0x1035d95
mov eax, dword [esi]
cmp eax, edi
je 0x1035dc3
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 0x1035d6b
cmp dword [esi], edi
jne 0x1035def
push dword [ebp - 0x8d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x1035fb1
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 0x1035f41
mov ebx, 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x6c0]
push dword [ebp + 0xc]
push 0x1002378
push ebx
push eax
call fcn.01035970
test eax, eax
jl 0x1035ee5
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
lea eax, [ebp - 0x8c8]
push eax
call fcn.010359ac
lea eax, [ebp - 0x8c8]
push eax
call fcn.01056c56
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.01035c4b
mov eax, dword [ebp - 0x8f0]
cmp eax, dword [ebp - 0x8d8]
jb 0x1035ee5
ja 0x1035ec7
mov eax, dword [ebp - 0x8f4]
cmp eax, dword [ebp - 0x8dc]
jb 0x1035ee5
mov ecx, dword [ebp - 0x8d0]
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [esi]
push ebx
push dword [eax + ecx*4]
call fcn.01034c79
inc dword [ebp - 0x8d0]
inc dword [ebp - 0x8e0]
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8cc]
jae 0x1035f41
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 0x1035e3b
mov eax, dword [ebp - 0x8cc]
mov ebx, dword [ebp - 0x8d0]
cmp eax, ebx
jle 0x1035f8f
cmp dword [esi], edi
je 0x1035f8f
cmp ebx, eax
jae 0x1035f78
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x1035f6f
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 0x1035f59
cmp dword [ebp - 0x8d0], edi
jne 0x1035f8f
mov eax, dword [esi]
cmp eax, edi
je 0x1035f9f
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 0x1035f9f
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.01047417
leave
ret 0xc