Function at 0x140014690
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 [0x1400d1010]
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 [0x1400dd02d], al
je 0x140014729
lea ecx, [rsi + 1]
call fcn.1400539a0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rsi
jmp 0x1400148f5
xor ecx, ecx
call fcn.14005aa4c
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.14005a75c
xor r9d, r9d
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.1400143a0
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.14005ad5c
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.1400171b0
lea r8, [0x1400b1450]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.14005a95c
mov r9d, 1
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.1400143a0
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14001483a
mov qword [rsp + 0x50], rsi
lea r8, [0x1400b1454]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14005a95c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001483a
call fcn.140012ac0
mov rcx, qword [rsp + 0x50]
call fcn.140053e54
lea rdx, [0x1400b13dc]
test rbx, rbx
cmovne rdx, rbx
or rbx, 0xffffffffffffffff
cmp byte [rdx], 0
jne 0x140014856
mov r8, rsi
jmp 0x14001486a
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140014860
lea rcx, [rbp - 0x80]
call fcn.14000d860
cmp byte [rbp + 0x120], 0
jne 0x140014881
mov r8, rsi
jmp 0x14001489a
lea rax, [rbp + 0x120]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014890
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.14000d860
cmp byte [rbp + 0x10], 0
jne 0x1400148b5
mov rbx, rsi
jmp 0x1400148c9
lea rax, [rbp + 0x10]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400148c0
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000d860
cmp byte [0x1400dd038], 0
je 0x1400148f0
lea rcx, [rbp + 0x10]
call fcn.140018ef0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140014907
mov rcx, rax
call fcn.140012320
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 0x14001492f
mov rax, qword [rcx]
jmp 0x140014932
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x80]
call fcn.14000de10
lea rcx, [rdi + 0x30]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x14001495a
mov rax, qword [rcx]
jmp 0x14001495d
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x60]
call fcn.14000de10
lea rcx, [rdi + 0x50]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x140014985
mov rax, qword [rcx]
jmp 0x140014988
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x40]
call fcn.14000de10
nop
lea rcx, [rbp - 0x40]
call fcn.14000c150
lea rcx, [rbp - 0x60]
call fcn.14000c150
lea rcx, [rbp - 0x80]
call fcn.14000c150
mov rax, rdi
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.14004b110
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret