Function at 0x41d640
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46f068]
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 - 0x38], ecx
xor edi, edi
xor bl, bl
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x41d690
push 0xe
push str.Invalid_GameID
mov ecx, esi
call fcn.004013d0
xor eax, eax
jmp 0x41d836
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41d69a
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov word [eax], cx
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push ecx
push str.SoftwareEasyAntiCheat
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d7d5
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.0041e190
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push esi
call fcn.0041cf80
add esp, 4
test al, al
je 0x41d79f
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041db20
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041e1b0
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
cmp eax, ebx
je 0x41d760
lea esp, [esp]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x41d746
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x41d742
cmp eax, dword [ecx + 8]
jne 0x41d742
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x41d732
mov eax, ecx
jmp 0x41d75c
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x41d75c
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x41d750
cmp eax, ebx
jne 0x41d720
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041dc60
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x3c], 0
jbe 0x41d79b
test bl, bl
jne 0x41d79b
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push esi
call fcn.0041d1b0
add esp, 4
test al, al
je 0x41d79f
mov edi, 1
jmp 0x41d79f
movzx edi, bl
inc edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41d7bc
push str.SoftwareEasyAntiCheat
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push eax
push dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.0041dc60
push 0x14
push dword [ebp - 0x30]
jmp 0x41d82c
cmp eax, 2
jne 0x41d7de
mov edi, eax
jmp 0x41d834
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.004121b0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403240
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41d834
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d82a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d852
push edx
push ecx
call fcn.00434e86
add esp, 8
mov eax, edi
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.00434e45
mov esp, ebp
pop ebp
ret
call fcn.00439dba
int3