Function at 0x1401e4270
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 0x89e48]
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov rdi, rdx
mov dword [rsp + 0x28], r13d
mov rbx, rcx
mov r14d, r13d
mov ebp, r13d
mov r15d, r13d
test rax, rax
je 0x1401e42c2
mov rcx, qword [rcx + 0x89e50]
lea r9d, [r13 + 2]
lea edx, [r9 + 0x7e]
xor r8d, r8d
call rax
test eax, eax
jne 0x1401e45f0
lea rdx, [0x140471e04]
mov qword [rsp + 0x30], r12
mov rcx, rdi
call fcn.1402e04c4
mov qword [rsp + 0x80], rax
mov r12, rax
test rax, rax
jne 0x1401e42f5
or dword [rbx + 0xf54], 0x200
jmp 0x1401e45dd
mov rcx, r12
mov qword [rsp + 0x78], rsi
call fcn.1402f16fc
cmp eax, 0x50
jne 0x1401e45d0
mov rcx, r12
call fcn.1402f16fc
cmp eax, 0x35
jne 0x1401e45d0
mov rsi, r13
nop
cmp rsi, 3
jge 0x1401e439d
mov rcx, r12
call fcn.1402f16fc
mov edi, eax
cmp eax, 0xffffffff
je 0x1401e439d
cmp eax, 0x23
jne 0x1401e4340
lea r14d, [rax - 0x22]
jmp 0x1401e4320
cmp edi, 0xa
jne 0x1401e434a
mov r14d, r13d
jmp 0x1401e434f
test r14d, r14d
jne 0x1401e4320
mov ecx, edi
call fcn.1402d8750
test eax, eax
je 0x1401e4361
mov ebp, 1
jmp 0x1401e4365
test ebp, ebp
je 0x1401e4320
mov ecx, edi
call fcn.1402d8750
test eax, eax
je 0x1401e4383
mov eax, dword [rsp + rsi*4 + 0x20]
lea eax, [rax + rax*4]
lea eax, [rax - 0x18]
lea eax, [rdi + rax*2]
mov dword [rsp + rsi*4 + 0x20], eax
jmp 0x1401e4320
mov ecx, edi
call fcn.1402d88b0
test eax, eax
je 0x1401e45d0
inc r15d
mov ebp, r13d
inc rsi
jmp 0x1401e4320
cmp r15d, 3
jl 0x1401e45d0
movzx ecx, word [rbx + 0x16]
cmp dword [rsp + 0x20], ecx
jne 0x1401e45c6
movzx eax, word [rbx + 0x14]
cmp dword [rsp + 0x24], eax
jne 0x1401e45c6
cmp dword [rsp + 0x28], 0xffff
jne 0x1401e45c6
mov edx, ecx
mov r8d, 2
mov rcx, rbx
call fcn.1400fa2f0
lea r8, str.subtract__
mov qword [rsp + 0x88], rax
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call fcn.1400fa510
mov ebp, r13d
cmp r13w, word [rbx + 0x14]
jae 0x1401e4570
nop dword [rax]
movzx r8d, word [rbx + 0x16]
mov r9, r12
mov edx, 2
mov rcx, rdi
call fcn.1402e48a0
mov esi, r13d
cmp r13w, word [rbx + 0x16]
jae 0x1401e4562
mov eax, ebp
mov r14, rdi
and eax, 7
lea ecx, [rax + rax]
mov dword [rsp + 0x70], ecx
nop dword [rax]
nop word [rax + rax]
mov edi, dword [rbx + 0x194]
mov eax, esi
and eax, 1
or eax, ecx
add eax, eax
mov ecx, eax
mov r12d, eax
shr edi, cl
mov r13d, eax
movzx ecx, word [r14]
and edi, 3
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r10d, word [rbx + 0x548ac]
mov edx, ebp
movzx r11d, word [rbx + 0x1e]
mov ecx, r10d
mov r15, qword [rbx + 8]
movzx r8d, ax
mov eax, esi
sar eax, cl
sar edx, cl
imul edx, r11d
add eax, edx
cdqe
lea rax, [rdi + rax*4]
movzx ecx, word [r15 + rax*2]
sub ecx, r8d
test ecx, ecx
jle 0x1401e4505
movzx ecx, word [r14]
mov edi, dword [rbx + 0x194]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r10d, word [rbx + 0x548ac]
mov edx, esi
movzx r11d, word [rbx + 0x1e]
movzx r9d, ax
mov r15, qword [rbx + 8]
mov ecx, r10d
sar edx, cl
mov r8d, ebp
sar r8d, cl
mov eax, edi
imul r8d, r11d
movzx ecx, r12b
shr rax, cl
and eax, 3
add r8d, edx
movsxd rdx, r8d
lea rax, [rax + rdx*4]
movzx r8d, word [r15 + rax*2]
sub r8w, r9w
jmp 0x1401e4508
xor r8d, r8d
movzx ecx, r10w
mov edx, ebp
sar edx, cl
add r14, 2
movzx eax, r11w
imul edx, eax
mov eax, esi
sar eax, cl
inc esi
movzx ecx, r13b
add edx, eax
mov eax, dword [rbx + 0x194]
shr rax, cl
mov ecx, dword [rsp + 0x70]
and eax, 3
movsxd rdx, edx
lea rax, [rax + rdx*4]
mov word [r15 + rax*2], r8w
movzx eax, word [rbx + 0x16]
cmp esi, eax
jl 0x1401e4450
mov r12, qword [rsp + 0x80]
xor r13d, r13d
mov rdi, qword [rsp + 0x88]
movzx eax, word [rbx + 0x14]
inc ebp
cmp ebp, eax
jl 0x1401e4410
mov rdx, rdi
mov rcx, rbx
call fcn.1400fa4c0
mov rcx, r12
call fcn.1402dfbac
lea rcx, [rbx + 0x20f58]
xor edx, edx
mov r8d, 0x4018
call fcn.1402d1c50
mov rax, qword [rbx + 0x89e48]
mov dword [rbx + 0x24f70], r13d
test rax, rax
je 0x1401e45d8
mov rcx, qword [rbx + 0x89e50]
mov edx, 0x80
lea r9d, [rdx - 0x7e]
lea r8d, [rdx - 0x7f]
call rax
test eax, eax
jne 0x1401e460a
jmp 0x1401e45d8
or dword [rbx + 0xf54], 0x400
mov rcx, r12
call fcn.1402dfbac
mov rsi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1404ad790]
mov dword [rsp + 0x70], 6
lea rcx, [rsp + 0x70]
call fcn.1402d12e0
int3
lea rdx, [0x1404ad790]
mov dword [rsp + 0x70], 6
lea rcx, [rsp + 0x70]
call fcn.1402d12e0
int3