Function at 0x1000de17
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100304ce
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x10032138]
xor eax, esp
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
and dword [esp + 0x14], 0
lea ecx, [esp + 0x44]
call fcn.1001b8d0
and dword [esp + reloc.ADVAPI32.dll_TraceMessage], 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
call fcn.1001c2f6
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], 1
call fcn.1000fced
xor eax, eax
mov byte [esp + 0x108], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, ebx
or edi, reloc.ADVAPI32.dll_TraceMessage
mov dword [esp + 0x28], 1
call fcn.1000dc2c
mov esi, eax
test esi, esi
js 0x1000e07b
lea ebx, [esp + 0x8c]
call fcn.1000fe41
mov esi, eax
test esi, esi
js 0x1000e077
lea eax, [esp + 0xa8]
push eax
call fcn.100106b7
mov esi, eax
test esi, esi
js 0x1000e077
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10010c6b
mov ebx, dword [esp + 0x18]
mov esi, eax
test esi, esi
js 0x1000e07b
xor eax, eax
push eax
push eax
push eax
push eax
push 1
push eax
push eax
call dword [ebx + 8]
mov edi, eax
cmp edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x1000df3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e07b
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000e07b
xor ecx, ecx
push ecx
push edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push 0x10003110
push 0x80000002
call dword [ebx + 0x18]
mov esi, eax
test esi, esi
jne 0x1000df27
cmp dword [esp + 0x20], 2
push 8
pop esi
jne 0x1000dfc3
and dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x1000e128
push dword [esp + 0x24]
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000dfab
cmp dword [esp + 0x24], 0xb
jne 0x1000dfab
cmp dword [esp + 0x1c], esi
je 0x1000dfb0
and dword [esp + 0x28], 0
push 0
push dword [esp + 0x14]
call dword [ebx + 0x14]
mov esi, eax
test esi, esi
jne 0x1000df27
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000c424
call dword [sym.imp.XmlLite.dll_CreateXmlReader]
mov esi, eax
test esi, esi
js 0x1000e07b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 2
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x1000e07b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 2
push 1
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
js 0x1000e07b
push dword [ebp + 0xc]
lea ecx, [esp + 0x48]
push dword [ebp + 8]
call fcn.1001b923
mov esi, eax
test esi, esi
js 0x1000e07b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x1000e07b
push dword [esp + 0x10]
lea eax, [esp + 0x60]
push edi
push eax
push dword [esp + 0x20]
push ebx
call fcn.1000e155
mov esi, eax
test esi, esi
js 0x1000e07b
cmp esi, 1
je 0x1000e07b
cmp dword [esp + 0x28], 0
je 0x1000e07b
push 8
lea eax, [esp + 0x30]
push eax
push 0xb
push 0
push 0x1000e128
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1000e07b
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1000e08e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esp + 0x14], 0
cmp dword [esp + 0x10], 0
je 0x1000e09f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1000e0d9
test esi, esi
js 0x1000e0ce
cmp esi, 1
je 0x1000e0ce
push edi
call dword [ebx + 0xc]
test eax, eax
jne 0x1000e0d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e0d2
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000e0d2
push edi
call dword [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], 1
call fcn.1000fd84
lea ecx, [esp + 0x38]
mov byte [esp + 0x108], 0
call fcn.1001c319
or dword [esp + reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.1001b8ef
mov eax, esi
mov ecx, dword [esp + reloc.ADVAPI32.dll_TraceMessage]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8