Function at 0x103f36d
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 0x103f401
mov eax, 0x80070015
jmp 0x103f5d3
cmp dword [ebp - 0x418], edi
je 0x103f5ce
cmp ebx, edi
je 0x103f5ce
push dword [ebp - 0x424]
call fcn.0103ef91
test eax, eax
je 0x103f3f7
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 0x103f5a0
push 0x10242ec
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bc94
mov esi, eax
test esi, esi
jl 0x103f5a0
push 0x101a818
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010105ee
mov esi, eax
test esi, esi
jl 0x103f5a0
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.010105ee
mov esi, eax
test esi, esi
jl 0x103f5a0
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 0x103f4f4
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103f5a0
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push 0x100e598
push dword [ebp - 0x424]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jle 0x103f525
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103f5a0
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 0x103f566
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x103f5a0
mov edi, dword [ebp - 0x430]
push 0x103f5e4
push dword [edi]
push dword [ebp - 0x418]
call fcn.010105ee
mov esi, eax
test esi, esi
jl 0x103f5a0
lea eax, [ebp - 0x414]
push eax
push dword [edi]
push dword [ebp - 0x418]
call fcn.010105ee
mov esi, eax
cmp dword [ebp - 0x420], 0
je 0x103f5b5
push dword [ebp - 0x420]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x41c], 0
je 0x103f5ca
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
jmp 0x103f5d3
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 0xc