Function at 0x1400d4e20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r12
mov eax, 0x1060
call fcn.1400d5380
sub rsp, rax
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbp, rcx
call fcn.1400afe80
cmp dword [rbp + 8], 0
movsxd r12, eax
jge 0x1400d4e5c
mov dword [rbp + 8], 0
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 1]
call fcn.1400bbfe0
test rax, rax
mov rsi, rax
jns 0x1400d4e7b
or rax, 0xffffffffffffffff
jmp 0x1400d515a
mov r8d, dword [rbp + 0x18]
mov qword [rsp + 0x1098], r13
mov qword [rsp + 0x1058], r14
mov rax, r12
mov qword [rsp + 0x1050], r15
mov r15, r12
and eax, 0x1f
sar r15, 5
lea rcx, [0x140000000]
mov rdx, qword [rcx + r15*8 + 0x13c360]
lea r13, [rax + rax*4]
add r13, r13
movzx r14d, byte [rdx + r13*8 + 0x38]
add r14b, r14b
sar r14b, 1
test r8d, 0x108
jne 0x1400d4ede
movsxd rax, dword [rbp + 8]
sub rsi, rax
mov rax, rsi
jmp 0x1400d5142
mov r9, qword [rbp]
mov r10, qword [rbp + 0x10]
mov qword [rsp + 0x1088], rbx
mov rbx, r9
mov qword [rsp + 0x1090], rdi
sub rbx, r10
test r8b, 3
je 0x1400d5040
cmp r14b, 1
jne 0x1400d5011
cmp dword [rdx + r13*8 + 0x48], 0
je 0x1400d5011
shr rbx, 1
cmp dword [rbp + 8], 0
jne 0x1400d4f2d
mov rax, rsi
jmp 0x1400d5132
mov rdx, qword [rdx + r13*8 + 0x40]
xor r8d, r8d
mov ecx, r12d
call fcn.1400bbfe0
lea rbp, [0x140000000]
mov rcx, qword [rbp + r15*8 + 0x13c360]
mov rdi, rax
cmp rax, qword [rcx + r13*8 + 0x40]
jne 0x1400d5050
mov rcx, qword [rcx + r13*8]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d5050
xor r8d, r8d
mov rdx, rsi
mov ecx, r12d
call fcn.1400bbfe0
test rax, rax
js 0x1400d5050
mov eax, dword [rsp + 0x30]
cmp rbx, rax
ja 0x1400d5050
test rbx, rbx
lea rcx, [rsp + 0x40]
je 0x1400d5000
lea rdx, [rsp + rax + 0x40]
nop
nop
sub rbx, 1
cmp rcx, rdx
jae 0x1400d5000
movzx eax, byte [rcx]
cmp al, 0xd
jne 0x1400d4fe8
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d4ff7
cmp byte [rcx + 1], 0xa
lea rax, [rcx + 1]
jne 0x1400d4ff7
mov rcx, rax
jmp 0x1400d4ff7
movzx eax, al
movsx rax, byte [rax + rbp + 0x127660]
add rcx, rax
add rcx, 1
test rbx, rbx
jne 0x1400d4fc0
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rdi + rcx]
jmp 0x1400d5132
test byte [rdx + r13*8 + 8], 0x80
je 0x1400d5033
cmp r10, r9
mov rax, r10
jae 0x1400d5033
cmp byte [rax], 0xa
jne 0x1400d502a
add rbx, 1
add rax, 1
cmp rax, r9
jb 0x1400d5021
test rsi, rsi
jne 0x1400d5059
mov rax, rbx
jmp 0x1400d5132
test r8b, r8b
js 0x1400d5033
call fcn.14009f140
mov dword [rax], reloc.WS2_32.dll_shutdown
or rax, 0xffffffffffffffff
jmp 0x1400d5132
test r8b, 1
je 0x1400d5125
movsxd rax, dword [rbp + 8]
test eax, eax
jne 0x1400d5072
xor ebx, ebx
jmp 0x1400d5125
mov rdi, rax
sub rdi, r10
add rdi, r9
test byte [rdx + r13*8 + 8], 0x80
je 0x1400d5119
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.1400bbfe0
cmp rax, rsi
jne 0x1400d50c6
mov rax, qword [rbp + 0x10]
lea rcx, [rax + rdi]
cmp rax, rcx
jae 0x1400d50b9
cmp byte [rax], 0xa
jne 0x1400d50b0
add rdi, 1
add rax, 1
cmp rax, rcx
jb 0x1400d50a7
bt dword [rbp + 0x18], 0xd
jae 0x1400d5119
add rdi, 1
jmp 0x1400d5119
xor r8d, r8d
mov rdx, rsi
mov ecx, r12d
call fcn.1400bbfe0
test rax, rax
js 0x1400d5050
cmp rdi, 0x200
ja 0x1400d50fa
mov eax, dword [rbp + 0x18]
test al, 8
je 0x1400d50fa
bt eax, 0xa
jb 0x1400d50fa
mov edi, 0x200
jmp 0x1400d50fe
movsxd rdi, dword [rbp + 0x24]
lea rax, [0x140000000]
mov rax, qword [rax + r15*8 + 0x13c360]
test byte [rax + r13*8 + 8], 4
je 0x1400d5119
add rdi, 1
cmp r14b, 1
jne 0x1400d5122
shr rdi, 1
sub rsi, rdi
cmp r14b, 1
jne 0x1400d512e
shr rbx, 1
lea rax, [rbx + rsi]
mov rdi, qword [rsp + 0x1090]
mov rbx, qword [rsp + 0x1088]
mov r13, qword [rsp + 0x1098]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0x1060
pop r12
pop rsi
pop rbp
ret