Function at 0x1401589d0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rdi, rcx
mov eax, dword [rdx + 0x10]
cmp eax, 0x41b
jne 0x140158a3a
xor r9d, r9d
mov edx, 0x111
mov r8d, 0xac35
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140158f89
cmp eax, 0xfffffdee
jne 0x140158a9a
xor esi, esi
mov qword [rdx + 0xc0], rsi
mov rax, qword [rdx + 8]
cmp rax, 1
jne 0x140158a5d
lea r8, [rcx + 0x1b8]
jmp 0x140158a7d
cmp rax, 2
jne 0x140158a6c
lea r8, [rcx + 0x198]
jmp 0x140158a7d
cmp rax, 3
jne 0x140158f89
lea r8, [rcx + 0x178]
cmp qword [r8 + 0x18], 8
jb 0x140158a87
mov r8, qword [r8]
lea rcx, [rdx + 0x20]
mov edx, 0x50
call fcn.1401a66e0
jmp 0x140158f89
mov rcx, qword [rcx + 0xa8]
cmp qword [rdx], rcx
jne 0x140158f89
mov dword [rsp + 0x30], 5
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x50], 0x104
cmp eax, 0xfffffe62
ja 0x140158ed2
je 0x140158d98
cmp eax, 0xfffffe34
je 0x140158bcc
cmp eax, 0xfffffe38
je 0x140158bb8
cmp eax, 0xfffffe39
jne 0x140158f89
mov rdx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x22
mov rcx, rdi
call fcn.140157c00
cmp eax, 2
jne 0x140158b5d
mov eax, dword [rbx + 0x18]
cmp eax, 1
jne 0x140158b39
lea rcx, [rdi + 0x90]
mov r9d, 3
mov r8d, r9d
mov rdx, qword [rbx + 0x60]
call fcn.140126c70
jmp 0x140158f89
cmp eax, 2
jne 0x140158f89
lea rcx, [rdi + 0x90]
mov r9d, eax
mov r8d, eax
mov rdx, qword [rbx + 0x60]
call fcn.140126c70
jmp 0x140158f89
mov rdx, qword [rbx + 0x60]
mov rcx, rdi
call fcn.140157c00
test eax, eax
jne 0x140158f89
mov eax, dword [rbx + 0x18]
cmp eax, 1
jne 0x140158b94
lea rcx, [rdi + 0x90]
mov r9d, eax
mov r8d, eax
mov rdx, qword [rbx + 0x60]
call fcn.140126c70
jmp 0x140158f89
cmp eax, 2
jne 0x140158f89
lea rcx, [rdi + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x60]
call fcn.140126c70
jmp 0x140158f89
lea rcx, [rdi + 0x90]
mov rdx, rbx
call fcn.140125620
jmp 0x140158f89
cmp qword [rbx + 0x30], 0
je 0x140158f89
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 6
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x113e
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rbp - 0x6c], 4
je 0x140158c15
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x140158c15
cmp qword [rax + 0x10], 0
jne 0x140158f89
cmp qword [rbx + 0x48], 0
je 0x140158d7a
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x113e
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r13, eax
mov rsi, qword [rbx + 0x48]
mov r14, qword [rsp + 0x48]
mov r11, 0xffffffffffffffff
mov r9, r11
nop dword [rax]
inc r9
cmp word [r14 + r9*2], 0
jne 0x140158c80
mov r15, rsi
cmp qword [rsi + 0x18], 8
jb 0x140158c98
mov r15, qword [rsi]
mov rcx, qword [rsi + 0x10]
test r9, r9
jne 0x140158cad
mov r10, r11
cmp rcx, r11
cmovb r10, rcx
jmp 0x140158d0a
cmp r9, rcx
ja 0x140158d31
sub rcx, r9
mov rax, r11
cmp rcx, rax
cmovb rax, rcx
lea r10, [r15 + rax*2]
movzx r12d, word [r14]
mov r8, r10
sub r8, r14
nop dword [rax]
cmp word [r10], r12w
jne 0x140158cf5
mov rdx, r9
mov rcx, r14
test r9, r9
je 0x140158d04
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140158cf5
add rcx, 2
sub rdx, 1
jmp 0x140158cdf
cmp r10, r15
je 0x140158d31
sub r10, 2
sub r8, 2
jmp 0x140158cd0
sub r10, r15
sar r10, 1
cmp r10, r11
je 0x140158d31
mov r9, qword [rbx + 0x30]
inc r11
cmp word [r9 + r11*2], 0
jne 0x140158d13
mov qword [rsp + 0x20], r11
mov r8, r13
mov rdx, r10
mov rcx, rsi
call fcn.14002aa90
mov dword [rsp + 0x30], 0x22
cmp qword [rsi + 0x18], 8
jb 0x140158d43
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140158d60
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x113f
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbx + 0x18]
xor r8d, r8d
mov edx, 0x113f
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140158f89
mov ecx, dword [0x1402be238]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
xor esi, esi
mov eax, dword [r8 + rdx]
cmp dword [0x1402bdb18], eax
jg 0x140158fb9
mov rdx, qword [rbx + 0x28]
mov rcx, rdi
call fcn.140157c00
test eax, eax
jne 0x140158e05
mov r8, qword [rbx + 0x30]
lea rdi, [0x1402bdaf8]
cmp rdi, r8
je 0x140158eb0
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140158df4
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rdi
call fcn.140006d60
jmp 0x140158eb0
cmp eax, 3
jne 0x140158f89
mov r8, qword [rbx + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140157890
mov r14, rax
lea rdi, [0x1402bdaf8]
cmp rdi, rax
je 0x140158e5d
mov rcx, rdi
call fcn.1400068c0
movups xmm0, xmmword [r14]
movups xmmword [0x1402bdaf8], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [0x1402bdb08], xmm1
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140158e9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140158e99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140158fb3
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
cmp qword [0x1402bdb10], 8
cmovae rdi, qword [0x1402bdaf8]
mov qword [rbx + 0x18], rdi
mov eax, dword [0x1402bdb08]
mov dword [rbx + 0x20], eax
jmp 0x140158f89
cmp eax, 0xfffffe64
je 0x140158f09
cmp eax, 0xfffffffc
je 0x140158ef4
cmp eax, 0xfffffffd
jne 0x140158f89
mov rcx, rdi
call fcn.140159010
jmp 0x140158f89
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
jmp 0x140158f89
movzx eax, word [rbx + 0x18]
cmp ax, 0xd
jne 0x140158f55
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call fcn.140157c00
cmp eax, 3
je 0x140158ee7
mov r9, rbx
mov edx, 0x1102
mov r8d, 3
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140158f89
cmp ax, 0x2e
jne 0x140158f89
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, rdi
call fcn.140157c00
test eax, eax
jne 0x140158f89
mov edx, 0xdb7
mov rcx, rdi
call fcn.140159180
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14017f700
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a10ac
int3
lea rcx, [0x1402bdb18]
call fcn.14017fc1c
cmp dword [0x1402bdb18], 0xffffffff
jne 0x140158dc3
mov qword [0x1402bdb08], rsi
mov qword [0x1402bdb10], 7
mov word [0x1402bdaf8], si
lea rcx, [0x1401dfc10]
call fcn.14017f9ec
nop
lea rcx, [0x1402bdb18]
call fcn.14017fbbc
jmp 0x140158dc3