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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10020f1
push ebx
push 4
pop ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x1001210
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
mov ecx, dword [ebp + 0x10]
test eax, eax
jne 0x1001ec0
cmp dword [ebp - 8], ebx
jne 0x1001ec0
cmp dword [ebp + 8], ebx
jne 0x1001ec0
cmp dword [ebp - 0x10], ecx
je 0x1001f0e
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ef2
test dword [eax + 0x1c], 0x1000
je 0x1001ef2
push ecx
push dword [ebp + 0xc]
push 0x1001180
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a18
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020f0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov esi, 0x10011fc
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x1001f40
cmp dword [ebp - 8], ebx
jne 0x1001f40
cmp dword [ebp + 8], ebx
jne 0x1001f40
cmp dword [ebp - 0x14], ecx
je 0x1001f8e
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001f72
test dword [eax + 0x1c], 0x1000
je 0x1001f72
push ecx
push dword [ebp + 0xc]
push 0x1001180
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a18
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020f0
push 8
pop ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov esi, 0x10011e8
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
test eax, eax
jne 0x1001fcd
cmp dword [ebp - 8], 0xb
jne 0x1001fcd
cmp dword [ebp + 8], ebx
jne 0x1001fcd
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x100201a
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ffe
test dword [eax + 0x1c], 0x1000
je 0x1001ffe
push dword [ebp + 0xc]
push 0x1001180
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019ab
push ebx
push dword [ebp + 0x18]
push 0xb
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020f0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 8], ebx
push 0
mov ebx, 0x10011d4
push ebx
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x1002059
cmp dword [ebp - 8], 0xb
jne 0x1002059
cmp dword [ebp + 8], 8
jne 0x1002059
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x10020a3
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x100208a
test dword [eax + 0x1c], 0x1000
je 0x100208a
push dword [ebp + 0xc]
push 0x1001180
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019ab
push 8
push dword [ebp + 0x1c]
push 0xb
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020f0
cmp dword [ebp - 0xc], 0
je 0x10020f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push 0x10011c0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10020de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10020f0
push dword [ebp + 0xc]
push edi
call fcn.01003074
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 4], 0
je 0x1002100
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x18