Function at 0x40b390
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 0x431120
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
push 0xf003f
push 0
push 0x432c6c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b3fc
mov byte [0x441252], 1
mov eax, str.Found_previous_registry_entry__HKCS__1_for_Steam
jmp 0x40b42b
push 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x432c6c
push 0x80000000
call esi
test eax, eax
jne 0x40b695
mov eax, str.Created_new_registry_entry__HKCS__1_for_Steam
push eax
call fcn.00406ba0
add esp, 4
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push eax
push 0xf003f
push 0
push str.steamShellOpenCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b49c
push 0x44000c
push 0x44d258
lea eax, [ebp - 0x98]
mov byte [0x441253], 1
push eax
push 0
push 0x432d40
push dword [ebp - 0x94]
mov dword [ebp - 0x98], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Found_previous_registry_entry__HKCS__2_for_Steam
jmp 0x40b4cb
push 0
lea eax, [ebp - 0x94]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.steamShellOpenCommand
push 0x80000000
call esi
test eax, eax
jne 0x40b5b0
push str.Created_new_registry_entry__HKCS__2_for_Steam
call fcn.00406ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push 0x13
push str.URL:steam_protocol
push 1
push 0
push 0x4324a4
push dword [ebp - 0x90]
call esi
push 1
push 0x4324a4
push 1
push 0
push str.URL_Protocol
push dword [ebp - 0x90]
call esi
push dword [ebp - 0x90]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x88]
push eax
call fcn.0040ffb0
add esp, 4
mov edx, dword [eax + 0x10]
mov ecx, 0x7ffffffe
sub ecx, edx
mov dword [ebp - 4], 4
cmp ecx, 0x11
jb 0x40b781
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x40b54a
mov ecx, dword [eax]
push 0x11
push str.steam.exe______1_
push edx
push ecx
push eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0x58]
call fcn.00403e00
lea ecx, [ebp - 0x88]
call fcn.00404be0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push eax
push 1
push 0
push 0x432d40
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x94]
call esi
lea ecx, [ebp - 0x58]
call fcn.00404be0
mov al, 1
jmp 0x40b767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004027e0
add esp, 8
lea ecx, [ebp - 0x89]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00401320
push 0x2c
push str.Unable_to_patch_Registry__HKCS__2__error_
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 2
call fcn.0040a7e0
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
call fcn.00406ba0
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x40b66a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b660
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b786
push ecx
push edx
call fcn.00412fae
add esp, 8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404b90
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b765
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004027e0
add esp, 8
lea ecx, [ebp - 0x89]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00401320
push 0x2c
push str.Unable_to_patch_Registry__HKCS__1__error_
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0040a7e0
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
call fcn.00406ba0
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x40b74b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b741
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b78b
push ecx
push edx
call fcn.00412fae
add esp, 8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404b90
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413212
mov esp, ebp
pop ebp
ret
call fcn.00407650
call fcn.00417daf
call fcn.00417daf
int3