Function at 0x10362df
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.01035fd3
test eax, eax
jge 0x1036336
or eax, 0xffffffff
jmp 0x103660f
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 0x1036608
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 0x103659e
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 0x1036434
cmp dword [ebp - 0x8cc], edi
mov dword [ebp - 0x8d8], edi
jle 0x1036434
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 0x1036420
xor ebx, ebx
cmp dword [ebp - 0x8d8], edi
jle 0x1036411
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x1036408
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 0x10363f2
mov eax, dword [esi]
cmp eax, edi
je 0x1036420
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 0x10363c8
cmp dword [esi], edi
jne 0x103644c
push dword [ebp - 0x8d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x103660e
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 0x103659e
mov ebx, 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x6c0]
push dword [ebp + 0xc]
push 0x1002250
push ebx
push eax
call fcn.01035fd3
test eax, eax
jl 0x1036542
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
lea eax, [ebp - 0x8c8]
push eax
call fcn.0103600f
lea eax, [ebp - 0x8c8]
push eax
call fcn.01055edd
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.010362a8
mov eax, dword [ebp - 0x8f0]
cmp eax, dword [ebp - 0x8d8]
jb 0x1036542
ja 0x1036524
mov eax, dword [ebp - 0x8f4]
cmp eax, dword [ebp - 0x8dc]
jb 0x1036542
mov ecx, dword [ebp - 0x8d0]
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [esi]
push ebx
push dword [eax + ecx*4]
call fcn.01035811
inc dword [ebp - 0x8d0]
inc dword [ebp - 0x8e0]
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8cc]
jae 0x103659e
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 0x1036498
mov eax, dword [ebp - 0x8cc]
mov ebx, dword [ebp - 0x8d0]
cmp eax, ebx
jle 0x10365ec
cmp dword [esi], edi
je 0x10365ec
cmp ebx, eax
jae 0x10365d5
mov eax, dword [esi]
lea eax, [eax + ebx*4]
cmp dword [eax], edi
je 0x10365cc
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 0x10365b6
cmp dword [ebp - 0x8d0], edi
jne 0x10365ec
mov eax, dword [esi]
cmp eax, edi
je 0x10365fc
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 0x10365fc
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.01047464
leave
ret 0xc