Function at 0x1403505c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 + 0x58], rax
cmp qword [rsp + 0x80], 0
je 0x14035066c
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x14035066c
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1405e70e0]
mov r8d, dword [rsp + 0x70]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1403506c0
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1405e70e0]
mov r8d, dword [rsp + 0x70]
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 + 0x80]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x40], rax
jae 0x1403509b6
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x1a
jne 0x1403507c8
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 0x140350791
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x1405e70e0]
mov r8d, dword [rsp + 0x70]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1403507c3
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x48], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403509b6
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0xd
je 0x14035080c
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x49]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403506ec
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, qword [rsp + 0x50]
jae 0x140350885
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 1]
cmp eax, 0xa
jne 0x14035084e
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140350880
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x4a], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x4a]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403506ec
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403508c1
cmp dword [rsp + 0x4c], 0
jne 0x1403508db
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403506ec
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1405e70e0]
mov edx, dword [rsp + 0x70]
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 0x14035094f
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14035092a
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14035094d
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
mov ecx, dword [rsp + 0x70]
call fcn.140351090
jmp 0x1403509b1
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14035097c
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
jne 0x14035097c
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403509b1
mov r8d, 1
mov rdx, 0xffffffffffffffff
mov ecx, dword [rsp + 0x70]
call fcn.140005130
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
je 0x1403509b1
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1403506ec
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret