Function at 0x1046427
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.01046312
test eax, eax
je 0x10466f3
cmp ebx, edi
je 0x10464da
push ebx
push 0x30c
lea eax, [ebp - 0x874]
push eax
call fcn.0100bc94
mov esi, eax
jmp 0x10464dc
xor esi, esi
cmp esi, edi
jl 0x1046648
lea eax, [ebp - 0x874]
push 0x2c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
cmp eax, edi
je 0x10464fd
xor ecx, ecx
mov word [eax], cx
push 0x1024460
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.0100bc94
mov esi, eax
cmp esi, edi
jl 0x1046648
push 0x1046708
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.010105ee
mov esi, eax
cmp esi, edi
jl 0x1046648
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
call fcn.010105ee
mov esi, eax
cmp esi, edi
jl 0x1046648
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 0x104658b
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x104664d
cmp dword [ebp - 0xea0], 2
jne 0x10465f2
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 0x10465f2
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 0x104664d
lea eax, [ebp - 0xe90]
push eax
push 0x618
lea eax, [ebp - 0x874]
push eax
call fcn.01032835
mov esi, eax
cmp esi, edi
jl 0x104664d
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 0x104663f
mov esi, eax
jmp 0x104664d
and eax, 0xffff
or eax, ebx
jmp 0x104663b
mov ebx, 0x80070000
cmp dword [ebp - 0xe94], edi
je 0x1046661
push dword [ebp - 0xe94]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp esi, edi
jl 0x10466f3
lea eax, [ebp - 0xe90]
push eax
push 1
push edi
push 0x1024460
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 0x104669a
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x10466df
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 0x10466c8
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, edi
jl 0x10466df
push dword [ebp - 0xe98]
push 0x1069
push edi
call sub.ntdll.dll_WinSqmSetDWORD
cmp dword [ebp - 0xe90], edi
je 0x10466f3
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.01003279
leave
ret 4