Function at 0x4fdc9551
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4fdda571
call fcn.4fdcefac
push ecx
mov eax, 0x1114
call fcn.4fdceb00
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x1c], esi
call fcn.4fdc8529
test eax, eax
jl 0x4fdc984f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.4fdc83d2
test eax, eax
jne 0x4fdc95b2
mov eax, 0x80020009
jmp 0x4fdc984f
mov ecx, esi
call fcn.4fdc8507
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.4fdc8529
test eax, eax
jl 0x4fdc984f
movzx eax, word [ebp - 0x18]
sub eax, 8
je 0x4fdc981c
sub eax, 9
je 0x4fdc971b
dec eax
dec eax
je 0x4fdc96bf
sub eax, 0x3ff5
jne 0x4fdc983e
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x124], 0
inc eax
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.4fdc8c85
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x4fdc9696
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x4fdc967e
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4fdc9660
cmp byte [eax], 0x30
jne 0x4fdc9660
and byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4fdc9679
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4fdc9677
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x4fdc9640
and byte [edi], 0
push dword [ebp - 0x124]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.4fdc824a
mov esi, eax
jmp 0x4fdc9699
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x4fdc9832
lea ecx, [ebp - 0x124]
call fcn.4fdc87db
jmp 0x4fdc9832
call dword [0x4fddc080]
mov edi, eax
lea eax, [ebp - 0x1124]
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.4fdceb00
mov dword [ebp - 0x10], esp
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.4fdc7fce
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.4fdc8207
jmp 0x4fdc9830
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x18], eax
jne 0x4fdc9787
and dword [ebp - 0x124], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 4
call fcn.4fdc8c85
jmp 0x4fdc9762
mov edi, dword [ebp - 0x124]
test edi, edi
push 3
pop edx
mov dword [ebp - 4], edx
jne 0x4fdc9791
lea eax, [ebp - 0x120]
test eax, eax
je 0x4fdc9787
lea ecx, [ebp - 0x124]
call fcn.4fdc87db
mov eax, 0x80004005
jmp 0x4fdc984f
mov ecx, ebx
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, edx
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x18], edi
jle 0x4fdc97e1
mov ecx, dword [ebp - 0x124]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x1124]
push eax
call fcn.4fdc8466
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 - 0x18]
jl 0x4fdc97a9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x124]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x4fdc9832
lea ecx, [ebp - 0x124]
call fcn.4fdc87db
jmp 0x4fdc9832
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x1124]
push eax
push dword [ebp + 0xc]
call fcn.4fdc8221
mov esi, eax
test esi, esi
je 0x4fdc983e
push esi
call fcn.4fdc8127
jmp 0x4fdc984f
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.4fdc8529
test eax, eax
jl 0x4fdc984f
xor eax, eax
lea esp, [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.4fdce82b
pop edi
pop esi
pop ebx
leave
ret 0xc