Function at 0x10020fc0
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]
mov esi, dword [ebp + 8]
cmp eax, 0x1002f024
je 0x10020fff
test byte [eax + 0x1c], 1
je 0x10020fff
cmp byte [eax + 0x19], 5
jb 0x10020fff
push edi
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x38
pop ecx
call fcn.10020337
push esi
lea ecx, [ebp - 0x14]
call fcn.1000d343
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10014c01
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push esi
mov ecx, ebx
call fcn.10021267
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10021056
test byte [edx + 0x1c], 2
je 0x10021056
cmp byte [edx + 0x19], 4
jb 0x10021056
push ebx
push dword [ebp - 0x18]
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
call fcn.1002043b
mov edx, dword [0x1002f024]
test ebx, ebx
jne 0x10021092
cmp dword [ebp - 0x18], 1
jne 0x1002109e
push 5
pop ebx
cmp edx, 0x1002f024
je 0x1002109e
test byte [edx + 0x1c], 2
je 0x1002109e
cmp byte [edx + 0x19], 2
jb 0x1002109e
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x3a
pop ecx
call fcn.10003dc3
mov edx, dword [0x1002f024]
jmp 0x1002109e
lea eax, [ebx - 0x490]
neg eax
sbb eax, eax
and ebx, eax
xor esi, esi
and dword [ebp - 0x28], esi
and dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x100210f6
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
call fcn.100220b8
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x100210f3
test byte [edx + 0x1c], 2
je 0x100210f3
cmp byte [edx + 0x19], 4
jb 0x100210f3
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x3b
pop ecx
call fcn.10003c37
mov edx, dword [0x1002f024]
mov esi, dword [ebp - 0x2c]
and dword [ebp - 0x1c], 0
test ebx, ebx
jne 0x1002120e
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.10022cb6
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10021148
test byte [edx + 0x1c], 2
je 0x10021148
cmp byte [edx + 0x19], 4
jb 0x10021148
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x3c
pop ecx
call fcn.10003dc3
mov edx, dword [0x1002f024]
test ebx, ebx
je 0x10021156
push 0x2a
pop eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
jmp 0x10021159
mov eax, dword [ebp - 0x1c]
cmp edi, eax
je 0x1002120e
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push 4
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x100211ad
test byte [edx + 0x1c], 2
je 0x100211ad
cmp byte [edx + 0x19], 4
jb 0x100211ad
push ebx
push edi
push dword [ebp - 0x14]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x3d
pop ecx
call fcn.100203b6
mov edx, dword [0x1002f024]
test ebx, ebx
jne 0x1002120e
mov eax, dword [ebp - 0x20]
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 - 0x20]
call esi
mov edx, edi
mov ecx, eax
call fcn.10023874
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10021244
test byte [edx + 0x1c], 2
je 0x1002120e
cmp byte [edx + 0x19], 4
jb 0x1002120e
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x3e
pop ecx
call fcn.10003c19
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10021244
test byte [edx + 0x1c], 1
je 0x10021244
movzx ecx, byte [edx + 0x19]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x10021244
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x100030e0
push 0x3f
pop ecx
call fcn.10003c37
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10021252
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