Function at 0x14003cc60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x488
mov qword [rax + 8], rsi
mov r15, rdx
mov qword [rax - 0x38], r13
mov rsi, r8
mov r13d, 1
mov r14, rcx
mov r8d, r13d
lock xadd dword [0x140096b60], r8d
mov rax, qword [rdx]
lea rdi, [0x140089808]
add rax, 0xc
xor r12d, r12d
movsxd r9, dword [rax]
lea rdx, [rax + r9]
mov eax, r12d
sub eax, r9d
mov r9d, dword [rsi + 0x228]
neg eax
sbb rax, rax
and rdx, rax
mov eax, dword [r15 + 0x14]
mov qword [rsp + 0x30], rdx
mov edx, dword [r15 + 0x38]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.14003c810
cmp byte [r15 + 0x10], r12b
je 0x14003d1a8
mov r9, qword [r15 + 8]
test r9, r9
je 0x14003cd0e
mov r8, rdi
lea rdx, str.CommandLine
mov rcx, r14
call fcn.14003c1e0
mov rax, qword [r15]
cmp dword [rax + 0x58], r12d
je 0x14003ceac
xor edi, edi
mov qword [rsp + 0x50], rdi
nop dword [rax]
nop word [rax + rax]
movsxd rcx, dword [rax + 0x5c]
lea rax, [rax + 0x5c]
lea r8, str.Contents_of__s
lea rdx, [rax + rcx]
xor eax, eax
sub eax, ecx
neg eax
sbb rax, rax
and rdx, rax
xor eax, eax
add rdx, rdi
movsxd rcx, dword [rdx]
sub eax, ecx
neg eax
lea rsi, [rdx + rcx]
sbb rax, rax
and rsi, rax
lea rcx, [rbp - 0x80]
mov r9, rsi
mov edx, 0x400
call fcn.1400033a0
lea rdx, [0x14008a83c]
mov rcx, rsi
call fcn.140014890
mov qword [rsp + 0x58], rax
mov rbx, rax
test rax, rax
jne 0x14003cdd8
mov rbx, qword [rbp + 0x3d0]
mov ecx, 0x208
mov rbx, qword [rbx + 0x110]
call fcn.140057c1c
mov ecx, 0x200
mov qword [rax], 0x200
lock xadd qword [rbx], rcx
lea rbx, [rax + 8]
mov r9, rsi
mov rcx, rbx
lea r8, str.couldnt_open__s_for_reading
mov edx, 0x200
call fcn.1400033a0
jmp 0x14003ce46
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14005cd90
mov rcx, rbx
call fcn.14005cb80
mov rcx, rbx
movsxd rsi, eax
call fcn.14005cd98
mov rbx, qword [rbp + 0x3d0]
lea rdi, [rsi + 1]
lea rcx, [rdi + 8]
mov rbx, qword [rbx + 0x110]
call fcn.140057c1c
mov qword [rax], rdi
lock xadd qword [rbx], rdi
mov r9, qword [rsp + 0x58]
lea rbx, [rax + 8]
mov rcx, rbx
mov r8, rsi
mov rdx, r13
call fcn.140057b54
mov rcx, qword [rsp + 0x58]
mov byte [rax + rbx], 0
call fcn.14005649c
mov rdi, qword [rsp + 0x50]
test rbx, rbx
je 0x14003ce85
mov r9, rbx
lea r8, [0x140089808]
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14003c1e0
mov rsi, qword [rbp + 0x3d0]
lea rcx, [rbx - 8]
mov rdx, qword [rcx]
neg rdx
mov rax, qword [rsi + 0x110]
lock xadd qword [rax], rdx
call fcn.1400578b0
jmp 0x14003ce8c
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [r15]
add rdi, 8
inc r12d
mov qword [rsp + 0x50], rdi
cmp r12d, dword [rax + 0x58]
jne 0x14003cd30
lea rdi, [0x140089808]
mov rax, qword [r15]
cmp dword [rax + 0x70], 0
jle 0x14003cf91
cmp byte [0x1400ce078], 0
je 0x14003cf1a
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp + 0x3c8]
mov dword [rbp + 0x3c8], 0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003cf08
mov edx, dword [rbp + 0x3c8]
or edx, 4
cmp edx, dword [rbp + 0x3c8]
je 0x14003cf08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_33m
mov rdx, rdi
mov rcx, r14
call fcn.14003c060
lea r8, str.Custom_Environment_Variables
mov rcx, r14
lea rdx, str.__s_n
call fcn.14003c060
cmp byte [0x1400ce078], 0
je 0x14003cf91
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp + 0x3d8]
mov dword [rbp + 0x3d8], 0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003cf7f
mov edx, dword [rbp + 0x3d8]
or edx, 4
cmp edx, dword [rbp + 0x3d8]
je 0x14003cf7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_0m
mov rdx, rdi
mov rcx, r14
call fcn.14003c060
mov rax, qword [r15]
xor r12d, r12d
mov ebx, r12d
cmp dword [rax + 0x70], ebx
je 0x14003d016
mov edi, r12d
nop dword [rax]
nop word [rax + rax]
movsxd rcx, dword [rax + 0x74]
lea rax, [rax + 0x74]
lea r10, [rax + rcx]
mov eax, r12d
sub eax, ecx
neg eax
sbb rax, rax
and r10, rax
add r10, rdi
movsxd rcx, dword [r10 + 4]
lea rax, [r10 + 4]
movsxd rdx, dword [r10]
lea r9, [rax + rcx]
mov eax, r12d
sub eax, ecx
mov rcx, r14
neg eax
lea r8, [r10 + rdx]
sbb rax, rax
and r9, rax
mov eax, r12d
sub eax, edx
lea rdx, str._s_s_n
neg eax
sbb rax, rax
and r8, rax
call fcn.14003c060
mov rax, qword [r15]
inc ebx
add rdi, 8
cmp ebx, dword [rax + 0x70]
jne 0x14003cfb0
cmp dword [r15 + 0x3c], r12d
jne 0x14003d182
mov eax, dword [r15 + 0x18]
sub eax, 2
cmp eax, r13d
ja 0x14003d182
mov r8, qword [rsi + 0x110]
lea rdx, [rsp + 0x60]
mov rcx, r15
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
call fcn.14003cab0
cmp byte [0x1400ce078], 0
mov r12, qword [rsp + 0x60]
mov rdi, qword [r12]
je 0x14003d0b9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003d0a3
mov edx, dword [rsp + 0x40]
or edx, 4
cmp edx, dword [rsp + 0x40]
je 0x14003d0a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_91m
mov rcx, r14
lea rdx, [0x140089808]
call fcn.14003c060
mov r8, rdi
lea rdx, str.__s_n
mov rcx, r14
call fcn.14003c060
cmp byte [0x1400ce078], 0
je 0x14003d128
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], 0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003d112
mov edx, dword [rsp + 0x44]
or edx, 4
cmp edx, dword [rsp + 0x44]
je 0x14003d112
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_0m
mov rcx, r14
lea rdx, [0x140089808]
call fcn.14003c060
mov rdi, qword [rsp + 0x68]
cmp rdi, r13
je 0x14003d161
lea rbx, [r12 + 8]
nop word [rax + rax]
mov r8, qword [rbx]
lea rdx, [0x1400899a4]
mov rcx, r14
call fcn.14003c060
inc r13d
lea rbx, [rbx + 8]
movsxd rax, r13d
cmp rax, rdi
jne 0x14003d140
mov rdx, qword [r12 - 8]
lea rcx, [r12 - 8]
mov rax, qword [rsi + 0x110]
neg rdx
lock xadd qword [rax], rdx
call fcn.1400578b0
xor r12d, r12d
mov r9d, dword [r15 + 0x3c]
test r9d, r9d
je 0x14003d1a1
lea r8, [0x14008d04c]
mov rcx, r14
lea rdx, str.ExitCode
call fcn.14003c1e0
lea rdi, [0x140089808]
mov r8, qword [r15 + 0x28]
mov r13, qword [rsp + 0x480]
mov rsi, qword [rsp + 0x4c0]
test r8, r8
je 0x14003d2ae
cmp byte [r15 + 0x10], 0
je 0x14003d298
cmp byte [0x1400ce078], 0
je 0x14003d226
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003d214
mov edx, dword [rsp + 0x48]
or edx, 4
cmp edx, dword [rsp + 0x48]
je 0x14003d214
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_33m
mov rdx, rdi
mov rcx, r14
call fcn.14003c060
lea r8, str.Output
mov rcx, r14
lea rdx, str.__s_n
call fcn.14003c060
cmp byte [0x1400ce078], 0
je 0x14003d292
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x4c]
mov dword [rsp + 0x4c], r12d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14003d280
mov edx, dword [rsp + 0x4c]
or edx, 4
cmp edx, dword [rsp + 0x4c]
je 0x14003d280
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea r8, str.e_0m
mov rdx, rdi
mov rcx, r14
call fcn.14003c060
mov r8, qword [r15 + 0x28]
jmp 0x14003d29f
cmp dword [r15 + 0x18], 1
je 0x14003d2ae
lea rdx, [0x1400899a4]
mov rcx, r14
call fcn.14003c060
add rsp, 0x488
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret