Function at 0x5d124a2a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.5d12a5c0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call dword [0x5d12e060]
and dword [ebp - 0xc], 0
mov edi, eax
lea eax, [ebp - 0x2014]
push eax
mov ecx, esi
call fcn.5d124386
test eax, eax
jl 0x5d124c83
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.5d124cc7
test eax, eax
pop ecx
pop ecx
jne 0x5d124a81
mov eax, 0x80020009
jmp 0x5d124c83
mov ecx, esi
call fcn.5d12435e
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.5d124386
test eax, eax
jl 0x5d124c83
movzx eax, word [ebp - 0xc]
sub eax, 8
je 0x5d124c3d
sub eax, 9
je 0x5d124ba5
dec eax
dec eax
je 0x5d124b53
sub eax, 0x3ff5
jne 0x5d124c72
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov edi, esp
test edi, edi
mov dword [ebp - 4], edi
je 0x5d124b4b
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x5d124b35
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x5d124b17
cmp byte [eax], 0x30
jne 0x5d124b17
and byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x5d124b30
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x5d124b2e
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x5d124afd
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
and byte [edi], 0
call fcn.5d124c90
jmp 0x5d124c65
push 0xe
pop eax
jmp 0x5d124c65
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x1014]
push ecx
push eax
call fcn.5d121295
lea ecx, [ebp - 0x10]
push ecx
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push esi
jmp 0x5d124c57
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 4], eax
jne 0x5d124be4
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov dword [ebp - 8], esp
push ebx
xor edi, edi
push edi
push dword [ebp - 8]
call fcn.5d12a600
add esp, 0xc
cmp dword [ebp - 8], edi
jne 0x5d124bee
mov eax, 0x80004005
jmp 0x5d124c83
cmp dword [ebp - 4], 0
jle 0x5d124c2a
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.5d124d59
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 4]
jl 0x5d124bf4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0xc]
push eax
jmp 0x5d124c5f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x5d124c72
push eax
call fcn.5d1249cb
pop ecx
jmp 0x5d124c83
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.5d124386
test eax, eax
jl 0x5d124c83
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc