Function at 0x3000dad6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1124
call fcn.300109bf
mov eax, dword [0x30004d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 0x1114], esi
mov dword [ebp - 0x111c], ebx
mov dword [ebp - 0x110c], edi
call fcn.3000c63b
cmp eax, edi
jl 0x3000de52
lea eax, [ebp - 0x110c]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.3000c4db
test eax, eax
pop ecx
pop ecx
jne 0x3000db50
mov eax, 0x80020009
jmp 0x3000de52
mov ecx, dword [ebp - 0x1118]
call fcn.3000c619
mov ecx, dword [ebp - 0x1118]
lea eax, [ebp - 0x1004]
push eax
call fcn.3000c63b
cmp eax, edi
jl 0x3000de52
movzx eax, word [ebp - 0x110c]
sub eax, 8
je 0x3000de1b
sub eax, 9
je 0x3000dd33
dec eax
dec eax
je 0x3000dc65
sub eax, 0x3ff5
jne 0x3000de3b
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.3000d7f2
mov esi, dword [ebp - 0x1108]
cmp esi, edi
je 0x3000dc40
cmp byte [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x3000dc1c
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x3000dbfb
cmp byte [eax], 0x30
jne 0x3000dbfb
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x3000dc17
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x3000dc15
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x3000dc1c
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x3000dbe1
mov ecx, dword [ebp - 0x1114]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x1108]
push dword [ebp - 0x111c]
call fcn.3000c388
mov esi, eax
xor edi, edi
jmp 0x3000dc43
push 0xe
pop esi
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x3000de2e
lea ecx, [ebp - 0x1108]
call fcn.3000c965
jmp 0x3000de2e
call dword [0x30012428]
mov dword [ebp - 0x1114], eax
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x110c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
call fcn.300058d4
add esp, 0xc
test eax, eax
jl 0x3000dce9
mov ebx, dword [ebp - 0x1110]
cmp ebx, 0x400
jg 0x3000dcc5
push ebx
call fcn.30005aa7
test al, al
pop ecx
je 0x3000dcc5
mov eax, ebx
call fcn.30010947
mov eax, esp
jmp 0x3000dcd1
push ebx
lea ecx, [ebp - 0x110c]
call fcn.30005b6a
push dword [ebp - 0x1114]
lea ecx, [ebp - 0x1004]
push ebx
push ecx
push eax
call fcn.30005925
cmp eax, edi
jne 0x3000dcfe
lea ecx, [ebp - 0x110c]
call fcn.30005a1f
mov eax, 0x8007000e
jmp 0x3000de52
lea ecx, [ebp - 0x1124]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1124]
mov ecx, esi
push dword [ebp - 0x111c]
call fcn.3000c333
lea ecx, [ebp - 0x110c]
mov esi, eax
call fcn.30005a1f
jmp 0x3000de2e
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x1110], eax
je 0x3000dd54
mov eax, 0x80004005
jmp 0x3000de52
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x1108], edi
call fcn.3000d7f2
cmp dword [ebp - 0x1108], edi
jne 0x3000dd8c
lea eax, [ebp - 0x1104]
test eax, eax
je 0x3000dd4a
lea ecx, [ebp - 0x1108]
call fcn.3000c965
jmp 0x3000dd4a
push ebx
push edi
push dword [ebp - 0x1108]
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp - 0x1110], edi
jle 0x3000dde5
mov ecx, dword [ebp - 0x1108]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1004]
push eax
call fcn.3000c56f
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x1110]
jl 0x3000dda4
mov esi, dword [ebp - 0x1114]
xor edi, edi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x1108]
push 3
push edi
push dword [ebp - 0x111c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x3000de2e
lea ecx, [ebp - 0x1108]
call fcn.3000c965
jmp 0x3000de2e
push 1
lea eax, [ebp - 0x1004]
push eax
push ebx
mov ecx, esi
call fcn.3000c34f
mov esi, eax
cmp esi, edi
je 0x3000de3b
push esi
call fcn.3000c091
pop ecx
jmp 0x3000de52
push dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1118]
call fcn.3000c63b
cmp eax, edi
jl 0x3000de52
xor eax, eax
lea esp, [ebp - 0x1130]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3000ffc4
leave
ret 0xc