Function at 0x100594e
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.0100673a
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x1005b31
cmp dword [esi + 0x2b0], edi
je 0x1005987
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, 0x1005a4c
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.010054ac
test eax, eax
jl 0x1017382
xor eax, eax
cmp dword [ebp - 4], edi
sete al
mov dword [esi + 0x2b8], eax
cmp eax, edi
jne 0x10173f9
push 1
push 1
push edi
lea ebx, [esi + 0x2c0]
push ebx
push 0x1004d9c
push dword [ebp + 8]
call fcn.010054ac
test eax, eax
jge 0x10059e3
mov dword [ebx], 1
cmp dword [ebx], edi
je 0x1017430
lea eax, [ebp - 8]
push eax
push 0x1005a0c
mov dword [ebp - 8], edi
call sub.slc.dll_SLGetWindowsInformationDWORD
cmp eax, edi
mov dword [ebp - 0xc], eax
jge 0x1017469
jmp 0x1017466
push edi
push 1
push edi
lea ebx, [esi + 0x2c4]
push ebx
push 0x1005af8
push dword [ebp + 8]
call fcn.010054ac
test eax, eax
jge 0x1005a7e
mov dword [ebx], edi
push edi
push 1
push edi
lea ebx, [esi + 0x2c8]
push ebx
push 0x1004d68
push dword [ebp + 8]
call fcn.010054ac
test eax, eax
jge 0x1005a9c
mov dword [ebx], edi
cmp dword [ebx], edi
jne 0x10174a4
push 0x64
pop ebx
push ebx
push 0xea60
push 1
lea edi, [esi + 0x27c]
push edi
push 0x1005ad4
push dword [ebp + 8]
call fcn.010054ac
test eax, eax
jge 0x10174df
mov dword [edi], ebx
jmp 0x10174df
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 8
cmp dword [ebp + 0xc], 0x80000001
jne 0x10059aa
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push 0x1004d2c
push 0x80000002
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jge 0x10173b2
mov dword [ebp + 0xc], edi
jmp 0x10173c8
push 1
push 1
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.010054ac
test eax, eax
jge 0x10173cf
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 0x10059aa
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10059aa
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x10059c0
test byte [eax + 0x1c], 0x10
je 0x10059c0
push ebx
push 0x1017518
push 0x101cb98
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028317
jmp 0x10059c0
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x10059eb
test byte [eax + 0x1c], 0x10
je 0x10059eb
push 0x1017518
push 0x101cb98
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01022472
jmp 0x10059eb
mov dword [ebp - 8], edi
cmp dword [ebp - 8], edi
jne 0x101747d
mov dword [esi + 0x2cc], 1
jmp 0x1005a60
push edi
push 1
push edi
lea ebx, [esi + 0x2cc]
push ebx
push 0x10174f8
push dword [ebp + 8]
call fcn.010054ac
test eax, eax
jge 0x1005a60
mov dword [ebx], edi
jmp 0x1005a60
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x1005aa4
test byte [eax + 0x1c], 0x10
je 0x1005aa4
push 0x1004d68
push 0x1017518
push 0x101cb98
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028317
jmp 0x1005aa4
push dword [ebp + 8]
lea ecx, [esi + 0x268]
mov eax, dword [ecx]
call dword [eax]
mov ecx, esi
call fcn.010170f1
jmp 0x1005b30