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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
call fcn.01010bb7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1045603
jmp 0x104589e
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push SysReAllocString
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1045646
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1045644
jmp 0x104589e
jmp 0x104564d
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x10649d4]
push eax
lea ecx, [ebp - 0x50]
call fcn.0101236d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.01010c92
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10456b6
jmp 0x104589e
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
push 0
push 0
push 0
mov eax, dword [0x10649d8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1045705
cmp dword [ebp - 0x1c], 2
je 0x10456eb
jmp 0x104589e
cmp dword [ebp - 0x28], 0
je 0x1045700
mov edx, dword [0x10649dc]
push edx
lea ecx, [ebp - 0x40]
call fcn.01028e50
jmp 0x1045794
cmp dword [ebp - 0x28], 0
je 0x1045794
cmp dword [ebp - 0x44], 0
je 0x1045794
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x54]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x1045742
jmp 0x104589e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov dword [edx], eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [0x10649d8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1045786
jmp 0x104589e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0102f1f0
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
mov edx, dword [ebp + 8]
push edx
call fcn.01010eb5
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0102be90
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x104581c
lea ecx, [ebp - 0x40]
call fcn.01039a30
push eax
lea ecx, [ebp - 0x48]
call fcn.01010eb5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.010107dc
push eax
mov ecx, dword [ebp + 8]
call fcn.0101095c
test eax, eax
je 0x10457fb
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.010115e7
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.01010c92
jmp 0x1045897
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x40]
call fcn.01028e50
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x40]
call fcn.01027cd0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1045844
jmp 0x104589e
mov edx, dword [ebp - 0x44]
shl edx, 1
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 7
push 0
mov ecx, dword [0x10649d8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104587b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0101da1e
add esp, 4
jmp 0x104589e
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.0101da1e
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jne 0x10458b4
cmp dword [ebp - 0x20], 0
je 0x10458b4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x10458c4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
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