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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xea0
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
xor edi, edi
push 0x4e
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push edi
push eax
xor esi, esi
mov dword [ebp - 0xe94], edi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x616
mov word [ebp - 0x874], ax
lea eax, [ebp - 0x872]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
push 0x28
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0xe90], edi
mov dword [ebp - 0xe9c], edi
mov dword [ebp - 0xea0], 2
call fcn.01045f8e
test eax, eax
je 0x104636f
cmp ebx, edi
je 0x1046156
push ebx
push 0x30c
lea eax, [ebp - 0x874]
push eax
call fcn.0100bc84
mov esi, eax
jmp 0x1046158
xor esi, esi
cmp esi, edi
jl 0x10462c4
lea eax, [ebp - 0x874]
push 0x2c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
cmp eax, edi
je 0x1046179
xor ecx, ecx
mov word [eax], cx
push 0x1023e10
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.0100bc84
mov esi, eax
cmp esi, edi
jl 0x10462c4
push 0x1046384
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.01010597
mov esi, eax
cmp esi, edi
jl 0x10462c4
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.01010597
mov esi, eax
cmp esi, edi
jl 0x10462c4
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0xe94]
push eax
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, edi
mov ebx, 0x80070000
jle 0x1046207
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x10462c9
cmp dword [ebp - 0xea0], 2
jne 0x104626e
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0xe98]
push eax
push edi
push edi
push dword [ebp - 0xe94]
mov dword [ebp - 0xe98], 1
mov dword [ebp - 0xe9c], 0x618
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x104626e
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0xe8c]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
cmp eax, edi
je 0x10462c9
lea eax, [ebp - 0xe90]
push eax
push 0x618
lea eax, [ebp - 0x874]
push eax
call fcn.010322f5
mov esi, eax
cmp esi, edi
jl 0x10462c9
mov eax, dword [ebp - 0xe90]
add eax, 2
push eax
mov dword [ebp - 0xe9c], eax
lea eax, [ebp - 0x874]
push eax
push 1
push edi
push edi
push dword [ebp - 0xe94]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, edi
jg 0x10462bb
mov esi, eax
jmp 0x10462c9
and eax, 0xffff
or eax, ebx
jmp 0x10462b7
mov ebx, 0x80070000
cmp dword [ebp - 0xe94], edi
je 0x10462dd
push dword [ebp - 0xe94]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, edi
jl 0x104636f
lea eax, [ebp - 0xe90]
push eax
push 1
push edi
push 0x1023e10
push 0x80000001
mov dword [ebp - 0xe90], edi
mov dword [ebp - 0xe98], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x1046316
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x104635b
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xe98]
push eax
push edi
push edi
push edi
push dword [ebp - 0xe90]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
cmp eax, edi
jle 0x1046344
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x104635b
push dword [ebp - 0xe98]
push 0x1069
push edi
call sub.ntdll.dll_WinSqmSetDWORD
cmp dword [ebp - 0xe90], edi
je 0x104636f
push dword [ebp - 0xe90]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret 4