Function at 0x21382e5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x211c
lea ebp, [esp - 0x6c]
call fcn.2138ce40
mov eax, dword [0x21393774]
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x209c]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20b0], esi
mov dword [ebp - 0x20a4], edi
call fcn.21382326
cmp eax, edi
jl 0x2138316c
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x209c]
push eax
call fcn.213831b7
test eax, eax
pop ecx
pop ecx
jne 0x21382ebc
mov eax, 0x80020009
jmp 0x2138316c
mov ecx, esi
call fcn.213822fd
lea eax, [ebp - 0x209c]
push eax
mov ecx, esi
call fcn.21382326
cmp eax, edi
jl 0x2138316c
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x2138311e
sub eax, 9
je 0x21383023
dec eax
dec eax
je 0x21382fc9
sub eax, 0x3ff5
jne 0x21383157
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
cmp eax, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x21382f31
push eax
lea ecx, [ebp - 0x9c]
call fcn.21382198
jmp 0x21382f3d
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
cmp esi, edi
je 0x21382fa4
cmp word [ebp - 0x209c], 0
lea edi, [ebp - 0x209c]
je 0x21382f89
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x21382f7c
cmp word [eax], 0x30
jne 0x21382f7c
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x21382f83
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x21382f5d
and word [esi], 0
push dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.2138317d
mov esi, eax
xor edi, edi
jmp 0x21382fa7
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x2138314a
lea ecx, [ebp - 0x9c]
call fcn.2138218f
jmp 0x2138314a
call dword [0x21392050]
lea eax, [ebp - 0x20a0]
push eax
push edi
push edi
lea eax, [ebp - 0x209c]
push eax
mov dword [ebp - 0x20a8], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x20a0]
push 4
mov dword [ebp - 0x20ac], eax
lea eax, [ebp - 0x20ac]
push eax
mov eax, dword [ebp + 0x74]
push 4
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x20a8]
mov esi, eax
call fcn.213817b2
jmp 0x2138314a
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a0], eax
je 0x21383044
mov eax, 0x80004005
jmp 0x2138316b
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x21383067
push ebx
lea ecx, [ebp - 0x9c]
call fcn.21382198
jmp 0x21383073
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], edi
jne 0x21383092
lea eax, [ebp - 0x98]
test eax, eax
je 0x2138303a
lea ecx, [ebp - 0x9c]
call fcn.2138218f
jmp 0x2138303a
push ebx
push edi
push dword [ebp - 0x9c]
call fcn.2138c940
add esp, 0xc
cmp dword [ebp - 0x20a0], edi
jle 0x213830e8
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebp + edi*2 - 0x209c]
sar esi, 1
add esi, dword [ebp - 0x9c]
push eax
call fcn.21383249
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 - 0x20a0]
jl 0x213830aa
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x2138314a
lea ecx, [ebp - 0x9c]
call fcn.2138218f
jmp 0x2138314a
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x209c]
push eax
mov eax, dword [ebp + 0x74]
push 1
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x21383157
push esi
call fcn.213816d8
pop ecx
jmp 0x2138316b
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x20b0]
call fcn.21382326
cmp eax, edi
jl 0x2138316b
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
call fcn.2138c444
add ebp, 0x6c
leave
ret 0xc