Function at 0x51c820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.00557a10
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x210c], edi
mov dword [ebp - 0x2110], 0
call fcn.0051ce30
test eax, eax
jl 0x51cb54
lea ecx, [ebp - 0x2110]
push ecx
lea edx, [ebp - 0x2004]
push edx
call fcn.0051c5e0
add esp, 8
test eax, eax
jne 0x51c8ab
pop edi
pop esi
mov eax, 0x80020009
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 8
call fcn.0051d6d0
lea eax, [ebp - 0x2004]
mov ecx, esi
call fcn.0051ce30
test eax, eax
jl 0x51cb54
movzx eax, word [ebp - 0x2110]
cmp eax, 0x13
jg 0x51ca49
je 0x51ca05
cmp eax, 8
je 0x51c9f1
cmp eax, 0x11
jne 0x51cb3d
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x51c940
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov ecx, edi
lea esi, [ebp - 0x2108]
mov dword [ebp - 0x2110], edi
mov dword [ebp - 0x2108], 0
call fcn.0051c770
mov eax, dword [ebp - 0x2108]
test eax, eax
jne 0x51c958
lea ecx, [ebp - 0x2104]
test ecx, ecx
je 0x51c940
mov eax, esi
call fcn.0051c740
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push eax
call fcn.00545940
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x51c9ab
lea ebx, [ebx]
mov eax, dword [ebp - 0x2108]
mov cx, word [ebp + esi*2 - 0x2004]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.0051c7b0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x51c970
mov edi, dword [ebp - 0x2110]
mov ecx, dword [ebp - 0x2108]
mov edx, dword [ebp - 0x210c]
mov eax, dword [ebp - 0x2114]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x51cb19
lea eax, [ebp - 0x2108]
call fcn.0051c740
jmp 0x51cb19
push edi
push ebx
lea esi, [ebp - 0x2004]
call fcn.00422060
mov edi, eax
jmp 0x51cb19
lea ecx, [ebp - 0x210c]
push ecx
push 0
push 0
lea edx, [ebp - 0x2004]
push edx
mov dword [ebp - 0x2114], 0
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x210c]
push eax
mov ecx, edi
mov edx, ebx
call fcn.004220a0
lea esi, [ebp - 0x2114]
mov edi, eax
call fcn.0051c720
jmp 0x51cb19
cmp eax, 0x4008
jne 0x51cb3d
lea ecx, [ebp - 0x2004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
lea esi, [ebp - 0x2108]
mov dword [ebp - 0x2108], 0
call fcn.0051c690
mov eax, dword [ebp - 0x2108]
test eax, eax
je 0x51caff
cmp word [ebp - 0x2004], 0
mov edi, eax
lea esi, [ebp - 0x2004]
je 0x51cad6
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x51cac1
cmp word [eax], 0x30
jne 0x51cac1
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x51caca
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x51caa0
mov ebx, dword [ebp - 0x2114]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x210c]
xor ecx, ecx
mov word [edi + 2], cx
mov edx, dword [ebp - 0x2108]
push edx
push eax
push ebx
call fcn.0051c6d0
mov edi, eax
mov eax, dword [ebp - 0x2108]
jmp 0x51cb04
mov edi, 0xe
lea ecx, [ebp - 0x2104]
cmp eax, ecx
je 0x51cb19
lea eax, [ebp - 0x2108]
call fcn.0051c740
test edi, edi
je 0x51cb37
mov eax, edi
call fcn.0051cdf0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x211c]
mov ecx, esi
call fcn.0051ce30
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 8