Function at 0x140013480
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x1400ed040]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x5c], esi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x80], al
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x60], al
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], al
cmp byte [0x1400fa941], al
je 0x140013519
lea ecx, [rsi + 1]
call fcn.1400682a0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rsi
jmp 0x140013705
xor ecx, ecx
call fcn.14006f354
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.14006f064
xor r9d, r9d
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.140013190
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0x320]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + 0x420]
mov r8d, 3
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x10]
call fcn.14006f664
lea rax, [rbp + 0x220]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x320]
lea r8, str._s_s
mov edx, 0x100
lea rcx, [rbp + 0x120]
call fcn.140016100
lea r8, [0x1400c8c40]
lea rcx, [rsp + 0x70]
cmp dword [0x1400fa920], 2
lea rdx, [rbp + 0x10]
jne 0x1400135df
lea rdx, [0x1400c8c44]
call fcn.14006f264
mov r9d, 1
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140013190
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14001364a
mov qword [rsp + 0x50], rsi
lea r8, [0x1400c8c48]
lea rcx, [rsp + 0x50]
cmp dword [0x1400fa920], 2
lea rdx, [rbp + 0x10]
jne 0x14001362c
lea rdx, [0x1400c8c44]
call fcn.14006f264
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001364a
call fcn.1400114a0
mov rcx, qword [rsp + 0x50]
call fcn.140068754
lea rdx, [0x1400c8bb4]
test rbx, rbx
cmovne rdx, rbx
or rbx, 0xffffffffffffffff
cmp byte [rdx], 0
jne 0x140013666
mov r8, rsi
jmp 0x14001367a
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140013670
lea rcx, [rbp - 0x80]
call fcn.14000b970
cmp byte [rbp + 0x120], 0
jne 0x140013691
mov r8, rsi
jmp 0x1400136aa
lea rax, [rbp + 0x120]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400136a0
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.14000b970
cmp byte [rbp + 0x10], 0
jne 0x1400136c5
mov rbx, rsi
jmp 0x1400136d9
lea rax, [rbp + 0x10]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400136d0
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000b970
cmp byte [0x1400fa94c], 0
je 0x140013700
lea rcx, [rbp + 0x10]
call fcn.140017e80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140013717
mov rcx, rax
call fcn.140010cb0
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov rax, qword [rsp + 0x78]
mov qword [rdi + 8], rax
lea rcx, [rdi + 0x10]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x14001373f
mov rax, qword [rcx]
jmp 0x140013742
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x80]
call fcn.14000bf20
lea rcx, [rdi + 0x30]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x14001376a
mov rax, qword [rcx]
jmp 0x14001376d
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x60]
call fcn.14000bf20
lea rcx, [rdi + 0x50]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x140013795
mov rax, qword [rcx]
jmp 0x140013798
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x40]
call fcn.14000bf20
nop
lea rcx, [rbp - 0x40]
call fcn.14000a2c0
lea rcx, [rbp - 0x60]
call fcn.14000a2c0
lea rcx, [rbp - 0x80]
call fcn.14000a2c0
mov rax, rdi
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.14005df90
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret