Function at 0x103ec95
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x418], eax
xor eax, eax
xor edi, edi
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], edi
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call sub.msvcrt.dll_memset
mov al, byte [0x104a13c]
add esp, 0x18
mov dword [ebp - 0x428], 1
test al, al
jne 0x103ed29
mov eax, 0x80070015
jmp 0x103eefb
cmp dword [ebp - 0x418], edi
je 0x103eef6
cmp ebx, edi
je 0x103eef6
push dword [ebp - 0x424]
call fcn.0103e871
test eax, eax
je 0x103ed1f
mov edi, 0x104a138
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lea eax, [ebp - 0x420]
push eax
push 0x10492a8
call dword [sym.imp.ole32.dll_StringFromCLSID]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
test esi, esi
jl 0x103eec8
push 0x1023c9c
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bc84
mov esi, eax
test esi, esi
jl 0x103eec8
push 0x1019828
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01010597
mov esi, eax
test esi, esi
jl 0x103eec8
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01010597
mov esi, eax
test esi, esi
jl 0x103eec8
mov eax, dword [ebx]
add eax, eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x428]
push eax
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jle 0x103ee1c
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103eec8
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push 0x100e5d0
push dword [ebp - 0x424]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x103ee4d
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103eec8
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push dword [ebp - 0x418]
mov dword [ebp - 0x434], 0x208
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jle 0x103ee8e
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103eec8
mov edi, dword [ebp - 0x430]
push 0x103ef0c
push dword [edi]
push dword [ebp - 0x418]
call fcn.01010597
mov esi, eax
test esi, esi
jl 0x103eec8
lea eax, [ebp - 0x414]
push eax
push dword [edi]
push dword [ebp - 0x418]
call fcn.01010597
mov esi, eax
cmp dword [ebp - 0x420], 0
je 0x103eedd
push dword [ebp - 0x420]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x41c], 0
je 0x103eef2
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
jmp 0x103eefb
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret 0xc