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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.1400e3930
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + reloc.mfc140u.dll_CCmdTarget::EnableAutomation], rbx
mov qword [rsp + 0x1110], rsi
mov qword [rsp + 0x1118], rdi
movaps xmmword [rsp + 0x10c0], xmm6
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov r14, qword [rcx + 8]
test r14, r14
je 0x1402543e4
mov r15, qword [rcx]
xor r13d, r13d
cmp r13w, word [r15]
je 0x140254407
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402540ab
test al, 0x10
jne 0x1402543a2
lea rax, [rbp - 0x58]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 0x800
lea r9, [r14 + 1]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14024fee0
nop
lea rbx, [r15 + r14*2]
movabs rax, 0x3fffffffffffffff
cmp r14, qword [rbp - 0x60]
jbe 0x140254182
cmp r14, rax
ja 0x14025442a
lea rcx, [r14 + r14]
call fcn.1400e351c
mov r12, rax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140254131
mov qword [rbp - 0x68], r13
lea rax, [rbp - 0x58]
cmp rax, rcx
je 0x140254131
call fcn.1400e3558
mov rdi, r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r14
mov rsi, r13
mov qword [rbp - 0x68], r13
mov rax, r12
cmp r15, rbx
je 0x140254173
test r12, r12
je 0x140254173
test r15, r15
je 0x140254173
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r12]
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
sub rax, r12
sar rax, 1
add rsi, rax
mov qword [rbp - 0x68], rsi
jmp 0x1402541dd
lea r8, [r14 + r14]
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
mov r12, rdi
cmp rsi, r14
jae 0x1402541c7
test rsi, rsi
je 0x1402541b7
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add r15, rbx
add r12, rbx
mov rdi, qword [rbp - 0x70]
mov r8, r14
sub r8, rsi
je 0x1402541d6
add r8, r8
mov rcx, r12
jmp 0x1402541ca
mov rcx, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [rbp - 0x70]
mov rsi, r14
mov qword [rbp - 0x68], r14
mov dword [rsp + 0x38], r13d
cmp rsi, qword [rbp - 0x60]
jae 0x140254205
lea rax, [rdi + rsi*2]
test rax, rax
je 0x1402541fd
mov word [rax], r13w
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x70]
inc rsi
jmp 0x1402542e0
lea r15, [rdi + rsi*2]
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.14024fd30
mov r12, rax
movabs rax, 0x3fffffffffffffff
cmp r12, rax
ja 0x1402543d7
lea rcx, [r12 + r12]
call fcn.1400e351c
mov rdi, rax
mov rsi, rax
mov rcx, qword [rbp - 0x70]
mov r14, rcx
test rcx, rcx
je 0x140254275
cmp rcx, r15
je 0x140254275
test rax, rax
je 0x140254275
mov rax, r15
sub rax, rcx
sar rax, 1
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rcx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rsi, [rbx + rsi]
mov rcx, qword [rbp - 0x70]
test rsi, rsi
je 0x140254286
movzx eax, word [rsp + 0x38]
mov word [rsi], ax
mov rcx, qword [rbp - 0x70]
add rsi, 2
test r14, r14
je 0x1402542d2
mov rax, qword [rbp - 0x68]
lea rbx, [r14 + rax*2]
cmp r15, rbx
je 0x1402542c4
test rsi, rsi
je 0x1402542c4
test r15, r15
je 0x1402542c4
sub rbx, r15
sar rbx, 1
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
add rsi, rbx
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x58]
cmp rax, rcx
je 0x1402542d2
call fcn.1400e3558
mov qword [rbp - 0x70], rdi
sub rsi, rdi
sar rsi, 1
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x68], rsi
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
test rsi, rsi
lea r14, [rdi + rsi*2]
jne 0x14025430e
mov r14, rdi
add r14, 0xfffffffffffffffe
cmp rdi, r14
je 0x14025438a
mov rbx, rdi
movaps xmm6, xmmword [rsp + 0x40]
nop
mov rsi, rbx
cmp rbx, r14
je 0x140254345
mov rax, rbx
nop dword [rax + rax]
cmp word [rbx], 0x5c
je 0x140254345
lea rbx, [rax + 2]
mov rsi, rbx
mov rax, rbx
cmp rbx, r14
jne 0x140254330
cmp rdi, rsi
je 0x14025437a
movdqa xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1402536f0
test al, al
je 0x140254386
cmp rsi, r14
je 0x140254386
mov rdi, rbx
add rdi, 2
mov rbx, rdi
cmp rdi, r14
jne 0x140254320
mov rdi, qword [rbp - 0x70]
cmp qword [rbp - 0x60], 0
je 0x1402543a2
lea rax, [rbp - 0x58]
cmp rax, rdi
je 0x1402543a2
mov rcx, rdi
call fcn.1400e3558
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.get_next_capacity__allocators_max_size_reached
call fcn.14025e550
nop
lea rdx, str.DirectoryCreateRecursively:_empty_path
lea rcx, [rsp + 0x60]
call fcn.140082580
lea rdx, [0x140359df0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.DirectoryExists:_empty_path
lea rcx, [rsp + 0x60]
call fcn.140082580
lea rdx, [0x140359df0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, str.get_next_capacity__allocators_max_size_reached
call fcn.14025e550
int3