Function at 0x10021464
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x1002bcb4
call fcn.1002acfb
mov edi, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [0x1002f024]
mov esi, dword [ebp + 8]
cmp eax, 0x1002f024
je 0x100214a2
test byte [eax + 0x1c], 1
je 0x100214a2
cmp byte [eax + 0x19], 5
jb 0x100214a2
push dword [ebp + 0xc]
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x47
pop ecx
call fcn.10020337
push esi
mov ecx, edi
xor ebx, ebx
call fcn.1002053e
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x100214d6
test byte [eax + 0x1c], 2
je 0x100214d6
cmp byte [eax + 0x19], 5
jb 0x100214d6
push edi
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x48
pop ecx
call fcn.10020337
test edi, edi
jne 0x100214df
mov ebx, 0x490
push esi
lea ecx, [ebp - 0x14]
call fcn.1000d343
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10014c01
xor edi, edi
and dword [ebp - 0x28], edi
and dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x10021553
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.10021fcb
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10021640
test byte [edx + 0x1c], 2
je 0x10021640
cmp byte [edx + 0x19], 4
jb 0x10021640
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x49
pop ecx
call fcn.10003c37
mov edi, dword [ebp - 0x2c]
mov edx, dword [0x1002f024]
and dword [ebp - 0x20], 0
test ebx, ebx
jne 0x10021648
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10030334]
mov ecx, ebx
call esi
mov esi, eax
mov ecx, dword [0x1002f024]
cmp ecx, 0x1002f024
je 0x100215b6
test byte [ecx + 0x1c], 2
je 0x100215b6
cmp byte [ecx + 0x19], 4
jb 0x100215b6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x4a
pop ecx
call fcn.100203b6
mov ecx, dword [0x1002f024]
test esi, esi
je 0x100215c1
mov dword [ebp - 0x20], 0x2a
xor esi, esi
cmp dword [ebp + 0xc], 1
jne 0x100215f1
inc esi
cmp ecx, 0x1002f024
je 0x100215f1
test byte [ecx + 0x1c], 2
je 0x100215f1
cmp byte [ecx + 0x19], 4
jb 0x100215f1
push dword [ecx + 0x14]
mov edx, 0x100030e0
push dword [ecx + 0x10]
push 0x4b
pop ecx
call fcn.10003c19
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
push 4
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov edx, dword [0x1002f024]
mov edi, 0x1002f024
cmp edx, edi
je 0x1002164d
test byte [edx + 0x1c], 2
je 0x1002164d
cmp byte [edx + 0x19], 4
jb 0x1002164d
push ebx
push esi
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x4c
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
jmp 0x1002164d
mov edi, dword [ebp - 0x2c]
jmp 0x10021559
mov edi, 0x1002f024
and dword [ebp - 0x1c], 0
test ebx, ebx
jne 0x1002171a
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10030334]
mov ecx, ebx
call esi
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, edi
je 0x100216a6
test byte [edx + 0x1c], 2
je 0x100216a6
cmp byte [edx + 0x19], 4
jb 0x100216a6
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x4d
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
test ebx, ebx
je 0x100216b4
push 0x2a
pop eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
jmp 0x100216b7
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
je 0x1002171a
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [eax]
push ecx
push 0x3eb
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x10030334]
mov ecx, dword [ebp - 0x18]
call esi
mov edx, edi
mov ecx, eax
call fcn.10023874
mov edx, dword [0x1002f024]
mov edi, 0x1002f024
cmp edx, edi
je 0x1002174c
test byte [edx + 0x1c], 2
je 0x1002171a
cmp byte [edx + 0x19], 4
jb 0x1002171a
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x4e
pop ecx
call fcn.10003c19
mov edx, dword [0x1002f024]
cmp edx, edi
je 0x1002174c
test byte [edx + 0x1c], 1
je 0x1002174c
movzx ecx, byte [edx + 0x19]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x1002174c
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x4f
pop ecx
call fcn.10003dc3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1002175a
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1000947c
mov eax, ebx
call fcn.1002acaa
ret 8