Function at 0x140141340
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x310], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
cmp eax, 0x41b
jne 0x1401413a0
xor r9d, r9d
mov edx, 0x111
mov r8d, 0xac35
mov rcx, qword [rcx + 0x10]
jmp 0x140141798
mov rcx, qword [rcx + 0xb0]
cmp qword [rdx], rcx
jne 0x14014179e
mov dword [rsp + 0x30], 5
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x50], 0x104
cmp eax, 0xfffffe62
ja 0x140141741
je 0x140141628
cmp eax, 0xfffffe34
je 0x1401414d2
cmp eax, 0xfffffe38
je 0x1401414be
cmp eax, 0xfffffe39
jne 0x14014179e
mov rdx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x22
mov rcx, rsi
call fcn.1401407e0
cmp eax, 2
jne 0x140141463
mov eax, dword [rbx + 0x18]
cmp eax, 1
jne 0x14014143f
lea rcx, [rsi + 0x98]
mov r9d, 3
mov r8d, r9d
mov rdx, qword [rbx + 0x60]
call fcn.140122e90
jmp 0x14014179e
cmp eax, 2
jne 0x14014179e
lea rcx, [rsi + 0x98]
mov r9d, eax
mov r8d, eax
mov rdx, qword [rbx + 0x60]
call fcn.140122e90
jmp 0x14014179e
mov rdx, qword [rbx + 0x60]
mov rcx, rsi
call fcn.1401407e0
test eax, eax
jne 0x14014179e
mov eax, dword [rbx + 0x18]
cmp eax, 1
jne 0x14014149a
lea rcx, [rsi + 0x98]
mov r9d, eax
mov r8d, eax
mov rdx, qword [rbx + 0x60]
call fcn.140122e90
jmp 0x14014179e
cmp eax, 2
jne 0x14014179e
lea rcx, [rsi + 0x98]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x60]
call fcn.140122e90
jmp 0x14014179e
lea rcx, [rsi + 0x98]
mov rdx, rbx
call fcn.140121740
jmp 0x14014179e
cmp qword [rbx + 0x30], 0
je 0x14014179e
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 0x14014151b
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14014151b
cmp qword [rax + 0x10], 0
jne 0x14014179e
cmp qword [rbx + 0x48], 0
je 0x140141617
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rsi + 0xb0]
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 [rsi + 0xb0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
mov r14, qword [rbx + 0x48]
xor edi, edi
mov rdx, qword [rsp + 0x48]
cmp word [rdx], di
jne 0x140141581
mov r9d, edi
jmp 0x14014158f
or r9, 0xffffffffffffffff
inc r9
cmp word [rdx + r9*2], di
jne 0x140141585
or r8, 0xffffffffffffffff
mov rcx, r14
call fcn.140013070
cmp rax, 0xffffffffffffffff
je 0x1401415ce
mov r9, qword [rbx + 0x30]
cmp word [r9], di
je 0x1401415bb
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp word [r9 + rdi*2], 0
jne 0x1401415b0
mov qword [rsp + 0x20], rdi
mov r8, r15
mov rdx, rax
mov rcx, r14
call fcn.1400440e0
mov dword [rsp + 0x30], 0x22
cmp qword [r14 + 0x18], 8
jb 0x1401415e0
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401415fd
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x113f
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [rbx + 0x18]
xor r8d, r8d
mov edx, 0x113f
jmp 0x140141791
mov ecx, dword [0x1402a5b68]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rdx, qword [rax + rcx*8]
xor edi, edi
mov eax, dword [r8 + rdx]
cmp dword [0x1402a5458], eax
jle 0x140141696
lea rcx, [0x1402a5458]
call fcn.1401683f4
cmp dword [0x1402a5458], 0xffffffff
jne 0x140141696
mov qword [0x1402a5450], 7
mov qword [0x1402a5448], rdi
mov word [0x1402a5438], di
lea rcx, [0x1401ce730]
call fcn.140168204
nop
lea rcx, [0x1402a5458]
call fcn.140168394
mov rdx, qword [rbx + 0x28]
mov rcx, rsi
call fcn.1401407e0
test eax, eax
jne 0x1401416c7
mov rdx, qword [rbx + 0x30]
lea rsi, [0x1402a5438]
cmp rsi, rdx
je 0x140141722
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rsi
call fcn.140006dd0
jmp 0x140141722
cmp eax, 3
jne 0x14014179e
mov r8, qword [rbx + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1401402e0
nop
mov rdx, rax
lea rsi, [0x1402a5438]
mov rcx, rsi
call fcn.140003d30
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x140141711
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
cmp qword [0x1402a5450], 8
cmovae rsi, qword [0x1402a5438]
mov qword [rbx + 0x18], rsi
mov eax, dword [0x1402a5448]
mov dword [rbx + 0x20], eax
jmp 0x14014179e
cmp eax, 0xfffffe64
je 0x140141757
cmp eax, 0xfffffffd
jne 0x14014179e
mov rcx, rsi
call fcn.1401417d0
jmp 0x14014179e
cmp word [rbx + 0x18], 0xd
jne 0x14014179e
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, rsi
call fcn.1401407e0
cmp eax, 3
je 0x14014174d
mov r9, rbx
mov edx, 0x1102
mov r8d, 3
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret