Function at 0x1800140a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rdx, qword [rcx]
xor r13d, r13d
mov r14, r8
mov rbx, rcx
mov r15d, r13d
mov dword [rbp - 0x7c], r13d
mov qword [rbp - 0x60], rdx
lea r12d, [r13 + 6]
cmp qword [rcx + 0x58], r13
je 0x1800145f9
cmp dword [rcx + 0x14], 2
jne 0x1800145f9
lea rcx, str.SasLog.txt
mov al, 0x53
nop dword [rax]
cmp al, 0x5c
je 0x1800145f9
cmp al, 0x3a
je 0x1800145f9
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x180014100
mov qword [rsp + 0x130], rdi
mov edi, dword [rbx + 0x18]
test edi, edi
jne 0x18001412f
mov edi, r13d
jmp 0x18001413a
lea ecx, [rdi - 1]
mov eax, ecx
and eax, edx
sub edi, eax
and edi, ecx
cmp dword [rbx + 0x10], 0xffff
je 0x1800145f2
mov eax, edi
mov ecx, 0xffffffff
add rax, rdx
mov qword [rbp - 0x70], rax
add rax, 0x56
cmp rax, rcx
ja 0x1800145f2
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1800c1fa8
test eax, eax
jne 0x1800145f2
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x178], rsi
call fcn.1800c10e0
test eax, eax
je 0x1800141a3
mov word [rbp - 0x7e], r13w
mov word [rbp - 0x80], r13w
jmp 0x1800141eb
movzx r12d, word [rbp - 0x50]
mov eax, dword [rbp - 0x58]
movzx esi, word [rbp - 0x44]
shl r12w, 6
add r12w, word [rbp - 0x54]
shl si, 4
add si, word [rbp - 0x48]
shl r12w, 5
sar eax, 1
add r12w, ax
mov eax, 0x301
add si, ax
mov word [rbp - 0x80], r12w
shl si, 5
mov r12d, 6
add si, word [rbp - 0x4c]
mov word [rbp - 0x7e], si
mov rcx, r14
call fcn.1800129b0
mov r14, rax
test rax, rax
je 0x18001435c
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1800c3040
mov rcx, r14
call fcn.1800c2a74
xor r8d, r8d
mov qword [rbp - 0x68], rax
xor edx, edx
mov rcx, r14
mov rsi, rax
call fcn.1800c3040
mov eax, 0xffffffff
cmp rsi, rax
ja 0x180014354
mov rdx, qword [rbp - 0x60]
lea r8d, [rdi + 0x1e]
cmp rsi, 3
mov rcx, rbx
cmovbe r12d, r13d
mov dword [rbp - 0x78], r12d
call fcn.180013fd0
test eax, eax
je 0x180014354
mov r12, qword [rbp - 0x70]
lea r8, str.SasLog.txt
mov rcx, qword [rbx + 0x50]
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
lea rdx, [r12 + 0x1e]
mov qword [rbp + 0x10], rax
lea r9d, [rax + 0xa]
mov dword [rbp + 0x18], eax
mov word [rbp + 0x1c], ax
call qword [rbx + 0x48]
cmp rax, 0xa
jne 0x180014354
add r12, 0x28
test rsi, rsi
je 0x180014498
mov rcx, qword [rbx + 0x38]
lea edx, [rax - 9]
mov r8d, 0x10000
mov r15, rsi
call qword [rbx + 0x20]
mov rsi, rax
test rax, rax
je 0x180014354
mov edi, dword [rbp - 0x78]
test edi, edi
jne 0x18001432f
nop dword [rax + rax]
mov ecx, 0x10000
mov eax, r15d
cmp r15, rcx
mov r9, r14
mov edx, 1
cmova eax, ecx
mov rcx, rsi
mov r8d, eax
mov edi, eax
call fcn.1800c2d04
cmp rax, rdi
jne 0x18001434a
mov rcx, qword [rbx + 0x50]
mov r9d, edi
mov r8, rsi
mov rdx, r12
call qword [rbx + 0x48]
cmp rax, rdi
jne 0x18001434a
mov ecx, dword [rbp - 0x7c]
mov r8d, edi
mov rdx, rsi
call fcn.18000e890
add r12, rdi
mov dword [rbp - 0x7c], eax
sub r15, rdi
jne 0x1800142d0
mov r15, qword [rbp - 0x68]
jmp 0x18001448e
mov rcx, qword [rbx + 0x38]
mov edx, 1
mov r8d, 0x4df78
call qword [rbx + 0x20]
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x18001438c
mov rcx, qword [rbx + 0x38]
mov rdx, rsi
call qword [rbx + 0x28]
mov rcx, r14
call fcn.1800c1364
xor eax, eax
mov rsi, qword [rsp + 0x178]
mov rdi, qword [rsp + 0x130]
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1800ae8d0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
mov ecx, edi
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r13
call fcn.180012960
mov r12, qword [rbp - 0x60]
lea r8, [rbp - 0x58]
mov rcx, r12
mov r9d, eax
call fcn.180012830
test eax, eax
je 0x1800143cc
mov rcx, qword [rbx + 0x38]
mov rdx, r12
call qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
mov rdx, rsi
call qword [rbx + 0x28]
jmp 0x180014354
mov rcx, qword [rbp - 0x68]
mov eax, 0x10000
cmp rcx, rax
mov r9, r14
mov edx, 1
cmovb eax, ecx
mov rcx, rsi
mov r8d, eax
mov edi, eax
call fcn.1800c2d04
cmp rax, rdi
jne 0x18001446d
nop word [rax + rax]
mov ecx, dword [rbp - 0x7c]
mov r8, rdi
mov rdx, rsi
call fcn.18000e890
mov dword [rbp - 0x7c], eax
lea r8, [rbp - 0x60]
mov eax, 4
mov qword [rbp - 0x60], rdi
sub r15, rdi
mov rdx, rsi
mov rcx, r12
cmovne eax, r13d
mov dword [rsp + 0x28], eax
call fcn.180012650
cmp eax, 1
je 0x180014467
test eax, eax
jne 0x18001446d
mov ecx, 0x10000
mov r9, r14
cmp r15, rcx
mov eax, ecx
mov edx, 1
mov rcx, rsi
cmovb eax, r15d
mov r8d, eax
mov edi, eax
call fcn.1800c2d04
cmp rax, rdi
je 0x180014400
jmp 0x18001446d
mov r13d, 1
mov rcx, qword [rbx + 0x38]
mov rdx, r12
call qword [rbx + 0x28]
test r13d, r13d
je 0x1800143c0
mov r15, qword [rbp - 0x48]
mov r13d, 8
mov r12, qword [rbp - 0x50]
mov rcx, qword [rbx + 0x38]
mov rdx, rsi
call qword [rbx + 0x28]
mov rcx, r14
call fcn.1800c1364
mov eax, 0xffffffff
cmp r15, rax
ja 0x18001435c
cmp r12, rax
ja 0x18001435c
mov esi, dword [rbp - 0x7c]
lea r8, [rbp]
mov r14, qword [rbp - 0x68]
xor eax, eax
mov qword [rbp + 8], rax
mov r9d, 0x1e
mov qword [rbp + 0x10], rax
movzx edi, word [rbp - 0x7e]
mov qword [rbp], rax
mov rdx, qword [rbp - 0x70]
mov dword [rbp + 0x18], eax
movzx eax, r13w
neg ax
mov dword [rbp], 0x4034b50
movzx eax, r13w
mov word [rbp + 6], 0
sbb cx, cx
mov byte [rbp + 8], r13b
shr ax, 8
and cx, 0x14
mov byte [rbp + 9], al
movzx eax, word [rbp - 0x80]
mov byte [rbp + 0xa], al
shr ax, 8
mov byte [rbp + 0xb], al
movzx eax, di
shr ax, 8
mov byte [rbp + 0xd], al
mov eax, esi
shr eax, 8
mov byte [rbp + 0xf], al
mov eax, esi
shr eax, 0x10
mov byte [rbp + 0x10], al
mov eax, esi
shr eax, 0x18
mov byte [rbp + 0x11], al
mov eax, r15d
shr eax, 8
mov byte [rbp + 0x13], al
mov eax, r15d
shr eax, 0x10
mov byte [rbp + 0x14], al
mov eax, r15d
shr eax, 0x18
mov byte [rbp + 0x15], al
mov eax, r14d
shr eax, 8
mov byte [rbp + 0x17], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp + 0x18], al
mov eax, r14d
mov byte [rbp + 4], cl
shr cx, 8
shr eax, 0x18
mov byte [rbp + 5], cl
mov rcx, qword [rbx + 0x50]
mov byte [rbp + 0x19], al
mov byte [rbp + 0xc], dil
mov byte [rbp + 0xe], sil
mov byte [rbp + 0x12], r15b
mov byte [rbp + 0x16], r14b
mov dword [rbp + 0x1a], 0xa
call qword [rbx + 0x48]
cmp rax, 0x1e
jne 0x18001435c
lea r8d, [rax - 0x14]
mov rcx, rbx
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x70], rax
movzx eax, word [rbp - 0x80]
mov word [rsp + 0x68], di
mov word [rsp + 0x60], ax
mov word [rsp + 0x50], r13w
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
call fcn.180013c20
test eax, eax
je 0x18001435c
inc dword [rbx + 0x10]
mov eax, 1
mov qword [rbx], r12
jmp 0x18001435e
xor eax, eax
jmp 0x180014366
xor eax, eax
jmp 0x18001436e