Function at 0x4bdf70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.0053e900
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2114], esi
mov dword [ebp - 0x2118], ebx
mov dword [ebp - 0x2008], edi
mov dword [ebp - 0x2110], 0
call fcn.004ec0f0
test eax, eax
js 0x4be30c
lea eax, [ebp - 0x2110]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00535b80
add esp, 8
test eax, eax
jne 0x4bdffd
pop edi
pop esi
mov eax, 0x80020009
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.0050a190
lea eax, [ebp - 0x2004]
mov ecx, esi
push eax
call fcn.004ec0f0
test eax, eax
js 0x4be30c
movzx eax, word [ebp - 0x2110]
cmp eax, 0x13
jg 0x4be1ec
je 0x4be184
cmp eax, 8
je 0x4be16c
cmp eax, 0x11
jne 0x4be2f6
lea ebx, [ebp - 0x2004]
lea ecx, [ebx + 2]
jmp 0x4be050
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4be050
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x4be0be
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x210c]
push 0x104
push 0
sar esi, 1
push eax
mov dword [ebp - 0x2110], esi
call fcn.0053e0b0
add esp, 0xc
mov dword [ebp - 0x210c], 0
lea ecx, [ebp - 0x210c]
push esi
call fcn.004be340
mov eax, dword [ebp - 0x210c]
test eax, eax
jne 0x4be0d6
lea eax, [ebp - 0x2108]
test eax, eax
je 0x4be0be
lea ecx, [ebp - 0x210c]
call fcn.004ccfa0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push eax
call fcn.0053e0b0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4be129
jmp 0x4be0f0
movzx eax, word [ebp + edi*2 - 0x2004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x210c]
push eax
call fcn.004bea90
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x4be0f0
mov esi, dword [ebp - 0x2110]
mov eax, dword [ebp - 0x2118]
push esi
push dword [ebp - 0x210c]
push 3
push 0
push dword [ebp - 0x2008]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2108]
cmp dword [ebp - 0x210c], eax
je 0x4be2d0
lea ecx, [ebp - 0x210c]
call fcn.004ccfa0
jmp 0x4be2d0
push 1
lea eax, [ebp - 0x2004]
mov ecx, ebx
push eax
push edi
call fcn.00506860
mov edi, eax
jmp 0x4be2d6
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2110], 0
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x4be1cc
lea ecx, [ebp - 0x2110]
call fcn.004b5910
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x2008]
mov ecx, ebx
push edi
call fcn.00506630
lea ecx, [ebp - 0x2110]
mov edi, eax
call fcn.004b5910
jmp 0x4be2d0
cmp eax, 0x4008
jne 0x4be2f6
lea esi, [ebp - 0x2004]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4be200
push 0x104
lea eax, [ebp - 0x210c]
sub esi, ecx
push 0
push eax
sar esi, 1
call fcn.0053e0b0
add esp, 0xc
mov dword [ebp - 0x210c], 0
lea eax, [esi + 2]
lea ecx, [ebp - 0x210c]
push eax
call fcn.004be380
mov esi, dword [ebp - 0x210c]
test esi, esi
je 0x4be2b6
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x4be295
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, edi
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x4be280
cmp word [eax], 0x30
jne 0x4be280
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x4be289
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x4be260
mov ebx, dword [ebp - 0x2118]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x210c]
push dword [ebp - 0x2008]
call fcn.005067b0
mov esi, dword [ebp - 0x210c]
mov edi, eax
jmp 0x4be2bb
mov edi, 0xe
lea eax, [ebp - 0x2108]
cmp esi, eax
je 0x4be2d0
lea ecx, [ebp - 0x210c]
call fcn.004ccfb0
mov esi, dword [ebp - 0x2114]
test edi, edi
je 0x4be2f6
push edi
call fcn.004be930
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x211c]
mov ecx, esi
call fcn.004ec0f0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc