Function at 0x1400cdfd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
lea r8, [0x1401b6348]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400cd020
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400ce231
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.MSVCR110.dll_fseek
mov rcx, qword [rsp + 0x48]
call sub.MSVCR110.dll_ftell
mov dword [rsp + 0x60], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.MSVCR110.dll_fseek
mov eax, dword [rsp + 0x60]
add eax, 1
mov eax, eax
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400ce22c
mov eax, dword [rsp + 0x60]
add eax, 1
mov eax, eax
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_memset
movsxd rax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_fread
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
test eax, eax
je 0x1400ce163
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0xd
jne 0x1400ce127
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 1]
cmp eax, 0xa
jne 0x1400ce127
mov rax, qword [rsp + 0x58]
add rax, 1
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov dword [rsp + 0x78], eax
jmp 0x1400ce15e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
add rax, 1
mov qword [rsp + 0x58], rax
jmp 0x1400ce0d1
mov rax, qword [rsp + 0x40]
mov byte [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x48]
call sub.MSVCR110.dll_fclose
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x1400ce224
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400ce1ce
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 1]
cmp eax, 0xa
jne 0x1400ce1ce
mov rax, qword [rsp + 0x68]
add rax, 2
mov qword [rsp + 0x68], rax
jmp 0x1400ce21f
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0x93
je 0x1400ce1ec
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0x94
jne 0x1400ce1f4
mov rax, qword [rsp + 0x68]
mov byte [rax], 0x22
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x70]
add rax, 1
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
add rax, 1
mov qword [rsp + 0x68], rax
jmp 0x1400ce193
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
jmp 0x1400ce38a
call sub.MSVCR110.dll__errno
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 1
je 0x1400ce24f
cmp dword [rsp + 0x7c], 0xd
je 0x1400ce24f
jmp 0x1400ce2ef
cmp qword [rsp + 0xa0], 0
je 0x1400ce2ea
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x88], 0
je 0x1400ce28c
xor eax, eax
test eax, eax
je 0x1400ce28c
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0x80], eax
jmp 0x1400ce297
mov dword [rsp + 0x80], 0xffffffe2
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x88], ecx
call sub.MSVCR110.dll__errno
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xff
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax]
mov r8d, 0x5b
mov edx, 0xffffffe2
mov rcx, qword [rsp + 0xa0]
call fcn.14006e450
jmp 0x1400ce38a
cmp qword [rsp + 0xa0], 0
je 0x1400ce38a
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x88], 0
je 0x1400ce32c
xor eax, eax
test eax, eax
je 0x1400ce32c
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0x84], eax
jmp 0x1400ce337
mov dword [rsp + 0x84], 0xffffffff
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x84]
mov dword [rax + 0x88], ecx
call sub.MSVCR110.dll__errno
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xff
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax]
mov r8d, 0x5c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xa0]
call fcn.14006e450
mov rax, qword [rsp + 0x58]
add rsp, 0x98
ret