Function at 0x51b3a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.005563f0
mov eax, dword [0x5c3678]
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.0051b9b0
test eax, eax
jl 0x51b6d4
lea ecx, [ebp - 0x2110]
push ecx
lea edx, [ebp - 0x2004]
push edx
call fcn.0051b160
add esp, 8
test eax, eax
jne 0x51b42b
pop edi
pop esi
mov eax, 0x80020009
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8
call fcn.0051c250
lea eax, [ebp - 0x2004]
mov ecx, esi
call fcn.0051b9b0
test eax, eax
jl 0x51b6d4
movzx eax, word [ebp - 0x2110]
cmp eax, 0x13
jg 0x51b5c9
je 0x51b585
cmp eax, 8
je 0x51b571
cmp eax, 0x11
jne 0x51b6bd
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x51b4c0
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.0051b2f0
mov eax, dword [ebp - 0x2108]
test eax, eax
jne 0x51b4d8
lea ecx, [ebp - 0x2104]
test ecx, ecx
je 0x51b4c0
mov eax, esi
call fcn.0051b2e0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push eax
call fcn.00544310
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x51b52b
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.0051b330
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 0x51b4f0
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 0x51b699
lea eax, [ebp - 0x2108]
call fcn.0051b2e0
jmp 0x51b699
push edi
push ebx
lea esi, [ebp - 0x2004]
call fcn.00420890
mov edi, eax
jmp 0x51b699
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.004208d0
lea esi, [ebp - 0x2114]
mov edi, eax
call fcn.0051b2c0
jmp 0x51b699
cmp eax, 0x4008
jne 0x51b6bd
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.0051b230
mov eax, dword [ebp - 0x2108]
test eax, eax
je 0x51b67f
cmp word [ebp - 0x2004], 0
mov edi, eax
lea esi, [ebp - 0x2004]
je 0x51b656
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x51b641
cmp word [eax], 0x30
jne 0x51b641
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x51b64a
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x51b620
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.0051b270
mov edi, eax
mov eax, dword [ebp - 0x2108]
jmp 0x51b684
mov edi, 0xe
lea ecx, [ebp - 0x2104]
cmp eax, ecx
je 0x51b699
lea eax, [ebp - 0x2108]
call fcn.0051b2e0
test edi, edi
je 0x51b6b7
mov eax, edi
call fcn.0051b970
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x211c]
mov ecx, esi
call fcn.0051b9b0
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.0053c15d
mov esp, ebp
pop ebp
ret 8