Function at 0x421cd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eacd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bf100]
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 0x421d23
push 0x11
push str.Invalid_ProductId
mov ecx, edi
call fcn.004093c0
xor eax, eax
jmp 0x421eb4
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x421d2d
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 0x421e80
push 0x28
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00471b56
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.004214f0
add esp, 8
test al, al
je 0x421e43
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
push esi
call fcn.00422ab0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x30]
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00423260
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 0x421de8
cmp byte [eax + 0xd], 0
je 0x421de8
push dword [ebx + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, eax
call fcn.00423430
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [ebp - 0x2c], 0
jmp 0x421e0f
cmp ecx, eax
je 0x421e0f
mov ebx, eax
nop
lea ecx, [ebp - 0x38]
call fcn.004221e0
push esi
lea ecx, [ebp - 0x30]
call fcn.00422db0
mov edx, eax
call fcn.00423530
mov esi, dword [ebp - 0x38]
cmp esi, ebx
jne 0x421df0
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x44], 0
jbe 0x421e3d
test bl, bl
jne 0x421e3d
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edi
call fcn.00421870
add esp, 4
movzx esi, al
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421e60
movzx esi, bl
add esi, 2
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x421e60
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.00423430
push 0x28
push dword [ebp - 0x30]
call fcn.00471b8b
add esp, 8
jmp 0x421eb2
cmp eax, 2
jne 0x421e8a
lea esi, [eax + 1]
jmp 0x421eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, edi
push eax
call fcn.004094d0
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.00471b48
mov esp, ebp
pop ebp
ret