Function at 0x10007f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.1001fd70
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.10006bc0
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x10007f8e
mov eax, dword [ebp - 0x201c]
jmp 0x10008380
lea ecx, [ebp - 0x200a]
push ecx
lea edx, [ebp - 0x2008]
push edx
call fcn.10008400
add esp, 8
test eax, eax
jne 0x10007fe3
mov eax, 1
test eax, eax
je 0x10007fb3
jmp 0x10007fce
lea ecx, [ebp - 0x2008]
push ecx
push str._s_Type_not_supported_n
push 0
push 0x100
call fcn.100066e0
add esp, 0x10
push 0x20f
mov ecx, dword [ebp - 0x203c]
call fcn.10006ab0
jmp 0x10008380
mov ecx, dword [ebp - 0x203c]
call fcn.10006b20
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp - 0x203c]
call fcn.10006bc0
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x1000801a
mov eax, dword [ebp - 0x201c]
jmp 0x10008380
mov eax, dword [ebp - 0x200a]
and eax, 0xffff
mov dword [ebp - 0x2040], eax
cmp dword [ebp - 0x2040], 8
je 0x1000804f
cmp dword [ebp - 0x2040], 0x11
je 0x100081a2
cmp dword [ebp - 0x2040], 0x13
je 0x100080b5
jmp 0x10008304
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1000]
push edx
mov ecx, dword [ebp + 8]
call fcn.100083c0
mov dword [ebp - 0x1004], eax
mov eax, 1
test eax, eax
je 0x10008073
jmp 0x100080b0
cmp dword [ebp + 0xc], 0
jne 0x10008085
mov dword [ebp - 0x2044], str.default
jmp 0x1000808e
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.100066e0
add esp, 0x14
jmp 0x10008304
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0x2024], ecx
cmp dword [ebp - 0x2024], 0
jne 0x100080d6
mov dword [ebp - 0x2048], 0
jmp 0x10008124
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.1001fd70
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.10006050
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.10008390
mov dword [ebp - 0x1004], eax
mov ecx, 1
test ecx, ecx
je 0x10008160
jmp 0x1000819d
cmp dword [ebp + 0xc], 0
jne 0x10008172
mov dword [ebp - 0x2050], str.default
jmp 0x1000817b
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.100066e0
add esp, 0x14
jmp 0x10008304
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 0x100081eb
mov ecx, 1
test ecx, ecx
je 0x100081cd
jmp 0x100081e1
push str.Binary_Data_does_not_fall_on_BYTE_boundries_n
push 0
push 0x100
call fcn.100066e0
add esp, 0xc
mov eax, 0x80004005
jmp 0x10008380
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.1001fd70
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.1001f200
add esp, 0xc
cmp dword [ebp - 0x2038], 0
jne 0x10008249
mov eax, 0x80004005
jmp 0x10008380
mov dword [ebp - 0x2034], 0
jmp 0x10008264
mov edx, dword [ebp - 0x2034]
add edx, 1
mov dword [ebp - 0x2034], edx
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x2030]
jge 0x100082d9
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.100084c0
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 0x10008255
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.10010470
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x1004], eax
cmp dword [ebp - 0x1004], 0
je 0x10008358
mov dword [ebp - 0x2018], 0x204
cmp dword [ebp - 0x1004], 0
jg 0x1000832e
mov eax, dword [ebp - 0x1004]
mov dword [ebp - 0x2058], eax
jmp 0x1000834c
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.10006bc0
mov dword [ebp - 0x201c], eax
cmp dword [ebp - 0x201c], 0
jge 0x1000837e
mov eax, dword [ebp - 0x201c]
jmp 0x10008380
xor eax, eax
lea esp, [ebp - 0x205c]
pop esi
mov esp, ebp
pop ebp
ret 0xc