Function at 0x14008d370
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rsp + 0xb8]
xor eax, eax
movaps xmmword [rsp + 0x40], xmm6
mov r12, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
mov dword [rdi], eax
test edx, edx
jle 0x14008d72c
movsd xmm6, qword [0x1402135c8]
mov r13d, 4
nop dword [rax + rax]
mov r9, qword [r14]
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, r13
call fcn.1401c1e14
cmp rax, 1
jne 0x14008d728
mov rcx, r14
call fcn.140066de0
lea rdx, [rsp + 0x98]
mov rcx, r14
movzx ebx, ax
sub ebp, 6
call fcn.14008dad0
test rax, rax
je 0x14008d416
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x14008d407
add rcx, 2
jmp 0x14008d41b
mov ecx, 2
sub ebp, ecx
test rax, rax
je 0x14008d42a
mov rcx, rax
call fcn.1401be23c
mov rcx, r14
call fcn.140066b70
sub ebp, 4
mov esi, eax
test al, 1
je 0x14008d43d
inc esi
mov eax, 0x3ed
cmp bx, ax
jne 0x14008d4b4
mov rcx, r14
call fcn.140066b70
mov rcx, r14
mov edi, eax
call fcn.140066de0
mov rcx, r14
call fcn.140066de0
mov rcx, r14
call fcn.140066b70
mov rcx, r14
mov ebx, eax
call fcn.140066de0
mov rcx, r14
call fcn.140066de0
sub ebp, 0x10
sub esi, 0x10
movd xmm0, edi
movd xmm1, ebx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm6
mulsd xmm1, xmm6
cvttsd2si ecx, xmm0
cvttsd2si eax, xmm1
mov dword [r12], ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
jmp 0x14008d6f5
mov eax, 0x40f
cmp bx, ax
jne 0x14008d50f
test dword [r15 + 0xc0], 0x40000
je 0x14008d6f5
movsxd rbx, esi
mov rcx, rbx
call fcn.1401bee78
mov r9, qword [r14]
mov r8d, 1
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fcn.1401c1e14
mov edx, r13d
mov r9d, esi
mov r8, rdi
mov rcx, r15
call fcn.14005a950
mov rcx, rdi
call fcn.1401be23c
jmp 0x14008d704
mov eax, 0x422
cmp bx, ax
jne 0x14008d572
test esi, esi
jle 0x14008d6f7
test dword [r15 + 0xc0], 0x40000
je 0x14008d6f5
lea ebx, [rsi + 6]
movsxd rcx, ebx
call fcn.1401bee78
mov ecx, dword [0x14020ea44]
movsxd rdx, esi
mov dword [rax], ecx
movzx ecx, word [0x14020ea48]
mov r8d, 1
mov word [rax + 4], cx
mov r9, qword [r14]
lea rcx, [rax + 6]
mov rdi, rax
call fcn.1401c1e14
mov r9d, ebx
mov edx, 1
jmp 0x14008d4f7
mov eax, 0x424
cmp bx, ax
jne 0x14008d5c1
test esi, esi
jle 0x14008d6f7
test dword [r15 + 0xc0], 0x40000
je 0x14008d6f5
movsxd rbx, esi
mov rcx, rbx
call fcn.1401bee78
mov r9, qword [r14]
mov r8d, 1
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fcn.1401c1e14
mov edx, 3
jmp 0x14008d4f4
mov eax, 0x404
cmp bx, ax
jne 0x14008d683
test esi, esi
jle 0x14008d6f7
test dword [r15 + 0xc0], 0x40000
je 0x14008d6f5
movzx eax, word [0x1402131b4]
mov r13d, dword [0x1402131b0]
mov ebx, dword [0x14021a118]
mov word [rsp + 0x98], ax
movzx eax, byte [0x1402131b6]
lea r12d, [rsi + 0x18]
mov byte [rsp + 0x3e], al
movzx eax, byte [0x14021a11c]
movsxd rcx, r12d
mov byte [rsp + 0x28], al
call fcn.1401bee78
mov rdi, rax
test rax, rax
je 0x14008d6f5
movsd xmm0, qword [str.Photoshop_3.0]
mov dword [rdi + 0xe], ebx
mov dword [rdi + 0x14], 0
movsd qword [rax], xmm0
mov dword [rax + 8], r13d
movzx eax, word [rsp + 0x98]
mov word [rdi + 0xc], ax
mov eax, 0x404
lea rcx, [rdi + 0x18]
mov word [rdi + 0x12], ax
mov r9, qword [r14]
movsxd rdx, esi
mov r8d, 1
call fcn.1401c1e14
mov r9d, r12d
mov edx, 2
jmp 0x14008d4f7
mov eax, 0x40c
cmp bx, ax
jne 0x14008d6f5
test esi, esi
jle 0x14008d6f7
mov rcx, r14
call fcn.140066b70
mov rcx, r14
call fcn.140066b70
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov rcx, r14
call fcn.140066b70
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov rcx, r14
call fcn.140066b70
mov rcx, r14
call fcn.140066b70
mov rcx, r14
call fcn.140066b70
mov rcx, r14
call fcn.140066de0
mov rcx, r14
call fcn.140066de0
mov rcx, qword [r14]
call fcn.1401c2310
sub ebp, 0x1c
sub esi, 0x1c
mov dword [rdi], eax
test esi, esi
je 0x14008d704
movsxd rdx, esi
mov rcx, r14
call fcn.140066ff0
mov rdi, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xa8]
sub ebp, esi
mov r13d, 4
test ebp, ebp
jg 0x14008d3c0
xor eax, eax
jmp 0x14008d72c
movzx eax, r13w
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret