Function at 0x40c750
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e45b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x43e576], 0
je 0x40c8e0
push str.restoring_registry_entries__HKCS__2
push 0x43e508
call fcn.004067f0
add esp, 8
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xac]
push eax
push 0xf003f
push 0
push str.steamShellOpenCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c7f6
push dword [0x43d158]
push 0x45e580
push 1
push eax
push 0x43105c
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0xa1]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00407330
push 0x41
push str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0040edf0
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x40c8bc
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca73
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00402cd0
cmp byte [0x43e575], 0
je 0x40ca38
push str.restoring_registry_entries__HKCS__1
push 0x43e508
call fcn.004067f0
add esp, 8
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0xa8]
push eax
push 0xf003f
push 0
push str.steam
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c95b
push dword [0x43d15c]
push 0x462580
push 1
push eax
push str.URL_Protocol
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2b]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0xa1]
push ecx
lea ecx, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407330
push 0x41
push str.Unable_to_restore_the_original_registry_entry__HKCS__1__error_
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 2
call fcn.0040edf0
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x40ca19
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca78
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00402cd0
jmp 0x40ca5a
push str.removing_registry_entries__HKCS__2__added_by_loader_
push 0x43e508
call fcn.004067f0
add esp, 8
push str.steam
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
call fcn.0041aebf
int3