Function at 0x10007f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.1001fdf0
push esi
mov dword [ebp - 0x203c], ecx
mov dword [ebp - 0x2014], 0
mov dword [ebp - 0x1004], 0
mov dword [ebp - 0x2018], 0
lea eax, [ebp - 0x2008]
push eax
mov ecx, dword [ebp - 0x203c]
call fcn.10006c20
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x10007fce
mov eax, dword [ebp - 0x201c]
jmp 0x100083c0
lea ecx, [ebp - 0x200a]
push ecx
lea edx, [ebp - 0x2008]
push edx
call fcn.10008440
add esp, 8
test eax, eax
jne 0x10008023
mov eax, 1
test eax, eax
je 0x10007ff3
jmp 0x1000800e
lea ecx, [ebp - 0x2008]
push ecx
push 0x1013e040
push 0
push 0x100
call fcn.10018300
add esp, 0x10
push 0x20f
mov ecx, dword [ebp - 0x203c]
call fcn.10006b10
jmp 0x100083c0
mov ecx, dword [ebp - 0x203c]
call fcn.10006b80
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp - 0x203c]
call fcn.10006c20
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x1000805a
mov eax, dword [ebp - 0x201c]
jmp 0x100083c0
mov eax, dword [ebp - 0x200a]
and eax, 0xffff
mov dword [ebp - 0x2040], eax
cmp dword [ebp - 0x2040], 8
je 0x1000808f
cmp dword [ebp - 0x2040], 0x11
je 0x100081e2
cmp dword [ebp - 0x2040], 0x13
je 0x100080f5
jmp 0x10008344
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp + 8]
call fcn.10008400
mov dword [ebp - 0x1004], eax
mov eax, 1
test eax, eax
je 0x100080b3
jmp 0x100080f0
cmp dword [ebp + 0xc], 0
jne 0x100080c5
mov dword [ebp - 0x2044], 0x1013e038
jmp 0x100080ce
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2044], ecx
mov edx, dword [ebp - 0x2044]
push edx
lea eax, [ebp - 0x1000]
push eax
push 0x1013e020
push 2
push 0x100
call fcn.10018300
add esp, 0x14
jmp 0x10008344
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0x2024], ecx
cmp dword [ebp - 0x2024], 0
jne 0x10008116
mov dword [ebp - 0x2048], 0
jmp 0x10008164
mov edx, dword [ebp - 0x2024]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x2028], eax
mov eax, dword [ebp - 0x2028]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.1001fdf0
mov dword [ebp - 0x204c], esp
mov eax, dword [ebp - 0x2028]
push eax
mov ecx, dword [ebp - 0x2024]
push ecx
mov edx, dword [ebp - 0x204c]
push edx
call fcn.100060c0
mov dword [ebp - 0x2048], eax
lea eax, [ebp - 0x2020]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x2048]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 8]
call fcn.100083d0
mov dword [ebp - 0x1004], eax
mov ecx, 1
test ecx, ecx
je 0x100081a0
jmp 0x100081dd
cmp dword [ebp + 0xc], 0
jne 0x100081b2
mov dword [ebp - 0x2050], 0x1013e038
jmp 0x100081bb
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2050], edx
mov eax, dword [ebp - 0x2050]
push eax
mov ecx, dword [ebp - 0x2020]
push ecx
push 0x1013e008
push 2
push 0x100
call fcn.10018300
add esp, 0x14
jmp 0x10008344
lea edx, [ebp - 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x2030], eax
mov eax, dword [ebp - 0x2030]
and eax, 1
test eax, eax
je 0x1000822b
mov ecx, 1
test ecx, ecx
je 0x1000820d
jmp 0x10008221
push 0x1013dfd8
push 0
push 0x100
call fcn.10018300
add esp, 0xc
mov eax, 0x80004005
jmp 0x100083c0
mov eax, dword [ebp - 0x2030]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x202c], eax
mov eax, dword [ebp - 0x202c]
add eax, 3
and al, 0xfc
call fcn.1001fdf0
mov dword [ebp - 0x2054], esp
mov edx, dword [ebp - 0x2054]
mov dword [ebp - 0x2038], edx
mov eax, dword [ebp - 0x202c]
push eax
push 0
mov ecx, dword [ebp - 0x2038]
push ecx
call fcn.1001f280
add esp, 0xc
cmp dword [ebp - 0x2038], 0
jne 0x10008289
mov eax, 0x80004005
jmp 0x100083c0
mov dword [ebp - 0x2034], 0
jmp 0x100082a4
mov edx, dword [ebp - 0x2034]
add edx, 1
mov dword [ebp - 0x2034], edx
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x2030]
jge 0x10008319
mov eax, dword [ebp - 0x2034]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov ecx, dword [ebp - 0x2034]
mov dl, byte [ebp + ecx - 0x1000]
push edx
call fcn.10008500
add esp, 4
and eax, 0xff
mov ecx, dword [ebp - 0x2034]
and ecx, 1
mov edx, 1
sub edx, ecx
shl edx, 2
mov ecx, edx
shl eax, cl
mov ecx, dword [ebp - 0x2038]
xor edx, edx
mov dl, byte [ecx + esi]
mov ecx, edx
or ecx, eax
mov eax, dword [ebp - 0x2034]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x2038]
mov byte [edx + eax], cl
jmp 0x10008295
mov eax, dword [ebp - 0x202c]
push eax
mov ecx, dword [ebp - 0x2038]
push ecx
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000f240
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1004], eax
cmp dword [ebp - 0x1004], 0
je 0x10008398
mov dword [ebp - 0x2018], 0x204
cmp dword [ebp - 0x1004], 0
jg 0x1000836e
mov eax, dword [ebp - 0x1004]
mov dword [ebp - 0x2058], eax
jmp 0x1000838c
mov ecx, dword [ebp - 0x1004]
and ecx, 0xffff
or ecx, 0x70000
or ecx, 0x80000000
mov dword [ebp - 0x2058], ecx
mov edx, dword [ebp - 0x2058]
mov dword [ebp - 0x201c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x203c]
call fcn.10006c20
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x100083be
mov eax, dword [ebp - 0x201c]
jmp 0x100083c0
xor eax, eax
lea esp, [ebp - 0x205c]
pop esi
mov esp, ebp
pop ebp
ret 0xc