Function at 0x422a70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fa3d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c0100]
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
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x38], eax
xor esi, esi
xor bl, bl
mov dword [ebp - 0x34], esi
cmp dword [eax + 0x10], esi
jne 0x422ac3
push 0x11
push str.Invalid_ProductId
mov ecx, edi
call fcn.00409510
xor eax, eax
jmp 0x422c54
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x422acd
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], esi
mov word [eax], cx
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push ecx
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422c20
push 0x28
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.004728f6
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edi
call fcn.00422290
add esp, 8
test al, al
je 0x422be3
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
push esi
call fcn.00423850
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x30]
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00424000
mov ebx, dword [ebp - 0x30]
mov esi, dword [eax]
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x38], esi
cmp esi, dword [ebx]
jne 0x422b88
cmp byte [eax + 0xd], 0
je 0x422b88
push dword [ebx + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, eax
call fcn.004241d0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [ebp - 0x2c], 0
jmp 0x422baf
cmp ecx, eax
je 0x422baf
mov ebx, eax
nop
lea ecx, [ebp - 0x38]
call fcn.00422f80
push esi
lea ecx, [ebp - 0x30]
call fcn.00423b50
mov edx, eax
call fcn.004242d0
mov esi, dword [ebp - 0x38]
cmp esi, ebx
jne 0x422b90
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x44], 0
jbe 0x422bdd
test bl, bl
jne 0x422bdd
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edi
call fcn.00422610
add esp, 4
movzx esi, al
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422c00
movzx esi, bl
add esi, 2
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x422c00
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, eax
call fcn.004241d0
push 0x28
push dword [ebp - 0x30]
call fcn.0047292b
add esp, 8
jmp 0x422c52
cmp eax, 2
jne 0x422c2a
lea esi, [eax + 1]
jmp 0x422c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.00420510
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409620
lea ecx, [ebp - 0x28]
call fcn.004037b0
mov eax, esi
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.004728e8
mov esp, ebp
pop ebp
ret