Function at 0x1400c2540
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
je 0x1400c2601
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0xa
jne 0x1400c2601
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 4
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401629e0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1400c2661
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0xfffffffb
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401629e0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x40], rax
jae 0x1400c29c0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x1a
jne 0x1400c2786
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0x40
test eax, eax
jne 0x1400c274b
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 2
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1401629e0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1400c2781
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x48], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x48]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c29c0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0xd
je 0x1400c27ce
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x4a], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x4a]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c2694
mov rax, qword [rsp + 0x40]
add rax, 2
cmp rax, qword [rsp + 0x58]
jae 0x1400c2852
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0xa
jne 0x1400c2817
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c284d
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x4c], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x4c]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c2694
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
xor eax, eax
mov word [rsp + 0x38], ax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c289e
cmp dword [rsp + 0x50], 0
jne 0x1400c28be
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c2694
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401629e0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0x48
test eax, eax
je 0x1400c2947
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x1400c2919
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c2945
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
movzx edx, word [rsp + 0x38]
mov ecx, dword [rsp + 0x80]
call fcn.1400c2a20
jmp 0x1400c29bb
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x1400c297d
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jne 0x1400c297d
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c29bb
mov r8d, 1
mov rdx, 0xfffffffffffffffe
mov ecx, dword [rsp + 0x80]
call fcn.1400c2080
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
je 0x1400c29bb
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x1400c2694
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
add rsp, 0x78
ret