Function at 0x140106370
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r13, rcx
cmp qword [rcx + 0x10], 0
jne 0x140106824
cmp qword [rcx + 0x50], 0
jne 0x140106824
mov r8d, 0x104
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
test eax, eax
je 0x1401063ed
cmp eax, 0x104
je 0x1401063ed
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x1401063f2
mov word [rbp], r14w
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
lea rax, [rbp]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rax + r8*2], r14w
jne 0x140106416
lea rdx, [rbp]
lea rcx, [rbp - 0x48]
call fcn.140005060
nop
mov r8d, 7
lea rdx, str.cn.blb
lea rcx, [rbp - 0x48]
call fcn.140011ba0
mov qword [rbp - 0x78], r14
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea r8, [0x1401dfad0]
lea rcx, [rbp - 0x78]
call fcn.14016e7b8
test eax, eax
jne 0x14010681b
xor edx, edx
lea r8d, [rax + 2]
mov rcx, qword [rbp - 0x78]
call fcn.14016ecb8
mov rcx, qword [rbp - 0x78]
call fcn.14016e654
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call fcn.14016ecb8
mov ecx, ebx
add ecx, 1
cmovb rcx, rsi
call fcn.1401567b4
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1401064c0
mov rcx, qword [rbp - 0x78]
call fcn.14016e938
jmp 0x14010681b
mov r9, qword [rbp - 0x78]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.14016f3b4
mov byte [rbx + rdi], 0
mov rcx, qword [rbp - 0x78]
call fcn.14016e938
mov r12, rdi
lea rdi, str._origin_executable_:
nop dword [rax + rax]
lea rdx, str._game_id_:
mov rcx, r12
call fcn.1401517c0
mov r12, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14010652f
add r12, 0xa
mov qword [rsp + 0x28], r12
cmp byte [r12], 0x22
je 0x14010652f
nop dword [rax]
inc r12
cmp byte [r12], 0x22
jne 0x140106520
mov qword [rsp + 0x28], r12
test r12, r12
je 0x140106810
lea rdx, str._title_:
mov rcx, r12
call fcn.1401517c0
test rax, rax
je 0x14010655d
add rax, 8
cmp byte [rax], 0x22
je 0x14010655d
inc rax
cmp byte [rax], 0x22
jne 0x140106555
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140106860
nop
cmp qword [rbp - 0x18], 0
je 0x140106802
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r14w
xor r8d, r8d
lea rdx, [0x1401c16d8]
lea rcx, [rbp - 0x68]
call fcn.140005060
nop
mov r15d, r14d
mov dword [rsp + 0x20], r14d
test r15d, r15d
jne 0x1401065b4
lea rbx, str._steam_executable_:
jmp 0x1401065d2
cmp r15d, 1
jne 0x1401065c3
lea rbx, str._uplay_executable_:
jmp 0x1401065d2
lea rbx, str._standalone_executable_:
cmp r15d, 2
cmove rbx, rdi
mov rdx, rbx
mov rcx, r12
call fcn.1401517c0
test rax, rax
je 0x1401065fe
mov rcx, rsi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1401065e5
add rax, rcx
cmp byte [rax], 0x22
je 0x1401065fe
inc rax
cmp byte [rax], 0x22
jne 0x1401065f6
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140106860
mov rbx, rax
lea rax, [rbp - 0x68]
cmp rax, rbx
je 0x14010663f
lea rcx, [rbp - 0x68]
call fcn.140004ff0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rsp + 0x58]
call fcn.140004ff0
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1401067e6
lea rdi, [rbp - 0x68]
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x50]
cmp r8, 8
cmovae rdi, rdx
lea rax, [rbp - 0x68]
cmovae rax, rdx
lea rsi, [rax + rcx*2]
lea rbx, [rbp - 0x68]
cmovae rbx, rdx
cmp rbx, rsi
je 0x1401066a3
sub rdi, rbx
movzx ecx, word [rbx]
call fcn.140156bbc
mov word [rbx + rdi], ax
add rbx, 2
cmp rbx, rsi
jne 0x140106686
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x68]
mov qword [rbp - 0x70], r14
lea rcx, [rbp - 0x68]
cmp r8, 8
cmovae rcx, rdx
lea r8, [rbp - 0x70]
lea rdx, [0x1401f6edc]
call fcn.140155e04
mov rdi, rax
test rax, rax
je 0x1401067d8
xor r15d, r15d
lea r12, [r15 - 1]
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r14, qword [rbp - 0x18]
lea rsi, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rsi, qword [rbp - 0x28]
cmp r14, 8
jae 0x140106724
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
jmp 0x140106767
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.140005370
mov qword [rsp + 0x30], rax
lea r8, [r14*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.140151a90
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov r8, r12
inc r8
cmp word [rdi + r8*2], 0
jne 0x140106782
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140005060
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, r13
call fcn.140106bc0
lea r8, [rbp - 0x70]
lea rdx, [0x1401f6edc]
xor ecx, ecx
call fcn.140155e04
mov rdi, rax
test rax, rax
jne 0x1401066e0
mov r15d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
xor r14d, r14d
lea rdi, str._origin_executable_:
mov rsi, 0xffffffffffffffff
inc r15d
mov dword [rsp + 0x20], r15d
cmp r15d, 4
jl 0x1401065a6
lea rcx, [rbp - 0x68]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x28]
call fcn.140004ff0
jmp 0x1401064f0
mov rcx, qword [rsp + 0x50]
call fcn.140155e3c
nop
lea rcx, [rbp - 0x48]
call fcn.140004ff0
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret