Function at 0x4195a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452458
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46b008]
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 0x4195f0
push 0xe
push str.Invalid_GameID
mov ecx, esi
call fcn.004013e0
xor eax, eax
jmp 0x419796
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], edi
jb 0x4195fd
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push ecx
push 0x464700
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419735
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00419d70
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push esi
call fcn.00418ec0
add esp, 4
test al, al
je 0x4196ff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00419b40
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00419d90
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
cmp eax, ebx
je 0x4196c0
lea esp, [esp]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x4196a6
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4196a2
cmp eax, dword [ecx + 8]
jne 0x4196a2
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x419692
mov eax, ecx
jmp 0x4196bc
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x4196bc
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x4196b0
cmp eax, ebx
jne 0x419680
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00419c80
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x3c], 0
jbe 0x4196fb
test bl, bl
jne 0x4196fb
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push esi
call fcn.004190f0
add esp, 4
test al, al
je 0x4196ff
mov edi, 1
jmp 0x4196ff
movzx edi, bl
inc edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41971c
push 0x464700
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.00419c80
push 0x14
push dword [ebp - 0x30]
jmp 0x41978c
cmp eax, 2
jne 0x41973e
mov edi, eax
jmp 0x419794
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.004123e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00403310
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x419794
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41978a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4197b2
push edx
push ecx
call fcn.0041b677
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.0041b636
mov esp, ebp
pop ebp
ret
call fcn.00436a99
int3