Function at 0x140001120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x20
xor ebx, ebx
mov byte [0x140005638], 0
movsxd rsi, ecx
mov r14, rdx
test ecx, ecx
je 0x1400011b4
mov qword [rsp + 0x30], rdi
nop dword [rax + rax]
mov rdi, qword [r14 + rbx*8]
lea rdx, [0x140003308]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400011a0
lea rdx, str.__skipLauncher
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400011a0
lea rdx, str._skipLauncher
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400011a0
lea rdx, str.skipLauncher
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400011a7
mov byte [0x140005638], 1
inc rbx
cmp rbx, rsi
jb 0x140001150
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
jmp 0x1400011d0
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x5f]
sub rsp, 0xf8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx edx, byte [0x140005638]
lea rcx, str.SkipLauncher_set_to__i_n
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r14
mov qword [r11 - 0x18], r15
call fcn.140001060
lea rdx, [0x14000342c]
lea rcx, str.Dungeons_4_Data_rfdata_version.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
xor r14d, r14d
mov r15d, 1
mov rsi, rax
test rax, rax
jne 0x14000126e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea ecx, [rsi + 2]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error_when_reading_version_file:__s_n
mov rcx, rax
call fcn.140001010
lea rdi, str._version_file_not_found_
jmp 0x140001318
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, ebx
mov rax, 0xffffffffffffffff
add ecx, r15d
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rsi
mov r8, rbx
mov rdx, r15
mov rcx, rax
mov rdi, rax
mov byte [rbx + rax], r14b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, r14d
test rbx, rbx
js 0x1400012f4
mov rax, r14
nop word [rax + rax]
cmp byte [rax + rdi], 0x20
je 0x14000140b
inc ecx
inc rax
cmp rax, rbx
jle 0x1400012e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.Error_when_splitting_version_string:__s
mov rcx, rax
call fcn.140001010
lea rdi, str._could_not_parse_version_
mov rdx, rdi
lea rcx, str.Version_read:__s_n
call fcn.140001060
cmp byte [0x140005638], r14b
mov rsi, qword [rsp + 0x110]
jne 0x140001445
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov ecx, 0x400
mov dword [rbp - 0x39], 0x68
movups xmmword [rbp + 7], xmm0
mov word [rbp + 7], r15w
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x49], rax
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x59], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rdi
lea rdx, str.KalypsoLauncher.exe___gameVersion__s___gamePid__lu___killGameOnQuit
mov r9d, eax
mov rcx, rbx
call fcn.1400010c0
lea rax, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, str.KalypsoLauncher.exe
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001417
mov rcx, qword [rbp - 0x59]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.Received_KalypsoLauncher_quit._n
call fcn.140001060
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001445
movsxd rax, ecx
mov byte [rax + rdi], r14b
jmp 0x140001318
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.CreateProcess_failed___s__n
mov rcx, rax
call fcn.140001010
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov ecx, 0x400
mov dword [rbp - 0x39], 0x68
movups xmmword [rbp + 7], xmm0
mov word [rbp + 7], r15w
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x49], rax
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x59], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
lea rdx, [0x14000341b]
call fcn.1400010c0
lea rax, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [0x14000341b]
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, str.Dungeons_4.exe
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r15, qword [rsp + 0xf0]
mov r14, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x118]
test eax, eax
je 0x140001528
mov rcx, qword [rbp - 0x59]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, str.Dungeons_4.exe
lea rcx, str._s_quit._n
call fcn.140001060
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001556
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.CreateProcess_failed___s__n
mov rcx, rax
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001580
add rsp, 0xf8
pop rbx
pop rbp
ret