Function at 0x41db40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4960cd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b80c8]
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 esi, edx
mov dword [ebp - 0x4c], esi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x29], bl
cmp dword [edi + 0x10], ebx
jne 0x41db94
push 0x11
push str.Invalid_ProductId
mov ecx, esi
call fcn.00403a20
xor eax, eax
jmp 0x41dd79
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41db9e
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax], cx
lea eax, [ebp - 0x38]
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 0x41dd45
push 0x28
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0046b436
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push esi
call fcn.0041d3b0
add esp, 8
test al, al
je 0x41dd06
push edi
lea ecx, [ebp - 0x34]
call fcn.0041e880
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x34]
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.0041eec0
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
cmp esi, dword [eax]
jne 0x41dc52
cmp byte [edi + 0xd], 0
je 0x41dc52
mov esi, eax
lea eax, [ebp - 0x34]
mov ecx, eax
push dword [esi + 4]
push eax
call fcn.0041f0c0
xor eax, eax
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebp - 0x30], eax
jmp 0x41dcc8
cmp esi, edi
je 0x41dcc5
lea ecx, [ebp - 0x3c]
call fcn.0041dfd0
push esi
lea ecx, [ebp - 0x34]
call fcn.0041ea60
mov esi, eax
mov ecx, dword [esi + 0x24]
cmp ecx, 8
jb 0x41dca3
mov eax, dword [esi + 0x10]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41dc99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dd95
mov eax, edx
push ecx
push eax
call fcn.0046b46b
add esp, 8
xor eax, eax
mov word [esi + 0x10], ax
push 0x28
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], 7
call fcn.0046b46b
mov esi, dword [ebp - 0x3c]
add esp, 8
cmp esi, edi
jne 0x41dc56
mov eax, dword [ebp - 0x30]
test eax, eax
sete al
cmp dword [ebp - 0x48], 0
mov byte [ebp - 0x29], al
jbe 0x41dd00
test al, al
jne 0x41dd00
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041d720
add esp, 4
mov ecx, 1
test al, al
cmovne ebx, ecx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41dd25
movzx ebx, al
add ebx, 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x29], 0
je 0x41dd25
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
mov ecx, eax
call fcn.0041f0c0
push 0x28
push dword [ebp - 0x34]
call fcn.0046b46b
add esp, 8
jmp 0x41dd77
cmp eax, 2
jne 0x41dd4f
lea ebx, [eax + 1]
jmp 0x41dd77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
mov eax, ebx
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.0046b428
mov esp, ebp
pop ebp
ret
call fcn.00470244
int3