Function at 0x41f9e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4991dd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bd0c8]
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 0x41fa34
push 0x11
push str.Invalid_ProductId
mov ecx, esi
call fcn.00403bf0
xor eax, eax
jmp 0x41fc19
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41fa3e
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 0x41fbe5
push 0x28
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0046e356
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.0041f250
add esp, 8
test al, al
je 0x41fba6
push edi
lea ecx, [ebp - 0x34]
call fcn.00420720
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x34]
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.00420d60
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 0x41faf2
cmp byte [edi + 0xd], 0
je 0x41faf2
mov esi, eax
lea eax, [ebp - 0x34]
mov ecx, eax
push dword [esi + 4]
push eax
call fcn.00420f60
xor eax, eax
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebp - 0x30], eax
jmp 0x41fb68
cmp esi, edi
je 0x41fb65
lea ecx, [ebp - 0x3c]
call fcn.0041fe70
push esi
lea ecx, [ebp - 0x34]
call fcn.00420900
mov esi, eax
mov ecx, dword [esi + 0x24]
cmp ecx, 8
jb 0x41fb43
mov eax, dword [esi + 0x10]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41fb39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fc35
mov eax, edx
push ecx
push eax
call fcn.0046e38b
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.0046e38b
mov esi, dword [ebp - 0x3c]
add esp, 8
cmp esi, edi
jne 0x41faf6
mov eax, dword [ebp - 0x30]
test eax, eax
sete al
cmp dword [ebp - 0x48], 0
mov byte [ebp - 0x29], al
jbe 0x41fba0
test al, al
jne 0x41fba0
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0041f5c0
add esp, 4
mov ecx, 1
test al, al
cmovne ebx, ecx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41fbc5
movzx ebx, al
add ebx, 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x29], 0
je 0x41fbc5
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.00420f60
push 0x28
push dword [ebp - 0x34]
call fcn.0046e38b
add esp, 8
jmp 0x41fc17
cmp eax, 2
jne 0x41fbef
lea ebx, [eax + 1]
jmp 0x41fc17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.0041d420
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409400
lea ecx, [ebp - 0x28]
call fcn.004036b0
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3