Function at 0x140013a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, qword [rsp + 0x2a0]
mov rbx, rcx
mov r15, qword [rsp + 0x2b0]
lea rcx, str.COPYCMD
mov r12, qword [rsp + 0x2b8]
mov r14, r8
mov rdi, rdx
call fcn.140010700
mov rcx, rax
mov rdx, rdi
call fcn.140013880
mov rcx, qword [rbx + 0x78]
xor r8d, r8d
xor edx, edx
call fcn.140008fa0
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140013880
xor r13d, r13d
test eax, eax
je 0x140013b10
movzx ecx, word [rsi]
add rsi, 2
test cx, cx
jne 0x140013b04
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp word [rsi + rbx*2], r13w
jne 0x140013b17
test ebx, ebx
je 0x14001ced8
cmp ebx, 0x104
jae 0x14001cee3
mov rcx, rsi
call fcn.14000e400
mov rdx, rdi
inc rdx
cmp word [rsi + rdx*2], r13w
jne 0x140013b40
inc rdx
mov r8, rax
mov rcx, rsi
call fcn.14000dc10
mov rcx, rsi
call fcn.140005ee8
mov qword [r15], rax
cmp rax, 1
je 0x14001ceee
mov ebx, ebx
inc rbx
lea rbx, [rsi + rbx*2]
cmp word [rbx], r13w
je 0x14001cefa
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140013b83
cmp word [rbx + rax*2 + 2], r13w
jne 0x14001cf16
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r13w
jne 0x140013b9c
cmp eax, 0x104
ja 0x14001cf21
mov rcx, rbx
call fcn.14000e400
mov rdx, rdi
inc rdx
cmp word [rbx + rdx*2], r13w
jne 0x140013bbc
inc rdx
mov r8, rax
mov rcx, rbx
call fcn.14000dc10
mov edx, 0x3a
cmp word [rbx + 2], dx
jne 0x14001cf2c
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000dc10
mov r8, rsi
mov rcx, r14
mov esi, 0x104
mov edx, esi
call fcn.14000f654
test eax, eax
jne 0x14001cfa3
mov rax, qword [r15]
mov rcx, qword [rax + 0x30]
test byte [rcx], 0x10
jne 0x140013c6f
mov edx, 0x5c
mov rcx, r14
call fcn.14000e3dc
mov rbx, rax
test rax, rax
je 0x14001cfae
add rbx, 2
mov rcx, qword [r15]
mov edx, 0x5c
mov rcx, qword [rcx + 0x20]
call fcn.14000e3dc
mov r8, rax
test rax, rax
jne 0x140013c58
mov rax, qword [r15]
mov r8, qword [rax + 0x20]
mov rax, rbx
mov rdx, rsi
sub rax, r14
mov rcx, rbx
sar rax, 1
sub rdx, rax
call fcn.14000dc10
lea r8, [rsp + 0x20]
mov edx, esi
mov rcx, rbp
call fcn.14000f654
test eax, eax
jne 0x14001cfb6
xor ecx, ecx
mov dword [0x140046d88], r13d
mov ebx, r13d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, rbp
mov dword [r12], r13d
call fcn.14000e900
mov r15d, 0x5c
cmp word [rax], r15w
je 0x14001cfc1
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140013d13
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [0x140046d88], eax
test eax, 0xfffffffc
jne 0x14001cfea
cmp eax, 1
je 0x14001cfea
test ebx, ebx
jne 0x140013d26
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400151c0
mov rbx, qword [rsp + 0x298]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 0x10
je 0x140013ce2
mov dword [r12], 1
mov ebx, 1
jmp 0x140013ce2
mov edx, r15d
mov rcx, r14
call fcn.14000e3dc
mov r8, rax
mov rcx, rdi
inc rcx
cmp word [rbp + rcx*2], r13w
jne 0x140013d37
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x140013d42
lea rax, [rdi + 1]
add rax, rcx
cmp rax, rsi
ja 0x14001cfdf
mov rdx, rsi
mov rcx, rbp
call fcn.14000db30
jmp 0x140013ce6
mov ecx, 0x232a
call fcn.1400219cc
int3
mov ecx, 0x232e
call fcn.1400219cc
int3
mov ecx, dword [0x140046d88]
call fcn.1400219cc
int3
mov rax, qword [0x140030398]
movzx ecx, word [rax]
mov word [rsp + 0x20], cx
mov dword [rsp + 0x22], 0x3a
jmp 0x140013bf5
mov ecx, 0x232a
call fcn.1400219cc
int3
mov ecx, 0x232e
call fcn.1400219cc
int3
mov eax, 0x5c
cmp word [rbx], ax
jne 0x14001cf40
cmp word [rbx + 2], ax
je 0x140013be3
mov rax, qword [0x140030398]
movzx ecx, word [rax]
mov word [rsp + 0x20], cx
mov rcx, rdi
mov dword [rsp + 0x22], edx
inc rcx
cmp word [rbx + rcx*2], r13w
jne 0x14001cf56
lea rdx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14001cf68
inc rcx
add rax, rcx
mov ecx, 0x104
cmp rax, rcx
jbe 0x14001cf8d
mov ecx, 0x232e
call fcn.1400219cc
int3
mov rdx, rcx
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.14000db30
nop
jmp 0x140013bf5
mov ecx, 0x232e
call fcn.1400219cc
int3
mov rbx, r14
jmp 0x140013c38
mov ecx, 0x232e
call fcn.1400219cc
int3
mov ebx, 1
mov rax, rdi
inc rax
cmp word [rbp + rax*2], r13w
jne 0x14001cfc9
mov word [rbp + rax*2 - 2], r13w
jmp 0x140013cb4
mov ecx, 0x232e
call fcn.1400219cc
int3
mov ecx, eax
call fcn.1400219cc
int3