Function at 0x1400091e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
push r15
sub rsp, 0x2a8
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [0x14006d8a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
mov rsi, 0xffffffffffffffff
cmp byte [0x14006ca88], r15b
jne 0x1400092bb
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140047d20
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax]
test eax, eax
je 0x140009354
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140009354
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.140022f54
test rax, rax
je 0x14000928f
mov word [rax], r15w
lea rax, [rsp + 0x60]
mov r8, rsi
lea r9, str._sSteamLiteError.log
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [0x14006d6a0]
call fcn.1400022c0
mov byte [0x14006ca88], 1
mov qword [rsp + 0x2a0], rbx
lea rcx, [0x14006d8a8]
mov qword [rsp + 0x298], rbp
mov qword [rsp + 0x290], rdi
mov qword [rsp + 0x288], r12
mov qword [rsp + 0x280], r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r12, [rsp + 0x2c8]
call fcn.1400022b0
mov r9, qword ds:[rsp + 0x2c0]
xor r8d, r8d
mov qword [rsp + 0x28], r12
xor edx, edx
mov rdi, rax
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
or rcx, 2
call fcn.14002e5e0
test eax, eax
mov r14d, eax
cmovs r14d, esi
movsxd rbp, r14d
mov rcx, rbp
call fcn.14001e3b0
mov rbx, rax
test rax, rax
je 0x14000936b
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140047d20
jmp 0x14000936e
lea rcx, [0x14006d8a8]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140009494
mov rbx, r15
mov rax, qword [rsp + 0x2c0]
mov r9, rsi
mov rcx, qword [rdi]
mov r8, rbp
mov qword [rsp + 0x30], r12
mov rdx, rbx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.14002e22c
lea rcx, [0x14006d8a8]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x30], r15
lea rcx, [0x14006d6a0]
mov dword [rsp + 0x28], 0x40000000
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, qword [rsp + 0x288]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000945f
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov rcx, rsi
test rax, rax
je 0x140009459
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov r8d, r14d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xffffffffffffffff
mov byte [rbx + rbp - 1], 0xa
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14006d8a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.14001e3b8
mov r14, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword ds:[rsp + 0x270]
xor rcx, rsp
call fcn.14001e390
add rsp, 0x2a8
pop r15
pop rsi
ret