Function at 0x10038d5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], esi
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call fcn.010023ea
mov edi, dword [ebp + 0xc]
or eax, 0x2001f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100392b
push eax
push edi
push 0x1001c00
call fcn.01002a73
add esp, 0xc
jmp 0x1003b5a
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x1003955
push eax
push edi
push 0x1001bb0
jmp 0x100391e
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 0xc]
mov ebx, eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x1003b46
cmp ebx, esi
je 0x1003b46
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
jbe 0x1003af7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10039d9
cmp eax, 0x103
je 0x1003b03
push eax
push esi
push edi
push 0x1001b58
jmp 0x1003ad2
cmp dword [ebp + 0x14], 0
je 0x1003a5e
cmp dword [ebp + 0xc], 1
je 0x1003a3d
cmp dword [ebp + 0xc], 0xb
je 0x10039f7
cmp dword [ebp + 0xc], 3
jne 0x1003a25
cmp dword [ebp + 8], 8
jne 0x1003a25
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x1003a25
cmp word [ebx], 0x7b
jne 0x1003a25
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [ebx + eax*2 - 2], 0x7d
pop ecx
jne 0x1003a25
push ebx
push edi
push 0x1001b1c
jmp 0x1003a83
push esi
push ebx
push edi
push dword [ebp + 0xc]
push 0x1001ac0
call fcn.01002a73
add esp, 0x14
jmp 0x1003aed
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0x10]
call fcn.01002758
test eax, eax
jne 0x1003adc
push esi
push edi
push ebx
push 0x1001a68
jmp 0x1003ad2
cmp dword [ebp + 0xc], 1
jne 0x1003a8d
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1003a8d
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x1003a8d
push ebx
push edi
push 0x1001a20
call fcn.01002a73
add esp, 0xc
jmp 0x1003aed
cmp dword [ebp + 0xc], 0xb
je 0x1003ab7
cmp dword [ebp + 0xc], 3
jne 0x1003a9f
cmp dword [ebp + 8], 8
jae 0x1003ab7
push esi
push ebx
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x10019b0
call fcn.01002a73
add esp, 0x18
jmp 0x1003aed
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0x10]
call fcn.01002758
test eax, eax
jne 0x1003adc
push esi
push edi
push ebx
push 0x1001950
call fcn.01002a73
add esp, 0x10
jmp 0x1003aed
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0100378c
test eax, eax
je 0x1003b14
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x1003994
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 1
jmp 0x1003b3d
push esi
push edi
push 0x10018e8
call fcn.01002a73
add esp, 0xc
jmp 0x1003af7
push esi
push edi
push ebx
push 0x1001890
jmp 0x1003b52
push dword [ebp + 0x14]
push esi
push dword [ebp - 4]
call fcn.01003808
test eax, eax
jne 0x1003b3b
push edi
push 0x1001848
call fcn.01002a73
pop ecx
pop ecx
mov esi, dword [esi]
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x1003b1e
jmp 0x1003b5a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push 0x10017f0
call fcn.01002a73
add esp, 0x10
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1003b75
jmp 0x1003b6e
mov eax, esi
mov esi, dword [esi]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x1003b63
cmp dword [ebp - 4], 0
je 0x1003b84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1003b8f
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x1003ba1
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x1c]
leave
ret 0x10