Function at 0x6d59a910
Capabilities:
Set registry value

Disassembly:
mov eax, 0x211c
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2118], eax
mov eax, dword [esp + 0x2128]
push ebx
mov ebx, dword [esp + 0x2128]
push ebp
mov ebp, dword [esp + 0x2128]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x128]
push ecx
xor esi, esi
mov ecx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
call fcn.6d599d10
cmp eax, esi
jl 0x6d59abd3
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push eax
call fcn.6d599b50
add esp, 8
test eax, eax
jne 0x6d59a993
mov eax, 0x80020009
jmp 0x6d59abd3
mov ecx, edi
call fcn.6d599cb0
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.6d599d10
cmp eax, esi
jl 0x6d59abd3
movzx eax, word [esp + 0x18]
cmp eax, 0x13
jg 0x6d59aafc
je 0x6d59aac6
cmp eax, 8
je 0x6d59aaad
cmp eax, 0x11
jne 0x6d59abbd
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x6d59aa1c
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
xor esi, esi
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.6d59a790
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x6d59aa26
lea eax, [esp + 0x28]
test eax, eax
je 0x6d59aa1c
lea ecx, [esp + 0x24]
call fcn.6d59a000
mov eax, 0x80004005
jmp 0x6d59abd3
push ebp
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp ebx, esi
jle 0x6d59aa73
jmp 0x6d59aa40
movzx eax, word [esp + esi*2 + 0x128]
mov edi, esi
shr edi, 1
add edi, dword [esp + 0x24]
push eax
call fcn.6d599c00
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 0x6d59aa40
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [esp + 0x28]
cmp dword [esp + 0x24], eax
je 0x6d59aba8
lea ecx, [esp + 0x24]
call fcn.6d59a000
jmp 0x6d59aba8
push 1
lea ecx, [esp + 0x12c]
push ecx
push ebx
mov ecx, ebp
call fcn.6d5999d0
mov esi, eax
jmp 0x6d59aba8
lea edx, [esp + 0x14]
push edx
push esi
push esi
lea eax, [esp + 0x134]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
mov ecx, ebp
call fcn.6d595e60
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.6d599f90
jmp 0x6d59aba8
cmp eax, 0x4008
jne 0x6d59abbd
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, 2
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.6d59a750
mov edi, dword [esp + 0x24]
cmp edi, esi
je 0x6d59ab92
cmp word [esp + 0x128], 0
lea esi, [esp + 0x128]
je 0x6d59ab79
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x6d59ab66
cmp word [eax], 0x30
jne 0x6d59ab66
xor ecx, ecx
mov word [edi], cx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x6d59ab6f
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x6d59ab46
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [esp + 0x24]
push ecx
push ebx
mov ecx, ebp
call fcn.6d599a10
mov edi, dword [esp + 0x24]
mov esi, eax
jmp 0x6d59ab97
mov esi, 0xe
lea edx, [esp + 0x28]
cmp edi, edx
je 0x6d59aba8
lea ecx, [esp + 0x24]
call fcn.6d59a000
test esi, esi
je 0x6d59abb7
push esi
call fcn.6d5998c0
add esp, 4
jmp 0x6d59abd3
mov edi, dword [esp + 0x1c]
xor esi, esi
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.6d599d10
xor ecx, ecx
cmp eax, esi
setge cl
dec ecx
and eax, ecx
mov ecx, dword [esp + 0x2128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x211c
ret 0xc