Function at 0x13b406b50
Capabilities:
Print debug messages
Query environment variable
Set environment variable

Disassembly:
push rbx
sub rsp, 0x460
cmp qword [0x13b4447d8], 0
movzx ebx, cl
je 0x13b406b71
mov al, 1
add rsp, 0x460
pop rbx
ret
lea r9, str.SteamClient020
mov qword [rsp + 0x480], rsi
xor r8d, r8d
mov byte [0x13b444804], bl
lea rdx, [0x13b444804]
lea rcx, [0x13b4447e0]
call fcn.13b406440
mov qword [0x13b4447d8], rax
mov r10, rax
test rax, rax
je 0x13b406f76
xor esi, esi
mov qword [0x13b444880], rsi
test bl, bl
je 0x13b406c01
mov rcx, qword [rax]
lea r8d, [rsi + 0xa]
lea rdx, [0x13b4447e8]
mov r9, qword [rcx + 0x18]
mov rcx, rax
call r9
mov dword [0x13b4447ec], eax
test eax, eax
je 0x13b406f76
mov r8d, dword [0x13b4447e8]
test r8d, r8d
jne 0x13b406c40
mov rsi, qword [rsp + 0x480]
xor al, al
add rsp, 0x460
pop rbx
ret
mov rax, qword [rax]
mov rcx, r10
call qword [rax]
mov rcx, qword [0x13b4447d8]
mov dword [0x13b4447e8], eax
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
mov edx, eax
call r8
mov r8d, dword [0x13b4447e8]
mov dword [0x13b4447ec], eax
test r8d, r8d
je 0x13b406f64
test eax, eax
je 0x13b406f42
cmp qword [0x13b4447f8], rsi
jne 0x13b406c62
mov rcx, qword [0x13b4447d8]
mov rax, qword [rcx]
call qword [rax]
mov r8d, dword [0x13b4447e8]
mov dword [0x13b444800], eax
mov rcx, qword [0x13b4447d8]
lea r9, str.SteamUtils010
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x60]
test rax, rax
je 0x13b406f39
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov ebx, eax
test eax, eax
je 0x13b406f39
xor r8d, r8d
lea rcx, str.SteamAppId
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x13b406cd5
mov r8d, ebx
mov byte [rsp + 0x30], sil
lea rdx, [0x13b427eec]
lea rcx, [rsp + 0x30]
call fcn.13b405430
lea rdx, [rsp + 0x30]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor r8d, r8d
mov qword [rsp + 0x488], rdi
xor edx, edx
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, ebx
and edi, 0xffffff
test eax, eax
jne 0x13b406d4c
mov qword [rsp + 0x478], rsi
lea rdx, str._llu
mov dword [rsp + 0x478], edi
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x478]
mov byte [rsp + 0x30], sil
call fcn.13b405270
lea rdx, [rsp + 0x30]
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [rsp + 0x30]
lea rcx, str.SteamOverlayGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor r8d, r8d
lea rcx, str.SteamOverlayGameId
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x13b406da1
mov qword [rsp + 0x478], rsi
lea rdx, str._llu
mov dword [rsp + 0x478], edi
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x478]
mov byte [rsp + 0x30], sil
call fcn.13b405270
lea rdx, [rsp + 0x30]
lea rcx, str.SteamOverlayGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, ebx
call sym.steam_api64.dll_SteamAPI_SetBreakpadAppID
mov rcx, qword [0x13b4447e0]
call fcn.13b403f20
call fcn.13b406fd0
cmp ebx, 0x301
je 0x13b406ebc
mov rcx, qword [str.gameoverlayrenderer64.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x13b406ebc
xor edx, edx
mov qword [rsp + 0x470], rbp
xor ecx, ecx
call fcn.13b405580
mov r9, qword [str.gameoverlayrenderer64.dll]
lea r8, [0x13b444380]
lea rdx, str._s_s
lea rcx, [rsp + 0x50]
call fcn.13b4053c0
mov rbp, 0xffffffffffffffff
lea rax, [rsp + 0x50]
mov rdi, rbp
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x13b406e20
movsxd rcx, edi
mov eax, 2
inc rcx
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.13b4094c8
mov rbx, rax
lea r8, [rsp + 0x50]
lea eax, [rdi + 1]
mov r9d, ebp
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rbp, qword [rsp + 0x470]
test eax, eax
jne 0x13b406e76
mov word [rbx], si
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rbx
mov rdi, rax
call fcn.13b408e7c
test rdi, rdi
jne 0x13b406ebc
xor edx, edx
lea r8d, [rdi + 8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test rax, rax
jne 0x13b406ebc
mov rcx, qword [str.gameoverlayrenderer64.dll]
xor r8d, r8d
mov dl, 1
call fcn.13b407430
cmp dword [0x13b444378], esi
mov rdi, qword [rsp + 0x488]
jg 0x13b406ee3
mov rcx, qword [0x13b4447d8]
lea rdx, [0x13b403bf0]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
mov rcx, qword [0x13b4447d8]
lea r9, str.SteamUser021
mov r8d, dword [0x13b4447ec]
mov edx, dword [0x13b4447e8]
mov rax, qword [rcx]
call qword [rax + 0x28]
test rax, rax
je 0x13b406f26
mov rcx, qword [rax]
lea rdx, [rsp + 0x478]
mov r8, qword [rcx + 0x10]
mov rcx, rax
call r8
mov rcx, qword [rax]
call fcn.13b407320
mov rsi, qword [rsp + 0x480]
mov al, 1
add rsp, 0x460
pop rbx
ret
lea rcx, str._S_API_FAIL__SteamAPI_Init___failed__no_appID_found._nEither_launch_the_game_from_Steam__or_put_the_file_steam_appid.txt_containing_the_correct_appID_in_your_game_folder._n
jmp 0x13b406f6b
lea rcx, str._S_API_FAIL__SteamAPI_Init___failed__connect_to_global_user_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [0x13b4447d8]
mov edx, dword [0x13b4447e8]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x13b406f71
lea rcx, str._S_API_FAIL__SteamAPI_Init___failed__create_pipe_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.steam_api64.dll_SteamAPI_Shutdown
mov rsi, qword [rsp + 0x480]
xor al, al
add rsp, 0x460
pop rbx
ret