Function at 0x1046d30
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x34]
call fcn.01010bb7
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 1
mov ecx, dword [0x10649d4]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0101236d
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.01010c92
lea edx, [ebp - 0x18]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1046dd7
jmp 0x104707a
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
mov ecx, dword [0x10649d8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1046e1e
cmp dword [ebp - 0x14], 2
jne 0x1046e19
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 1
jmp 0x104707a
mov ecx, dword [ebp - 0x38]
add ecx, 4
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
jne 0x1046e4b
jmp 0x104707a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
push 0
push 0
mov edx, dword [0x10649d8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1046e8f
jmp 0x104707a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x34]
call fcn.0102f1f0
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
mov eax, dword [ebp + 8]
push eax
call fcn.01010eb5
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0102be90
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x1046edd
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1046fe1
lea ecx, [ebp - 0x40]
call fcn.01010c62
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.01010c62
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.010107dc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.010106e3
push eax
lea ecx, [ebp - 0x40]
call fcn.010115e7
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x40]
call fcn.0101095c
test eax, eax
jne 0x1046fb4
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x34]
call fcn.010306c0
lea ecx, [ebp - 0x34]
call fcn.010106d5
movzx edx, al
test edx, edx
jne 0x1046fb2
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.010470d0
lea ecx, [ebp - 0x34]
call fcn.010107dc
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x34]
call fcn.010106e3
push eax
lea ecx, [ebp - 0x3c]
call fcn.010115e7
mov edx, dword [0x10649dc]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0101095c
test eax, eax
jne 0x1046fb2
mov eax, dword [0x10649dc]
push eax
lea ecx, [ebp - 0x48]
call fcn.0101236d
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x34]
call fcn.010306c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.01010c92
jmp 0x1046fc9
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.010306c0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.01010c92
lea ecx, [ebp - 0x34]
call fcn.010106d5
movzx ecx, al
test ecx, ecx
jne 0x1047052
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
call fcn.01027cd0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1047007
jmp 0x104707a
mov eax, dword [ebp - 0x38]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 7
push 0
mov edx, dword [0x10649d8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104703e
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0101da1e
add esp, 4
jmp 0x104707a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0101da1e
add esp, 4
jmp 0x1047069
mov edx, dword [0x10649d8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1047069
jmp 0x104707a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
jne 0x1047090
cmp dword [ebp - 0x18], 0
je 0x1047090
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01010c00
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18