Function at 0x103ddbd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
push 0xd8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jne 0x103ddf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x103e0d3
mov edx, dword [ebp + 0xc]
mov ecx, edx
push ebx
xor ebx, ebx
inc ebx
and ecx, ebx
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax + 4], 0x1014f00
mov eax, dword [esi]
mov dword [eax + 8], 0x10150a0
mov eax, dword [esi]
mov dword [eax + 0xc], 0x1015088
mov eax, dword [esi]
mov dword [eax + 0x10], 0x18
mov eax, dword [esi]
mov dword [eax + 0x14], ebx
push edi
mov edi, dword [esi]
push 4
pop eax
and edx, eax
mov dword [edi + 0x18], edx
mov dword [ebp + 0x10], edx
mov edx, dword [esi]
mov dword [edx + 0x1c], 0x1014f00
mov edx, dword [esi]
mov dword [edx + 0x20], 0x1015064
mov edx, dword [esi]
mov dword [edx + 0x24], 0x1014e08
mov edx, dword [esi]
mov dword [edx + 0x28], eax
mov edx, dword [esi]
mov dword [edx + 0x2c], eax
mov edx, dword [esi]
mov dword [edx + 0x30], ecx
mov edx, dword [esi]
mov ecx, 0x1014e38
mov dword [edx + 0x34], ecx
mov edx, dword [esi]
mov dword [edx + 0x38], 0x1015050
mov edx, dword [esi]
mov dword [edx + 0x3c], 0x1010ab4
mov edx, dword [esi]
mov dword [edx + 0x40], 2
mov edx, dword [esi]
mov dword [edx + 0x44], ebx
mov edi, dword [esi]
mov edx, dword [ebp + 0xc]
and edx, 8
mov dword [edi + 0x48], edx
mov edx, dword [esi]
mov dword [edx + 0x4c], 0x1014e78
mov edx, dword [esi]
mov dword [edx + 0x50], 0x1015038
mov edx, dword [esi]
mov dword [edx + 0x54], 0x1013d34
mov edx, dword [esi]
mov dword [edx + 0x58], eax
mov edx, dword [esi]
mov dword [edx + 0x5c], ebx
mov edi, dword [esi]
mov edx, dword [ebp + 0xc]
and edx, 2
mov dword [edi + 0x60], edx
mov edx, dword [esi]
mov edi, dword [ebp + 0x10]
mov dword [edx + 0x64], ecx
mov edx, dword [esi]
mov dword [edx + 0x68], 0x1015018
mov edx, dword [esi]
mov dword [edx + 0x6c], 0x1013d34
mov edx, dword [esi]
mov dword [edx + 0x70], eax
mov edx, dword [esi]
mov dword [edx + 0x74], ebx
mov edx, dword [esi]
mov dword [edx + 0x78], edi
mov edx, dword [esi]
mov dword [edx + 0x7c], ecx
mov edx, dword [esi]
mov dword [edx + 0x80], 0x1014ffc
mov edx, dword [esi]
mov dword [edx + 0x84], 0x1014ff4
mov edx, dword [esi]
mov dword [edx + 0x88], 6
mov edx, dword [esi]
mov dword [edx + 0x8c], ebx
mov edi, dword [esi]
mov edx, dword [ebp + 0xc]
and edx, 0x20
mov dword [edi + 0x90], edx
mov edi, dword [esi]
mov dword [edi + 0x94], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x98], 0x1014fd0
mov ecx, dword [esi]
mov dword [ecx + 0x9c], 0x1014e0c
mov ecx, dword [esi]
mov dword [ecx + 0xa0], eax
mov ecx, dword [esi]
mov dword [ecx + 0xa4], eax
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
and eax, 0x10
mov dword [ecx + 0xa8], eax
mov eax, dword [esi]
mov dword [eax + 0xac], 0x1014e10
mov eax, dword [esi]
mov dword [eax + 0xb0], 0x1014fac
mov eax, dword [esi]
mov dword [eax + 0xb4], 0x1014fa4
mov ecx, dword [esi]
push 8
pop eax
mov dword [ecx + 0xb8], eax
mov ecx, dword [esi]
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edx
mov dword [ecx + 0xbc], ebx
mov dword [ebp + 0xc], eax
jne 0x103dfb7
cmp edx, edi
je 0x103e0d1
lea eax, [ebp - 4]
push eax
push 0x1012460
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x103e0d1
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push 0x1014f7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103e0d1
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x103e00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103e0d1
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0
push 0x1014f7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103e0d1
cmp dword [ebp - 0x10], eax
je 0x103e03e
mov eax, dword [edi]
mov ecx, 0xffffdfff
and dword [eax], ecx
mov eax, dword [edi]
and dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x103e089
mov eax, dword [edi]
and dword [eax], 0xfffffffd
mov eax, dword [edi]
and dword [eax], 0xfffffffd
mov eax, dword [edi]
mov ecx, 0xfffffdff
and dword [eax], ecx
mov eax, dword [edi]
and dword [eax], ecx
mov eax, dword [edi]
mov ecx, 0xfffff7ff
and dword [eax], ecx
mov eax, dword [edi]
and dword [eax], ecx
mov eax, dword [edi]
mov ecx, 0xffffefff
and dword [eax], ecx
mov eax, dword [edi]
and dword [eax], ecx
mov eax, dword [edi]
and dword [eax], 0xfffffffb
mov eax, dword [edi]
and dword [eax], 0xfffffffb
mov eax, dword [edi]
and dword [eax], 0xfffffff7
mov eax, dword [edi]
and dword [eax], 0xfffffff7
mov eax, dword [esi]
mov dword [eax + 0xc0], ebx
mov eax, dword [esi]
mov dword [eax + 0xc4], 0x1014e38
mov eax, dword [esi]
mov dword [eax + 0xc8], 0x1014f7c
mov eax, dword [esi]
mov ecx, dword [edi]
mov dword [eax + 0xcc], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xd0], ecx
mov eax, dword [esi]
mov dword [eax + 0xd4], 3
mov dword [ebp + 0xc], 9
pop edi
pop ebx
cmp dword [ebp - 4], 0
pop esi
je 0x103e0e3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
leave
ret 0x14