Function at 0x402120
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a28a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4213d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x4236d4], 1
mov byte [ebp - 0x2d], 0
jne 0x4021a4
or dword [0x4236d4], 1
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov word [0x4236b8], ax
mov ebx, 7
push 0x22
mov eax, str.SOFTWAREAntimalwareSolutionBrand
mov esi, 0x4236b8
mov dword [0x4236cc], ebx
mov dword [0x4236c8], edi
call fcn.00405150
push 0x41a8a0
call fcn.00409f66
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4021a9
xor edi, edi
lea ebx, [edi + 7]
test byte [0x4236d4], 2
jne 0x4021fa
or dword [0x4236d4], 2
mov dword [ebp - 4], 1
xor ecx, ecx
push 0x20
mov eax, str.517D2D1F6AA5422188419CDFD3836761
mov esi, 0x423680
mov dword [0x423694], ebx
mov dword [0x423690], edi
mov word [0x423680], cx
call fcn.00405150
push 0x41a860
call fcn.00409f66
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [0x4236d4], 4
jne 0x40224b
or dword [0x4236d4], 4
mov dword [ebp - 4], 2
xor edx, edx
push 4
mov eax, str.mode
mov esi, 0x42369c
mov dword [0x4236b0], ebx
mov dword [0x4236ac], edi
mov word [0x42369c], dx
call fcn.00405150
push 0x41a820
call fcn.00409f66
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4236b8]
mov ebx, 8
cmp dword [0x4236cc], ebx
jae 0x402262
mov eax, 0x4236b8
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40237c
mov eax, 0x104
lea esi, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.00404510
mov dword [ebp - 4], 3
mov eax, dword [0x42369c]
mov dword [ebp - 0x38], 0x104
cmp dword [0x4236b0], ebx
jae 0x4022b6
mov eax, 0x42369c
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x38]
push edx
push ebx
push edi
push edi
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x402365
cmp dword [0x4236b0], 8
mov eax, dword [0x42369c]
jae 0x4022e6
mov eax, 0x42369c
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
mov eax, ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402306
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00405150
mov byte [ebp - 4], 4
cmp dword [0x423694], 8
mov eax, dword [0x423680]
jae 0x402337
mov eax, 0x423680
mov edi, dword [0x423690]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00408860
test eax, eax
jne 0x402351
mov byte [ebp - 0x2d], 1
cmp dword [ebp - 0x18], 8
jb 0x402363
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00409f88
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x40237c
push ebx
call fcn.00409f88
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004097da
mov esp, ebp
pop ebp
ret