Function at 0x140059310
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x78]
test eax, eax
jne 0x14005934f
call fcn.140047c70
movzx eax, al
test eax, eax
jne 0x14005934f
jmp 0x1400597eb
mov rax, qword [rsp + 0x140]
add rax, 0x90
mov qword [rsp + 0x38], rax
mov edx, 8
lea rcx, [rsp + 0xb8]
call fcn.140001d80
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x38]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0xd0]
call fcn.140001d80
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x38]
call fcn.14001ebe0
jmp 0x1400593b9
lea rcx, [rsp + 0xb8]
call fcn.14001e760
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb8]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x1400594b2
lea rcx, [rsp + 0xb8]
call fcn.14001e780
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.140047ca0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140059407
jmp 0x1400593ac
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x14005942b
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.14005da90
jmp 0x1400597eb
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x48]
inc eax
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x48], eax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x20]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.140003970
mov qword [rsp + 0x50], rax
movzx r8d, byte [rsp + 0x21]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x140]
call fcn.140059810
movzx eax, al
test eax, eax
je 0x14005948b
mov dword [rsp + 0x24], 1
jmp 0x140059493
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x4c]
add eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x4c], eax
jmp 0x1400593ac
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x78]
test eax, eax
je 0x1400594d6
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.14005da90
jmp 0x1400597eb
mov rax, qword [rsp + 0x140]
add rax, 0xa0
mov qword [rsp + 0x40], rax
mov edx, 8
lea rcx, [rsp + 0xc0]
call fcn.140001d80
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x40]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0xd8]
call fcn.140001d80
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
call fcn.14001ebe0
jmp 0x140059540
lea rcx, [rsp + 0xc0]
call fcn.14001e760
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xc0]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x140059654
lea rcx, [rsp + 0xc0]
call fcn.14001e780
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x98]
call fcn.1400481f0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xe8]
call fcn.1400217c0
nop
lea rcx, [rsp + 0x98]
call fcn.140003bf0
lea rcx, [rsp + 0xe8]
call fcn.140003970
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400595df
lea rcx, [rsp + 0xe8]
call fcn.140003bf0
jmp 0x140059533
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x48]
inc eax
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x48], eax
xor r8d, r8d
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x140]
call fcn.14005c6e0
movzx eax, al
test eax, eax
je 0x140059620
mov dword [rsp + 0x28], 1
jmp 0x140059628
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x4c]
add eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x4c], eax
lea rcx, [rsp + 0xe8]
call fcn.140003bf0
jmp 0x140059533
mov rax, qword [rsp + 0x140]
add rax, 0xb0
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0xc8]
call fcn.140001d80
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x48]
call fcn.14001ec10
mov edx, 8
lea rcx, [rsp + 0xe0]
call fcn.140001d80
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
call fcn.14001ebe0
jmp 0x1400596be
lea rcx, [rsp + 0xc8]
call fcn.14001e760
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
call fcn.140001ea0
movzx eax, al
test eax, eax
je 0x1400597de
lea rcx, [rsp + 0xc8]
call fcn.14001e780
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
lea rdx, [0x1400ba760]
lea rcx, [rsp + 0x108]
call fcn.140006670
nop
lea rcx, [rsp + 0x108]
call fcn.140003970
mov r8b, 1
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140038040
movzx eax, al
test eax, eax
jne 0x140059742
lea rcx, [rsp + 0x108]
call fcn.140003bf0
jmp 0x1400596b1
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x48]
inc eax
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x48], eax
lea rcx, [rsp + 0x108]
call fcn.140003970
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140002040
nop
lea r8, [rsp + 0x78]
mov rdx, 0xffffffff80000002
mov rcx, qword [rsp + 0x140]
call fcn.14005c930
movzx eax, al
test eax, eax
je 0x14005979f
mov dword [rsp + 0x2c], 1
jmp 0x1400597a7
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x4c]
add eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x140]
mov dword [rcx + 0x4c], eax
lea rcx, [rsp + 0x78]
call fcn.140003bf0
nop
lea rcx, [rsp + 0x108]
call fcn.140003bf0
jmp 0x1400596b1
mov rcx, qword [rsp + 0x140]
call fcn.14005dc70
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140069a00
add rsp, 0x138
ret