Function at 0x140091b90
Capabilities:
Check if file exists
Get file attributes
Move file
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14020fe28]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
movzx esi, r8b
mov r14, rdx
mov rdi, rcx
mov ebx, 0x8fc
test rcx, rcx
je 0x140092103
test rdx, rdx
je 0x140092103
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1400a7190
xor edx, edx
lea rcx, [rbp + 0xb0]
mov r8d, 0x104
call fcn.1400a7190
xorps xmm0, xmm0
lea rcx, [rbp + 0x1c0]
xorps xmm1, xmm1
xor ebx, ebx
mov r8, r14
mov edx, 0x104
movups xmmword [rsp + 0x40], xmm0
lea r9, [rbx - 1]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
call fcn.1400b46b8
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.1400cec38
cmp rax, 0x104
jne 0x140091c95
mov byte [rbp + 0x2c3], bl
jmp 0x140091cb4
mov r9, 0xffffffffffffffff
lea r8, str.._tmp
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.1400e59b8
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0xb0]
mov r8, r14
mov edx, 0x104
call fcn.1400b46b8
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400cec38
cmp rax, 0x104
jne 0x140091cf0
mov byte [rbp + 0x1b3], bl
jmp 0x140091d0f
mov r9, 0xffffffffffffffff
lea r8, str.._ok_
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1400e59b8
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091d5b
bt eax, 0xa
jae 0x140091d5b
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091d4b
test al, 0x10
je 0x140091d4b
lea rcx, [rbp + 0x1c0]
call fcn.1400d246c
jmp 0x140091d57
lea rcx, [rbp + 0x1c0]
call fcn.1400b5fcc
test eax, eax
jne 0x140091d7e
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x1c0]
call fcn.1400d1f24
test eax, eax
jne 0x140091d7e
lea rcx, [rbp + 0x1c0]
call fcn.1400b5fcc
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091dca
bt eax, 0xa
jae 0x140091dca
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091dba
test al, 0x10
je 0x140091dba
lea rcx, [rbp + 0xb0]
call fcn.1400d246c
jmp 0x140091dc6
lea rcx, [rbp + 0xb0]
call fcn.1400b5fcc
test eax, eax
jne 0x140091e1d
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xb0]
call fcn.1400d1f24
test eax, eax
jne 0x140091e1d
mov rcx, r14
call fcn.140092720
lea rcx, [rbp + 0xb0]
test eax, eax
jne 0x140091e0a
mov rdx, r14
call fcn.1400b5ce8
test eax, eax
je 0x140091e1d
mov ebx, 0xbba
jmp 0x140092103
call fcn.1400b5fcc
test eax, eax
je 0x140091e1d
mov ebx, 0xbbc
jmp 0x140092103
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091e5d
bt eax, 0xa
jae 0x140091e5d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091e4d
test al, 0x10
je 0x140091e4d
mov rcx, rdi
call fcn.1400d246c
jmp 0x140091e55
mov rcx, rdi
call fcn.1400b5fcc
test eax, eax
jne 0x140092103
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400d1f24
test eax, eax
jne 0x140092103
cmp dword [rsp + 0x54], ebx
jle 0x140092103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091eb8
bt eax, 0xa
jae 0x140091eb8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140091eac
test al, 0x10
je 0x140091eac
mov rcx, r14
call fcn.1400d246c
jmp 0x140091eb4
mov rcx, r14
call fcn.1400b5fcc
test eax, eax
jne 0x140091ed2
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400d1f24
test eax, eax
jne 0x140091ed2
test sil, sil
je 0x140092103
mov ecx, dword [rsp + 0x54]
cmp dword [rbp - 0x7c], ecx
jne 0x140091f22
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.140092bc0
test al, al
je 0x140092103
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140092bc0
test al, al
je 0x140092103
mov r8d, 0x20
lea rdx, [rbp - 0x5c]
lea rcx, [rbp + 0x14]
call fcn.1400a73c0
test eax, eax
je 0x140092103
mov ecx, dword [rsp + 0x54]
mov eax, 0x1000
mov qword [rsp + 0x430], r12
cmp ecx, eax
mov qword [rsp + 0x3e8], r13
mov qword [rsp + 0x3e0], r15
mov r12, rbx
cmovle eax, ecx
movsxd r15, eax
mov rcx, r15
mov qword [rsp + 0x38], r15
call fcn.1400b45e8
mov r13, rax
test rax, rax
je 0x1400920e6
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1400a7190
xor r8d, r8d
lea rdx, [0x140120b94]
mov rcx, rdi
call fcn.1400927b0
mov qword [rsp + 0x30], rax
mov rsi, rax
mov edi, 0xbba
test rax, rax
je 0x1400920b2
xor r8d, r8d
lea rdx, [0x140120e1c]
lea rcx, [rbp + 0x1c0]
call fcn.1400927b0
mov r12, rax
test rax, rax
je 0x1400920b2
movsxd rdi, dword [rsp + 0x54]
test rdi, rdi
je 0x14009202e
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsp + 0x30]
cmp rdi, r15
mov rsi, r15
mov qword [rsp + 0x20], rax
cmovbe rsi, rdi
mov r8d, 1
mov r9, rsi
mov rdx, r15
mov rcx, r13
call fcn.1400e60f8
mov r15, rax
mov rax, rbx
cmp r15, rsi
jne 0x140092016
mov r9, r12
mov r8, r15
mov edx, 1
mov rcx, r13
call fcn.1400e76a0
cmp rax, rsi
jne 0x1400920a4
sub rdi, r15
mov r15, qword [rsp + 0x38]
jne 0x140091fd0
mov rsi, qword [rsp + 0x30]
mov edi, 0xbba
mov rcx, r13
call fcn.1400b45d4
test rsi, rsi
je 0x140092050
mov rcx, rsi
call fcn.1400e6904
mov rcx, rsi
call fcn.1400e62b8
test r12, r12
je 0x140092075
mov rcx, r12
call fcn.1400e6904
mov rcx, r12
call fcn.1400e62b8
lea rcx, [rbp + 0x1c0]
test ebx, ebx
je 0x1400920bc
call fcn.1400b5fcc
test ebx, ebx
jne 0x1400920eb
mov rcx, r14
call fcn.140092720
test eax, eax
je 0x1400920d0
mov rcx, r14
call fcn.1400b5fcc
test eax, eax
je 0x1400920d0
lea rcx, [rbp + 0xb0]
call fcn.1400b5fcc
mov ebx, 0xbbc
jmp 0x1400920eb
mov rsi, qword [rsp + 0x30]
mov edi, 0xbba
mov ebx, edi
jmp 0x140092033
mov ebx, 0xbbb
jmp 0x140092033
lea rdx, [rbp + 0xb0]
call fcn.1400b5ce8
test eax, eax
je 0x140092079
mov ebx, edi
jmp 0x1400920eb
mov rdx, r14
lea rcx, [rbp + 0xb0]
call fcn.1400b5ce8
test eax, eax
cmovne ebx, edi
jmp 0x1400920eb
mov ebx, 0x708
mov r13, qword [rsp + 0x3e8]
mov r12, qword [rsp + 0x430]
mov r15, qword [rsp + 0x3e0]
mov eax, ebx
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400a56b0
add rsp, 0x3f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret