Function at 0x1401570f0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov r13, rcx
mov r14, qword [rbp + 0x230]
mov qword [rbp - 0x58], r14
test r9, r9
jne 0x140157150
call fcn.140159940
mov rsi, rax
test rax, rax
je 0x14015746d
mov rax, qword [r14 + 8]
sub rax, qword [r14]
and rax, 0xffffffffffffffe0
cmp rax, 0x20
jne 0x140157366
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140157172
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015746d
mov r8, qword [r14]
mov rdx, rsi
mov rcx, r13
call fcn.1401583f0
test rax, rax
jne 0x14015746d
cmp qword [rdi + 0x18], 8
jb 0x1401571a1
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, 0x48
test eax, eax
je 0x140157273
call fcn.140181288
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14015722f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rdx, qword [r14]
lea rcx, [rsp + 0x68]
call fcn.140002f50
mov rbx, rax
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
xor r8d, r8d
lea rdx, [0x1401e6278]
lea rcx, [rsp + 0x40]
call fcn.140006d70
nop
mov r9b, 1
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140156ab0
mov rdi, rax
jmp 0x140157231
xor edi, edi
mov qword [rsp + 0x30], rdi
lea rcx, [r13 + 0x160]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140157251
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x14015725b
lea r8, [rsp + 0x30]
call fcn.14001c1e0
mov rdx, qword [r14]
cmp qword [rdx + 0x18], 8
jb 0x140157268
mov rdx, qword [rdx]
mov r9d, 3
jmp 0x14015732a
call fcn.140181288
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401572eb
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdx, qword [r14]
lea rcx, [rsp + 0x68]
call fcn.140002f50
mov rbx, rax
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
xor r8d, r8d
lea rdx, [0x1401e6278]
lea rcx, [rsp + 0x40]
call fcn.140006d70
nop
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140156ab0
mov rdi, rax
jmp 0x1401572ed
xor edi, edi
mov qword [rsp + 0x30], rdi
lea rcx, [r13 + 0x160]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14015730d
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x140157317
lea r8, [rsp + 0x30]
call fcn.14001c1e0
mov rdx, qword [r14]
cmp qword [rdx + 0x18], 8
jb 0x140157324
mov rdx, qword [rdx]
mov r9d, 4
lea rbx, [r13 + 0x90]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rcx, rbx
call fcn.140127000
xor r9d, r9d
lea r8, [0x140157eb0]
mov rdx, rsi
mov rcx, rbx
call fcn.140127200
nop
mov rcx, r14
call fcn.14000b990
mov al, 1
jmp 0x140157477
mov r9, rsi
mov r8d, 4
mov edx, 0x110a
mov rcx, qword [r13 + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
mov rbx, rax
je 0x14015746d
mov dword [rsp + 0x68], 1
lea rax, [rbp - 0x50]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0x104
mov qword [rsp + 0x70], rbx
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x113e
mov rcx, qword [r13 + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [r14]
mov rax, qword [rbp - 0x80]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1401573d1
mov r9, r8
cmp qword [r8 + 0x18], 8
jb 0x1401573e8
mov r9, qword [r8]
mov rdx, qword [r8 + 0x10]
cmp rdx, rcx
jne 0x14015745f
test rdx, rdx
je 0x140157414
sub r9, rax
nop dword [rax]
movzx ecx, word [rax]
cmp word [rax + r9], cx
jne 0x14015745f
add rax, 2
sub rdx, 1
jne 0x140157400
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.14014f2d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14004d500
nop
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r15
mov rcx, r13
call fcn.1401570f0
movzx ebx, al
mov rcx, r14
call fcn.14000b990
movzx eax, bl
jmp 0x140157477
mov r9, rbx
mov r8d, 1
jmp 0x14015736f
mov rcx, r14
call fcn.14000b990
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401813e0
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret