Function at 0x10007f60
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.10006c10
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x10007fbe
mov eax, dword [ebp - 0x201c]
jmp 0x100083b0
lea ecx, [ebp - 0x200a]
push ecx
lea edx, [ebp - 0x2008]
push edx
call fcn.10008430
add esp, 8
test eax, eax
jne 0x10008013
mov eax, 1
test eax, eax
je 0x10007fe3
jmp 0x10007ffe
lea ecx, [ebp - 0x2008]
push ecx
push str._s_Type_not_supported_n
push 0
push 0x100
call fcn.1001b340
add esp, 0x10
push 0x20f
mov ecx, dword [ebp - 0x203c]
call fcn.10006b00
jmp 0x100083b0
mov ecx, dword [ebp - 0x203c]
call fcn.10006b70
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp - 0x203c]
call fcn.10006c10
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x1000804a
mov eax, dword [ebp - 0x201c]
jmp 0x100083b0
mov eax, dword [ebp - 0x200a]
and eax, 0xffff
mov dword [ebp - 0x2040], eax
cmp dword [ebp - 0x2040], 8
je 0x1000807f
cmp dword [ebp - 0x2040], 0x11
je 0x100081d2
cmp dword [ebp - 0x2040], 0x13
je 0x100080e5
jmp 0x10008334
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp + 8]
call fcn.100083f0
mov dword [ebp - 0x1004], eax
mov eax, 1
test eax, eax
je 0x100080a3
jmp 0x100080e0
cmp dword [ebp + 0xc], 0
jne 0x100080b5
mov dword [ebp - 0x2044], str.default
jmp 0x100080be
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2044], ecx
mov edx, dword [ebp - 0x2044]
push edx
lea eax, [ebp - 0x1000]
push eax
push str.Setting_Value__s_at__s_n
push 2
push 0x100
call fcn.1001b340
add esp, 0x14
jmp 0x10008334
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0x2024], ecx
cmp dword [ebp - 0x2024], 0
jne 0x10008106
mov dword [ebp - 0x2048], 0
jmp 0x10008154
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.100060b0
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.100083c0
mov dword [ebp - 0x1004], eax
mov ecx, 1
test ecx, ecx
je 0x10008190
jmp 0x100081cd
cmp dword [ebp + 0xc], 0
jne 0x100081a2
mov dword [ebp - 0x2050], str.default
jmp 0x100081ab
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 str.Setting_Value__d_at__s_n
push 2
push 0x100
call fcn.1001b340
add esp, 0x14
jmp 0x10008334
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 0x1000821b
mov ecx, 1
test ecx, ecx
je 0x100081fd
jmp 0x10008211
push str.Binary_Data_does_not_fall_on_BYTE_boundries_n
push 0
push 0x100
call fcn.1001b340
add esp, 0xc
mov eax, 0x80004005
jmp 0x100083b0
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 0x10008279
mov eax, 0x80004005
jmp 0x100083b0
mov dword [ebp - 0x2034], 0
jmp 0x10008294
mov edx, dword [ebp - 0x2034]
add edx, 1
mov dword [ebp - 0x2034], edx
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x2030]
jge 0x10008309
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.100084f0
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 0x10008285
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 0x10008388
mov dword [ebp - 0x2018], 0x204
cmp dword [ebp - 0x1004], 0
jg 0x1000835e
mov eax, dword [ebp - 0x1004]
mov dword [ebp - 0x2058], eax
jmp 0x1000837c
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.10006c10
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x100083ae
mov eax, dword [ebp - 0x201c]
jmp 0x100083b0
xor eax, eax
lea esp, [ebp - 0x205c]
pop esi
mov esp, ebp
pop ebp
ret 0xc