Function at 0x14005b1f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x270]
add rax, 0x18
mov rcx, rax
call fcn.14000cf90
movzx eax, al
test eax, eax
jne 0x14005b363
mov rax, qword [rsp + 0x270]
add rax, 0x18
mov rcx, rax
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005b363
mov rax, qword [rsp + 0x270]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x14005b276
mov dl, 1
mov rcx, qword [rsp + 0x270]
call fcn.14005da90
jmp 0x14005b8f5
lea rax, [rsp + 0x160]
mov qword [rsp + 0x98], rax
lea rdx, [0x1400b05b4]
mov rcx, qword [rsp + 0x98]
call fcn.140002040
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x270]
add rax, 0x18
mov rcx, rax
call fcn.140003970
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140002040
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x270]
add rax, 0x4c
mov rcx, qword [rsp + 0x270]
add rcx, 0x48
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8b, 1
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x270]
call fcn.14005b910
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x270]
add rax, 0x1f0
mov qword [rsp + 0x50], rax
mov edx, 8
lea rcx, [rsp + 0x220]
call fcn.140001d80
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0x50]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0x238]
call fcn.140001d80
lea rdx, [rsp + 0x238]
mov rcx, qword [rsp + 0x50]
call fcn.14001ebe0
jmp 0x14005b3d2
lea rcx, [rsp + 0x220]
call fcn.14001e760
lea rdx, [rsp + 0x238]
lea rcx, [rsp + 0x220]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x14005b5c8
lea rcx, [rsp + 0x220]
call fcn.14001e780
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14000cf90
movzx eax, al
test eax, eax
je 0x14005b41c
mov byte [rsp + 0x30], 1
jmp 0x14005b3c5
mov rcx, qword [rsp + 0x40]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14005b43c
jmp 0x14005b3c5
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14005b466
mov rcx, qword [rsp + 0x40]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x14005b466
mov dword [rsp + 0x38], 0
jmp 0x14005b46e
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14005b482
jmp 0x14005b3c5
mov rax, qword [rsp + 0x270]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x14005b4ab
mov dl, 1
mov rcx, qword [rsp + 0x270]
call fcn.14005da90
jmp 0x14005b8f5
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xd8], rax
lea rdx, [0x1400b07e4]
mov rcx, qword [rsp + 0xd8]
call fcn.140002040
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x270]
add rax, 0x4c
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x270]
add rax, 0x48
mov qword [rsp + 0x118], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14005b52f
mov byte [rsp + 0x31], 1
jmp 0x14005b534
mov byte [rsp + 0x31], 0
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0x40]
call fcn.140003970
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
call fcn.140002040
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x118]
movzx r8d, byte [rsp + 0x31]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x270]
call fcn.14005b910
jmp 0x14005b3c5
mov rax, qword [rsp + 0x270]
add rax, 0x200
mov qword [rsp + 0x60], rax
mov edx, 8
lea rcx, [rsp + 0x228]
call fcn.140001d80
lea rdx, [rsp + 0x228]
mov rcx, qword [rsp + 0x60]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0x240]
call fcn.140001d80
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x60]
call fcn.14001ebe0
jmp 0x14005b632
lea rcx, [rsp + 0x228]
call fcn.14001e760
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x228]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x14005b73a
lea rcx, [rsp + 0x228]
call fcn.14001e780
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000cf90
movzx eax, al
test eax, eax
je 0x14005b677
jmp 0x14005b625
mov rcx, qword [rsp + 0x48]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005b735
mov rax, qword [rsp + 0x270]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x14005b6b8
mov dl, 1
mov rcx, qword [rsp + 0x270]
call fcn.14005da90
jmp 0x14005b8f5
mov rax, qword [rsp + 0x270]
mov eax, dword [rax + 0x48]
inc eax
mov rcx, qword [rsp + 0x270]
mov dword [rcx + 0x48], eax
mov rcx, qword [rsp + 0x48]
call fcn.140003970
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140002040
nop
xor r8d, r8d
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
call fcn.14005c6e0
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x140]
call fcn.140003bf0
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x14005b735
mov rax, qword [rsp + 0x270]
mov eax, dword [rax + 0x4c]
inc eax
mov rcx, qword [rsp + 0x270]
mov dword [rcx + 0x4c], eax
jmp 0x14005b625
mov rax, qword [rsp + 0x270]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x14005b75e
xor edx, edx
mov rcx, qword [rsp + 0x270]
call fcn.14005da90
jmp 0x14005b8f5
mov rax, qword [rsp + 0x270]
add rax, 0x210
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x230]
call fcn.140001d80
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x58]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0x248]
call fcn.140001d80
lea rdx, [rsp + 0x248]
mov rcx, qword [rsp + 0x58]
call fcn.14001ebe0
jmp 0x14005b7c8
lea rcx, [rsp + 0x230]
call fcn.14001e760
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x230]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x14005b8e8
lea rcx, [rsp + 0x230]
call fcn.14001e780
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x128]
call fcn.140003970
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.140002040
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x200]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x270]
add rax, 0x1d0
mov rcx, rax
call fcn.140003970
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140002040
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x270]
add rax, 0x4c
mov rcx, qword [rsp + 0x270]
add rcx, 0x48
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8b, 1
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x270]
call fcn.14005b910
jmp 0x14005b7bb
mov rcx, qword [rsp + 0x270]
call fcn.14005dc70
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x268
ret