Function at 0x6d8f4c10
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10a0]
mov eax, 0x1120
call fcn.6d8fd130
mov eax, dword [0x6d90dc8c]
xor eax, ebp
mov dword [ebp + 0x109c], eax
mov eax, dword [ebp + 0x10b0]
push ebx
mov ebx, dword [ebp + 0x10a8]
push esi
mov esi, dword [ebp + 0x10ac]
push edi
mov edi, ecx
lea ecx, [ebp + 0x9c]
push ecx
mov ecx, edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x6c], 0
call fcn.6d8f2e70
test eax, eax
js 0x6d8f4f39
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp + 0x9c]
push eax
call fcn.6d8f2cb0
add esp, 8
test eax, eax
jne 0x6d8f4c90
mov eax, 0x80020009
jmp 0x6d8f4f39
mov ecx, edi
call fcn.6d8f2e10
lea ecx, [ebp + 0x9c]
push ecx
mov ecx, edi
call fcn.6d8f2e70
test eax, eax
js 0x6d8f4f39
movzx eax, word [ebp - 0x6c]
cmp eax, 0x13
jg 0x6d8f4e5d
je 0x6d8f4db1
cmp eax, 8
je 0x6d8f4d99
cmp eax, 0x11
jne 0x6d8f4f24
lea edx, [ebp + 0x9c]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x6d8f4d14
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor esi, esi
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
call fcn.6d8f4a00
mov eax, dword [ebp - 0x68]
cmp eax, esi
jne 0x6d8f4d1e
lea eax, [ebp - 0x64]
test eax, eax
je 0x6d8f4d14
lea ecx, [ebp - 0x68]
call fcn.6d8f3290
mov eax, 0x80004005
jmp 0x6d8f4f39
push edi
push esi
push eax
call fcn.6d8fca40
add esp, 0xc
cmp ebx, esi
jle 0x6d8f4d65
lea ecx, [ecx]
movzx eax, byte [ebp + esi + 0x9c]
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x68]
push eax
call fcn.6d8f2d60
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
add esp, 4
or byte [edi], al
cmp esi, ebx
jl 0x6d8f4d30
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x6d8f4f12
lea ecx, [ebp - 0x68]
call fcn.6d8f3290
jmp 0x6d8f4f12
push 1
lea ecx, [ebp + 0x9c]
push ecx
push esi
mov ecx, ebx
call fcn.6d8f2b80
mov esi, eax
jmp 0x6d8f4f12
lea edx, [ebp + 0x9c]
push edx
mov dword [ebp - 0x6c], 0
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.6d8f22d0
add esp, 0xc
test eax, eax
js 0x6d8f4e1e
mov esi, dword [ebp - 0x70]
cmp esi, 0x400
jg 0x6d8f4dff
push esi
call fcn.6d900540
add esp, 4
test al, al
je 0x6d8f4dff
mov eax, esi
call fcn.6d8fd3e0
mov eax, esp
jmp 0x6d8f4e08
push esi
lea ecx, [ebp - 0x6c]
call fcn.6d8f3720
push 3
shr esi, 1
push esi
lea ecx, [ebp + 0x9c]
push ecx
push eax
call fcn.6d8f2300
test eax, eax
jne 0x6d8f4e30
lea ecx, [ebp - 0x6c]
call fcn.6d8f3230
mov eax, 0x8007000e
jmp 0x6d8f4f39
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
push eax
push ecx
mov ecx, ebx
call fcn.6d8f2b60
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.6d8f3230
jmp 0x6d8f4f12
cmp eax, 0x4008
jne 0x6d8f4f24
lea edx, [ebp + 0x9c]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 2
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
call fcn.6d8f4a00
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x6d8f4efe
cmp byte [ebp + 0x9c], 0
lea esi, [ebp + 0x9c]
je 0x6d8f4ee3
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x6d8f4ebe
cmp byte [eax], 0x30
jne 0x6d8f4ebe
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x6d8f4edb
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x6d8f4ed9
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x6d8f4ee0
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x6d8f4ea4
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov word [edi], 0
mov ecx, dword [ebp - 0x68]
push ecx
push edx
mov ecx, ebx
call fcn.6d8f2bc0
mov edi, dword [ebp - 0x68]
mov esi, eax
jmp 0x6d8f4f03
mov esi, 0xe
lea eax, [ebp - 0x64]
cmp edi, eax
je 0x6d8f4f12
lea ecx, [ebp - 0x68]
call fcn.6d8f3290
test esi, esi
je 0x6d8f4f21
push esi
call fcn.6d8f27a0
add esp, 4
jmp 0x6d8f4f39
mov edi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
push ecx
mov ecx, edi
call fcn.6d8f2e70
xor edx, edx
test eax, eax
setns dl
dec edx
and eax, edx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x109c]
xor ecx, ebp
call fcn.6d8fca24
lea esp, [ebp + 0x10a0]
pop ebp
ret 0xc