Function at 0x140056c50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5f8
mov r15d, r9d
mov r13d, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x5f0], rax
lea rdx, str.DoCopyDirectory
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x330]
mov rcx, rbx
mov r9d, 0xda
call fcn.140047ce0
lea rcx, [rsp + 0xb0]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rdi + 0x17], 0
jns 0x140056cc8
cmp qword [rdi + 8], 0x103
ja 0x140056cd9
cmp byte [r14 + 0x17], 0
jns 0x140056ce0
cmp qword [r14 + 8], 0x103
jbe 0x140056ce0
xor ebp, ebp
jmp 0x140056e8b
lea rbp, [rsp + 0x98]
mov rcx, rbp
mov rdx, r14
call fcn.140043d20
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x330]
mov rcx, rsi
mov r9d, 0x1ba
call fcn.140047ce0
lea rbx, [rsp + 0xe0]
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsp + 0xaf], 0
jns 0x140056d3f
mov rbp, qword [rsp + 0x98]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rcx, rbx
call fcn.14008c6e0
cmp esi, 0xffffffff
je 0x140056e16
lea rsi, [rsp + 0x330]
lea rbx, [rsp + 0x98]
mov rcx, rsi
mov rdx, rbx
call fcn.140056580
mov rcx, rbx
mov rdx, rsi
call fcn.140043dd0
mov rcx, rsi
call fcn.140043da0
movzx eax, byte [rsp + 0xaf]
test al, al
jns 0x140056d9d
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140056e7c
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140056580
movzx eax, byte [rsp + 0x97]
test al, al
jns 0x140056dca
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140056e05
lea rcx, [rsp + 0x98]
lea rdx, [rsp + 0x80]
call fcn.140043e40
test al, al
jne 0x140056e05
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x98]
call fcn.140044b40
test al, al
je 0x140056ebe
xor ebp, ebp
lea rcx, [rsp + 0x80]
call fcn.140043da0
jmp 0x140056e7e
lea rsi, [rsp + 0x98]
lea rbx, [rsp + 0xe0]
mov rcx, rsi
mov rdx, rbx
call fcn.140044860
lea rbp, [rsp + 0x330]
mov rcx, rbp
mov rdx, rbx
call fcn.140056580
mov rcx, rsi
mov rdx, rbp
call fcn.140043dd0
mov rcx, rbp
call fcn.140043da0
mov rcx, rbx
call fcn.140043da0
movzx eax, byte [rsp + 0xaf]
test al, al
jns 0x140056e73
mov rax, qword [rsp + 0xa0]
test rax, rax
jne 0x140056da6
xor ebp, ebp
lea rcx, [rsp + 0x98]
call fcn.140043da0
lea rcx, [rsp + 0xb0]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x5f0]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x5f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, r13b
lea r9d, [rax + rax]
add r9d, 1
lea rcx, [rsp + 0x330]
mov rdx, rdi
mov r8d, r13d
call fcn.14005de20
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0xe0]
mov rcx, rsi
mov r9d, 0x1ba
call fcn.140047ce0
lea rbx, [rsp + 0xc8]
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140056f25
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rcx, rbx
call fcn.14008c6e0
cmp esi, 0xffffffff
je 0x140057245
mov byte [rsp + 0x2f], r15b
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.140043d20
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0xe0]
mov rcx, rsi
mov r9d, 0x1cc
call fcn.140047ce0
lea r12, [rsp + 0xc8]
mov rcx, r12
mov rdx, rsi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140056f96
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne r15b
and ebp, 0x10
shr ebp, 4
mov rcx, r12
call fcn.14008c6e0
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.140043d20
test r13b, r13b
je 0x140057052
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0xe0]
mov rcx, rsi
mov r9d, 0x1cc
call fcn.140047ce0
lea r12, [rsp + 0xc8]
mov rcx, r12
mov rdx, rsi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x140057010
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, r12
call fcn.14008c6e0
cmp ebx, 0xffffffff
je 0x140057052
and ebx, 0x10
je 0x140057052
lea rsi, [rsp + 0xe0]
mov rcx, rdi
mov rdx, rsi
call fcn.140044860
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140043dd0
mov rcx, rsi
call fcn.140043da0
mov ebx, r15d
and bl, bpl
mov bpl, 1
lea rdi, [rsp + 0x38]
lea r13, [rsp + 0x50]
lea rsi, [rsp + 0x68]
lea r15, [rsp + 0x330]
lea r12, [rsp + 0xe0]
mov qword [rsp + 0x30], r14
jmp 0x1400570a2
mov rcx, rdi
call fcn.140043da0
test bpl, 1
je 0x14005722d
movzx eax, byte [rsp + 0x7f]
test al, al
jns 0x1400570b0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14005722d
mov rcx, rdi
mov rdx, r14
call fcn.140043d20
mov rcx, r13
mov rdx, rsi
call fcn.140044090
test al, al
je 0x1400570e9
mov rcx, r13
mov rdx, rsi
mov r8, rdi
call fcn.140044b50
test al, al
je 0x140057221
test bl, 1
jne 0x140057120
mov rcx, rsi
mov rdx, rdi
movzx r8d, byte [rsp + 0x2f]
call fcn.140058500
movzx ebp, bpl
test al, al
mov eax, 0
cmove ebp, eax
jmp 0x1400571ca
mov byte [rsp + 0x2e], bl
mov rsi, r13
mov rcx, r12
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
mov r9d, 0x1cc
call fcn.140047ce0
lea rbx, [rsp + 0xc8]
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsp + 0x4f], 0
mov r14, rdi
jns 0x140057168
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13d, eax
mov rcx, rbx
call fcn.14008c6e0
cmp r13d, 0xffffffff
je 0x140057195
and r13d, 0x10
je 0x140057195
mov r13, rsi
movzx ebx, byte [rsp + 0x2e]
mov rdi, r14
jmp 0x1400571c0
cmp byte [rsp + 0x4f], 0
mov rdi, r14
mov rcx, r14
jns 0x1400571a7
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
movzx ebp, bpl
cmove ebp, eax
mov r13, rsi
movzx ebx, byte [rsp + 0x2e]
mov r14, qword [rsp + 0x30]
lea rsi, [rsp + 0x68]
mov rcx, r15
mov rdx, r12
call fcn.14005e100
mov rcx, rsi
mov rdx, r12
call fcn.140043dd0
mov rcx, r12
call fcn.140043da0
movzx eax, byte [rsp + 0x7f]
test al, al
jns 0x1400571f6
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140057090
mov rcx, r15
mov rdx, r12
call fcn.14005e070
mov rcx, r12
call fcn.14005dda0
mov ebx, eax
mov rcx, r12
call fcn.14000e300
jmp 0x140057090
lea rcx, [rsp + 0x38]
call fcn.140043da0
xor ebp, ebp
and bpl, 1
lea rcx, [rsp + 0x50]
call fcn.140043da0
lea rcx, [rsp + 0x68]
call fcn.140043da0
lea rcx, [rsp + 0x330]
call fcn.14005e000
jmp 0x140056e07