Function at 0x10020c70
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x1002bcb4
call fcn.1002acfb
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [0x1002f024]
mov edi, dword [ebp + 0xc]
cmp eax, 0x1002f024
je 0x10020caf
test byte [eax + 0x1c], 1
je 0x10020caf
cmp byte [eax + 0x19], 5
jb 0x10020caf
push dword [edi]
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2f
pop ecx
call fcn.10020337
lea eax, [ebp - 0x18]
xor esi, esi
and dword [ebp - 0x18], esi
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.10021267
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10020cfc
test byte [edx + 0x1c], 2
je 0x10020cfc
movzx ecx, byte [edx + 0x19]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x10020cfc
push dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
call fcn.10020279
test ebx, ebx
jne 0x10020d37
cmp dword [ebp - 0x18], 1
jne 0x10020d37
mov dword [edi], 2
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10020d37
test byte [eax + 0x1c], 2
je 0x10020d37
cmp byte [eax + 0x19], 4
jb 0x10020d37
push dword [eax + 0x14]
mov edx, 0x100030e0
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.10003c19
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.1000d343
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10014c01
xor ebx, ebx
and dword [ebp - 0x28], ebx
and dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jne 0x10020f57
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
call fcn.100220b8
mov esi, eax
mov edx, dword [0x1002f024]
mov ebx, 0x1002f024
cmp edx, ebx
je 0x10020da9
test byte [edx + 0x1c], 2
je 0x10020da9
cmp byte [edx + 0x19], 4
jb 0x10020da9
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x32
pop ecx
call fcn.10003c37
mov edx, dword [0x1002f024]
test esi, esi
jne 0x10020fb3
and dword [edi], esi
lea ecx, [ebp - 0x2c]
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp - 0x14]
call fcn.10022cb6
mov esi, eax
mov edx, dword [0x1002f024]
cmp edx, ebx
je 0x10020df5
test byte [edx + 0x1c], 2
je 0x10020df5
cmp byte [edx + 0x19], 4
jb 0x10020df5
push esi
push dword [edi]
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x33
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
cmp esi, 2
je 0x10020e0a
test esi, esi
jne 0x10020fb3
cmp dword [edi], esi
jne 0x10020fb3
test esi, esi
jne 0x10020e13
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
push edi
push 0x100030b8
lea ecx, [ebp - 0x2c]
call fcn.10022cb6
mov esi, eax
mov edx, dword [0x1002f024]
cmp edx, ebx
je 0x10020e55
test byte [edx + 0x1c], 2
je 0x10020e55
cmp byte [edx + 0x19], 4
jb 0x10020e55
push esi
push dword [edi]
push 0x100030b8
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x34
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
mov ebx, dword [ebp - 0x2c]
cmp esi, 2
jne 0x10020eb1
push 4
lea eax, [ebp - 0x1c]
xor ecx, ecx
push eax
push 4
push ecx
push 0x100030b8
push ebx
mov dword [edi], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10020eb1
test byte [edx + 0x1c], 2
je 0x10020eb1
cmp byte [edx + 0x19], 4
jb 0x10020eb1
push esi
push dword [edi]
push 0x100030b8
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x35
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
test esi, esi
jne 0x10020f08
mov eax, dword [edi]
cmp eax, dword [ebp - 0x18]
je 0x10020f08
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10020f08
test byte [edx + 0x1c], 2
je 0x10020f08
cmp byte [edx + 0x19], 4
jb 0x10020f08
push esi
push dword [edi]
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x36
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
cmp dword [edi], 0
jne 0x10020f5d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
and dword [ebp - 0x1c], 0
push eax
push 0x1000287c
push dword [ebp - 0x14]
call fcn.100219a8
test eax, eax
jne 0x10020f31
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x10020f31
mov dword [edi], eax
cmp dword [edi], 0
mov edx, dword [0x1002f024]
jne 0x10020f5d
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x10030334]
mov ecx, dword [ebp - 0x20]
call esi
mov esi, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10020f93
test byte [edx + 0x1c], 1
je 0x10020f93
movzx ecx, byte [edx + 0x19]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x10020f93
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x37
pop ecx
call fcn.10003c37
test ebx, ebx
je 0x10020f9e
push ebx
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, esi
call fcn.10003dc3
ret 8
mov ebx, dword [ebp - 0x2c]
jmp 0x10020f5d