Function at 0x140012ea0
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 [0x1400d9040]
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 [0x1400e53ad], al
je 0x140012f39
lea ecx, [rsi + 1]
call fcn.14005a190
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rsi
jmp 0x140013105
xor ecx, ecx
call fcn.14006123c
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140060f4c
xor r9d, r9d
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.140012bb0
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.14006154c
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.140016090
lea r8, [0x1400b8790]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call fcn.14006114c
mov r9d, 1
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140012bb0
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14001304a
mov qword [rsp + 0x50], rsi
lea r8, [0x1400b8794]
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14006114c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001304a
call fcn.140010c00
mov rcx, qword [rsp + 0x50]
call fcn.14005a644
lea rdx, [0x1400b871c]
test rbx, rbx
cmovne rdx, rbx
or rbx, 0xffffffffffffffff
cmp byte [rdx], 0
jne 0x140013066
mov r8, rsi
jmp 0x14001307a
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140013070
lea rcx, [rbp - 0x80]
call fcn.14000b500
cmp byte [rbp + 0x120], 0
jne 0x140013091
mov r8, rsi
jmp 0x1400130aa
lea rax, [rbp + 0x120]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400130a0
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x60]
call fcn.14000b500
cmp byte [rbp + 0x10], 0
jne 0x1400130c5
mov rbx, rsi
jmp 0x1400130d9
lea rax, [rbp + 0x10]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400130d0
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000b500
cmp byte [0x1400e53b8], 0
je 0x140013100
lea rcx, [rbp + 0x10]
call fcn.140017e20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140013117
mov rcx, rax
call fcn.1400101c0
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 0x14001313f
mov rax, qword [rcx]
jmp 0x140013142
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x80]
call fcn.14000bab0
lea rcx, [rdi + 0x30]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x14001316a
mov rax, qword [rcx]
jmp 0x14001316d
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x60]
call fcn.14000bab0
lea rcx, [rdi + 0x50]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rsi
cmp qword [rcx + 0x18], 0x10
jb 0x140013195
mov rax, qword [rcx]
jmp 0x140013198
mov rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x40]
call fcn.14000bab0
nop
lea rcx, [rbp - 0x40]
call fcn.140009df0
lea rcx, [rbp - 0x60]
call fcn.140009df0
lea rcx, [rbp - 0x80]
call fcn.140009df0
mov rax, rdi
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.140051640
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret