Function at 0x40f420
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e7b6
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0
push eax
push 0xf003f
push 0
push str.steam
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f4bd
push 0x43d15c
push 0x462580
lea eax, [ebp - 0xc4]
mov byte [0x43e575], 1
push eax
push 0
push str.URL_Protocol
push dword [ebp - 0xc0]
mov dword [ebp - 0xc4], 1
call edi
push str.Found_previous_registry_entry__HKCS__1_for_Steam
jmp 0x40f4ec
push 0
lea eax, [ebp - 0xc0]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.steam
push 0x80000000
call esi
test eax, eax
jne 0x40f8ae
push str.Created_new_registry_entry__HKCS__1_for_Steam
push 0x43e508
call fcn.004067e0
add esp, 8
mov dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc8]
push eax
push 0xf003f
push 0
push str.steamShellOpenCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f55d
push 0x43d158
push 0x45e580
lea eax, [ebp - 0xc4]
mov byte [0x43e576], 1
push eax
push 0
push 0x43105c
push dword [ebp - 0xc8]
mov dword [ebp - 0xc4], 1
call edi
push str.Found_previous_registry_entry__HKCS__2_for_Steam
jmp 0x40f58c
push 0
lea eax, [ebp - 0xc8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.steamShellOpenCommand
push 0x80000000
call esi
test eax, eax
jne 0x40f7be
push str.Created_new_registry_entry__HKCS__2_for_Steam
push 0x43e508
call fcn.004067e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 8
push 0x26
push str.URL:steam_protocol
push 1
push 0
push 0x43105c
push dword [ebp - 0xc0]
call esi
push 2
push 0x43105c
push 1
push 0
push str.URL_Protocol
push dword [ebp - 0xc0]
call esi
push dword [ebp - 0xc0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
call fcn.00406af0
mov dword [ebp - 0xc4], eax
call fcn.00406b10
mov ecx, 0x7fffffff
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x40f9a6
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x40f60a
mov ecx, dword [eax]
push edx
push ecx
push 1
push 0x431100
push eax
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xb8]
call fcn.00409160
push dword [ebp - 0xc4]
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004076b0
add esp, 0xc
push 9
push str._______1_
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004042f0
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
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmova eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
call fcn.00406110
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp ecx, 0xf
jbe 0x40f6e4
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f6da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9ab
push ecx
push edx
call fcn.00415ffb
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x40f72a
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f720
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9ab
push ecx
push edx
call fcn.00415ffb
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 0xf
jbe 0x40f776
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f76c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9ab
push ecx
push edx
call fcn.00415ffb
add esp, 8
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x74], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x88]
cmova eax, dword [ebp - 0x88]
push eax
push 1
push 0
push 0x43105c
push dword [ebp - 0xc8]
call esi
push dword [ebp - 0xc8]
call edi
lea ecx, [ebp - 0x88]
call fcn.00402d30
mov al, 1
jmp 0x40f98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00408490
add esp, 8
lea ecx, [ebp - 0xb9]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407320
push 0x2c
push str.Unable_to_patch_Registry__HKCS__2__error_
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 2
call fcn.0040ede0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x43e508
call fcn.004067f0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40f880
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f876
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9b0
push ecx
push edx
call fcn.00415ffb
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402ce0
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f989
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00408490
add esp, 8
lea ecx, [ebp - 0xb9]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407320
push 0x2c
push str.Unable_to_patch_Registry__HKCS__1__error_
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.0040ede0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x43e508
call fcn.004067f0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40f96c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f962
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9b5
push ecx
push edx
call fcn.00415ffb
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402ce0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041600e
mov esp, ebp
pop ebp
ret
call fcn.00404160
call fcn.0041aecf
call fcn.0041aecf
call fcn.0041aecf
int3