Function at 0x140011c00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push r12
push r15
sub rsp, 0x80
xor r12d, r12d
cmp dword [0x140159200], 1
mov esi, r12d
mov dword [rax + 0x10], r12d
mov r15d, r12d
mov dword [rax + 0x18], r12d
mov dword [rax + 0x20], r12d
jne 0x1400120eb
mov qword [rax - 0x20], rbx
lea r8, [rax + 0x18]
mov qword [rax - 0x28], rbp
lea rdx, [rax + 0x20]
mov qword [rax - 0x38], r13
lea r13, [0x1401537fe]
mov rcx, r13
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
mov eax, dword [rsp + 0xb0]
lea rbp, str.check_subsystem_type
mov dword [rsp + 0x40], eax
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
mov eax, dword [rsp + 0xb8]
lea r8, [0x140153190]
mov dword [rsp + 0x38], eax
xor edx, edx
lea rax, str.MapFileAndCheckSum__HeaderSum:0x_08x__CheckSum:0x_08x_n
mov dword [0x14015319c], r12d
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], 0x29f
mov qword [rsp + 0x20], rbp
mov dword [0x1401531a0], 1
call sym.Launcher.exe_elog_fmt
mov eax, 3
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov edx, 0x80000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011d32
mov qword [rsp + 0x38], r13
lea rax, str.failed_to_access_file:_s_n
mov qword [rsp + 0x30], rax
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
mov dword [rsp + 0x28], 0x2a4
lea r8, [0x140153140]
xor edx, edx
mov qword [rsp + 0x20], rbp
lea ecx, [rbx + 3]
mov dword [0x14015314c], r12d
mov dword [0x140153150], 1
call sym.Launcher.exe_elog_fmt
jmp 0x1400120dc
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0x68], rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
movsxd rdi, eax
test eax, eax
jg 0x140011da8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r13
lea rax, str.detect__d_size_of_file:_s_n
mov dword [rsp + 0x38], edi
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
mov qword [rsp + 0x30], rax
lea r8, [0x1401530a0]
xor edx, edx
mov dword [rsp + 0x28], 0x2ac
mov dword [0x1401530ac], r12d
mov dword [0x1401530b0], 1
mov qword [rsp + 0x20], rbp
lea ecx, [rdx + 2]
call sym.Launcher.exe_elog_fmt
jmp 0x1400120d7
mov qword [rsp + 0x58], r14
cmp edi, 0x1000000
jg 0x140011dbe
lea r14, [0x14015a3b0]
jmp 0x140011de9
mov rcx, rdi
call fcn.14001eadc
mov rsi, rax
test rax, rax
je 0x140012080
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140013cf0
mov r14, rsi
lea rbp, str.check_subsystem_type
lea r9, [rsp + 0xa8]
mov dword [rsp + 0xa8], r12d
mov r8d, edi
mov qword [rsp + 0x20], r12
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
cmp dword [rsp + 0xa8], edi
je 0x140011e66
mov qword [rsp + 0x38], r13
lea rax, str.failed_to_read_file:_s_n
mov qword [rsp + 0x30], rax
lea r8, [0x14115a450]
mov dword [rsp + 0x28], 0x2c5
lea ecx, [rdx + 2]
mov qword [rsp + 0x20], rbp
mov dword [0x14115a45c], r12d
mov dword [0x14115a460], 1
jmp 0x14001206c
movsxd rbp, dword [r14 + 0x3c]
lea r8, [0x14115a5e0]
mov dword [0x14115a5ec], r12d
add rbp, r14
mov dword [0x14115a5f0], 1
xor ecx, ecx
movzx eax, word [rbp + 0x5c]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x58]
mov dword [rsp + 0x40], eax
lea rax, str.file_size:_d_CheckSum:0x_08x_Subsystem:_d_n
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rax
lea rax, str.check_subsystem_type
mov dword [rsp + 0x28], 0x2cd
mov qword [rsp + 0x20], rax
call sym.Launcher.exe_elog_fmt
movzx ecx, word [rbp + 0x5c]
lea eax, [rcx - 2]
cmp ax, 1
ja 0x140012071
cmp dword [0x140159204], 1
mov ebx, 2
jne 0x140011efe
lea r10d, [rbx + 1]
cmp cx, bx
jne 0x140011ef2
mov word [rbp + 0x5c], r10w
mov r15d, 1
cmp r15d, 1
jne 0x140012071
jmp 0x140011f12
cmp cx, 3
jne 0x140012071
mov word [rbp + 0x5c], bx
mov r10d, 3
mov edx, dword [rbp + 0x58]
mov r8d, edi
neg rdx
mov word [rsp + 0xa0], r12w
mov rcx, r14
cmp edi, 1
jbe 0x140011f53
lea r9d, [rdi - 2]
shr r9d, 1
inc r9d
nop word [rax + rax]
movzx eax, word [rcx]
add r8d, 0xfffffffe
add rdx, rax
add rcx, rbx
sub r9, 1
jne 0x140011f40
cmp r8d, 1
jne 0x140011f6e
movzx eax, byte [rcx]
mov byte [rsp + 0xa0], al
movzx eax, word [rsp + 0xa0]
add rdx, rax
mov rcx, rdx
mov qword [rsp + 0x30], r12
shr rcx, 0x10
xor r9d, r9d
movzx edx, dx
xor r8d, r8d
add rdx, rcx
mov dword [rsp + 0x28], 0x80
mov rax, rdx
mov dword [rsp + 0x20], r10d
shr rax, 0x10
mov rcx, r13
add eax, edx
mov edx, 0xc0000000
movzx eax, ax
add eax, edi
mov dword [rbp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140011fee
mov qword [rsp + 0x38], r13
lea rax, str.failed_to_access_file:_s_n
mov qword [rsp + 0x30], rax
lea r8, [0x140153370]
mov dword [rsp + 0x28], 0x2ee
mov dword [0x14015337c], r12d
mov dword [0x140153380], 1
jmp 0x140012055
lea r9, [rsp + 0xa8]
mov dword [rsp + 0xa8], r12d
mov r8d, edi
mov qword [rsp + 0x20], r12
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0xa8], edi
je 0x140012071
mov qword [rsp + 0x38], r13
lea rax, str.failed_to_change_subsystem_to_file:_s_n
mov qword [rsp + 0x30], rax
lea r8, [0x140153000]
mov dword [rsp + 0x28], 0x2f7
mov dword [0x14015300c], r12d
mov dword [0x140153010], 1
lea rax, str.check_subsystem_type
mov ecx, ebx
mov qword [rsp + 0x20], rax
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
xor edx, edx
call sym.Launcher.exe_elog_fmt
test rsi, rsi
je 0x1400120d2
mov rcx, rsi
call fcn.14001eac8
jmp 0x1400120d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [0x14115a4fc], r12d
lea rax, str.malloc_res_failed_n
mov dword [0x14115a500], 1
mov qword [rsp + 0x30], rax
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000work_appLauncher_srclauncher.c
lea rax, str.check_subsystem_type
mov dword [rsp + 0x28], 0x2b9
lea ecx, [rdx + 2]
mov qword [rsp + 0x20], rax
lea r8, [0x14115a4f0]
call sym.Launcher.exe_elog_fmt
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov r13, qword [rsp + 0x60]
add rsp, 0x80
pop r15
pop r12
pop rsi
ret