Function at 0x100594a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.01006732
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x1005b2d
cmp dword [esi + 0x2b0], edi
je 0x1005983
mov ecx, dword [esi + 0x260]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax]
push ebx
push 1
push 1
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x1005a48
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.010054a8
test eax, eax
jl 0x10173ba
xor eax, eax
cmp dword [ebp - 4], edi
sete al
mov dword [esi + 0x2b8], eax
cmp eax, edi
jne 0x1017431
push 1
push 1
push edi
lea ebx, [esi + 0x2c0]
push ebx
push 0x1004d94
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x10059df
mov dword [ebx], 1
cmp dword [ebx], edi
je 0x1017468
lea eax, [ebp - 8]
push eax
push 0x1005a08
mov dword [ebp - 8], edi
call sub.slc.dll_SLGetWindowsInformationDWORD
cmp eax, edi
mov dword [ebp - 0xc], eax
jge 0x10174a1
jmp 0x101749e
push edi
push 1
push edi
lea ebx, [esi + 0x2c4]
push ebx
push 0x1005af4
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x1005a7a
mov dword [ebx], edi
push edi
push 1
push edi
lea ebx, [esi + 0x2c8]
push ebx
push 0x1004d60
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x1005a98
mov dword [ebx], edi
cmp dword [ebx], edi
jne 0x10174dc
push 0x64
pop ebx
push ebx
push 0xea60
push 1
lea edi, [esi + 0x27c]
push edi
push 0x1005ad0
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x1017517
mov dword [edi], ebx
jmp 0x1017517
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 8
cmp dword [ebp + 0xc], 0x80000001
jne 0x10059a6
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push 0x1004d24
push 0x80000002
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jge 0x10173ea
mov dword [ebp + 0xc], edi
jmp 0x1017400
push 1
push 1
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.010054a8
test eax, eax
jge 0x1017407
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 0xc], edi
je 0x10059a6
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10059a6
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x10059bc
test byte [eax + 0x1c], 0x10
je 0x10059bc
push ebx
push 0x1017550
push 0x101cb20
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102829f
jmp 0x10059bc
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x10059e7
test byte [eax + 0x1c], 0x10
je 0x10059e7
push 0x1017550
push 0x101cb20
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010223fa
jmp 0x10059e7
mov dword [ebp - 8], edi
cmp dword [ebp - 8], edi
jne 0x10174b5
mov dword [esi + 0x2cc], 1
jmp 0x1005a5c
push edi
push 1
push edi
lea ebx, [esi + 0x2cc]
push ebx
push 0x1017530
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x1005a5c
mov dword [ebx], edi
jmp 0x1005a5c
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x1005aa0
test byte [eax + 0x1c], 0x10
je 0x1005aa0
push 0x1004d60
push 0x1017550
push 0x101cb20
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102829f
jmp 0x1005aa0
push dword [ebp + 8]
lea ecx, [esi + 0x268]
mov eax, dword [ecx]
call dword [eax]
mov ecx, esi
call fcn.01017129
jmp 0x1005b2c