Function at 0x10016f55
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10016f9d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push 0x66c0
push 0x7fc8
push dword [ebp - 0x50]
push 0x5b4
push 0
push 0x3818
call fcn.10017c12
add esp, 0x1c
jmp 0x10017153
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x5c], 0x100945d8
mov dword [ebp - 0x18], 0xfa1
mov dword [ebp - 0x3c], 0x10007c40
cmp dword [ebp - 0x18], 0x110e
jle 0x1001709e
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
and dword [ebp - 0x14], 0
jmp 0x10016ffc
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1bf4
jge 0x1001709e
and dword [ebp - 8], 0
jmp 0x10017016
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xd3b
jge 0x10017099
and dword [ebp - 0xc], 0
jmp 0x1001702c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc13
jge 0x10017094
and dword [ebp - 0x10], 0
jmp 0x10017042
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ab0
jge 0x10017092
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
shl eax, cl
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x8c]
call fcn.100127de
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.10026416
push eax
call fcn.10079103
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.1002640c
jmp 0x1001703b
jmp 0x10017025
jmp 0x1001700f
jmp 0x10016ff5
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x100170f6
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
push 0x189f
push 0
push 0x253b
call fcn.1001f0c6
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call fcn.10012857
pop ecx
mov esi, eax
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.10015905
shl eax, 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + eax*4 + 4]
mov dword [ecx], eax
jmp 0x10017153
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10017124
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10017141
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.100267ee
mov dword [eax], 0xaf72
jmp 0x10017119
cmp dword [ebp - 0x18], 0xd32
jge 0x10017153
push dword [ebp - 0x3c]
call fcn.10079103
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret