Function at 0x140155410
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 [0x1402a6808]
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 0x140155470
call fcn.140157c60
mov rsi, rax
test rax, rax
je 0x14015578d
mov rax, qword [r14 + 8]
sub rax, qword [r14]
and rax, 0xffffffffffffffe0
cmp rax, 0x20
jne 0x140155686
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140155492
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14015578d
mov r8, qword [r14]
mov rdx, rsi
mov rcx, r13
call fcn.140156710
test rax, rax
jne 0x14015578d
cmp qword [rdi + 0x18], 8
jb 0x1401554c1
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, 0x48
test eax, eax
je 0x140155593
call fcn.14017f5a8
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14015554f
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.140002f40
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, [0x1401e4278]
lea rcx, [rsp + 0x40]
call fcn.140006d60
nop
mov r9b, 1
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140154dd0
mov rdi, rax
jmp 0x140155551
xor edi, edi
mov qword [rsp + 0x30], rdi
lea rcx, [r13 + 0x160]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140155571
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x14015557b
lea r8, [rsp + 0x30]
call fcn.14001c1a0
mov rdx, qword [r14]
cmp qword [rdx + 0x18], 8
jb 0x140155588
mov rdx, qword [rdx]
mov r9d, 3
jmp 0x14015564a
call fcn.14017f5a8
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14015560b
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.140002f40
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, [0x1401e4278]
lea rcx, [rsp + 0x40]
call fcn.140006d60
nop
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140154dd0
mov rdi, rax
jmp 0x14015560d
xor edi, edi
mov qword [rsp + 0x30], rdi
lea rcx, [r13 + 0x160]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14015562d
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x140155637
lea r8, [rsp + 0x30]
call fcn.14001c1a0
mov rdx, qword [r14]
cmp qword [rdx + 0x18], 8
jb 0x140155644
mov rdx, qword [rdx]
mov r9d, 4
lea rbx, [r13 + 0x90]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rcx, rbx
call fcn.140125590
xor r9d, r9d
lea r8, [0x1401561d0]
mov rdx, rsi
mov rcx, rbx
call fcn.140125790
nop
mov rcx, r14
call fcn.14000b980
mov al, 1
jmp 0x140155797
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 0x14015578d
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 0x1401556f1
mov r9, r8
cmp qword [r8 + 0x18], 8
jb 0x140155708
mov r9, qword [r8]
mov rdx, qword [r8 + 0x10]
cmp rdx, rcx
jne 0x14015577f
test rdx, rdx
je 0x140155734
sub r9, rax
nop dword [rax]
movzx ecx, word [rax]
cmp word [rax + r9], cx
jne 0x14015577f
add rax, 2
sub rdx, 1
jne 0x140155720
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.14014d5f0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400663c0
nop
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r15
mov rcx, r13
call fcn.140155410
movzx ebx, al
mov rcx, r14
call fcn.14000b980
movzx eax, bl
jmp 0x140155797
mov r9, rbx
mov r8d, 1
jmp 0x14015568f
mov rcx, r14
call fcn.14000b980
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14017f700
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret