Function at 0x13179b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x13179b19
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.131455c0
mov eax, dword [ebp - 8]
call fcn.131455c0
mov eax, dword [ebp + 8]
call fcn.131455c0
xor eax, eax
push ebp
push 0x13179ef9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x13179f14
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.13145638
mov edx, dword [ebp - 4]
mov eax, 0x13179f14
call fcn.131456c0
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.13145678
mov esi, dword [ebp - 4]
test esi, esi
je 0x13179ba0
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x13186d74]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x13179f14
call fcn.1317ba1c
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.13145638
mov eax, dword [0x13186d74]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x13179f14
call fcn.1317ba1c
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x13179be7
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebp - 4]
xchg ecx, eax
call fcn.13145678
mov eax, dword [ebp + 8]
mov edx, 0x13179f20
call fcn.13145568
jne 0x13179c4a
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.131455d0
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.131796b8
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.131455d0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
sete bl
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x13179ebb
lea eax, [ebp - 0x20]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.131455d0
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.131796b8
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x13179eb9
mov eax, dword [ebp + 8]
mov edx, 0x13179f30
call fcn.13145568
jne 0x13179cb6
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x13179c8f
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.131455d0
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.131455d0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, 0x13179f40
call fcn.13145568
jne 0x13179da8
mov eax, dword [ebp - 8]
test eax, eax
je 0x13179cd5
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x20
je 0x13179cec
lea eax, [ebp - 8]
mov edx, 0x13179f54
call fcn.1314540c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.131451d8
xor eax, eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x13179d08
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x13179aec]
call fcn.13146460
add esp, 4
jmp 0x13179d7a
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x13179f54
call fcn.131456c0
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.13145638
mov eax, dword [ebp - 0x28]
call fcn.1317c11c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx], al
mov edx, dword [ebp - 0x14]
mov eax, 0x13179f54
call fcn.131456c0
mov ecx, eax
inc ecx
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.13145678
inc dword [ebp - 0x24]
cmp dword [ebp - 0x14], 0
jne 0x13179d2b
mov eax, dword [ebp - 0x18]
call fcn.131462a4
push eax
mov eax, dword [ebp - 0x18]
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.131455d0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp + 8]
mov edx, 0x13179f60
call fcn.13145568
jne 0x13179de3
mov eax, dword [ebp - 8]
call fcn.1317c0c0
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.131455d0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp + 8]
mov edx, 0x13179f74
call fcn.13145568
jne 0x13179eae
jmp 0x13179e5d
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x13179e04
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x13179f8c
call fcn.131456c0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.13145638
push dword [ebp - 0x2c]
push 0x13179f98
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x13179f8c
call fcn.131456c0
mov edx, eax
add edx, 2
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.13145638
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.131454d4
mov edx, dword [ebp - 8]
mov eax, 0x13179f8c
call fcn.131456c0
test eax, eax
jg 0x13179df8
lea eax, [ebp - 8]
mov edx, 0x13179fa4
call fcn.1314540c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x13179e87
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.131455d0
push eax
push 7
push 0
mov eax, dword [ebp - 0xc]
call fcn.131455d0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x13179ebb
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13179f00
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.13145164
lea eax, [ebp - 0x18]
mov edx, dword [0x13179aec]
call fcn.1314646c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.13145164
lea eax, [ebp + 8]
call fcn.13145140
ret