Function at 0x140105f60
Capabilities:
Check if file exists

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0x120], 0xfffffffffffffffe
cmp qword [rsp + 0x170], 0
je 0x140105fae
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x40], 0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call fcn.1400ffa60
test eax, eax
jne 0x140105fd7
xor eax, eax
jmp 0x14010698c
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140106064
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x494], 0
je 0x140106034
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x494]
add rcx, 0xc
mov r8d, 1
mov rdx, qword [rsp + 0x168]
call fcn.140105400
test eax, eax
jne 0x140106032
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103280
xor eax, eax
jmp 0x14010698c
jmp 0x140106064
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 4]
mov rcx, qword [rsp + 0x168]
call fcn.1401009e0
test eax, eax
jne 0x140106064
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103280
xor eax, eax
jmp 0x14010698c
mov qword [rsp + 0x50], 0
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x168]
call fcn.1400ffa60
test eax, eax
jne 0x14010609c
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103280
xor eax, eax
jmp 0x14010698c
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4e0]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x68], 0x100000
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4ec]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x80], 0
mov ecx, dword [rsp + 0x78]
call fcn.1400f89b0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x170], 0
je 0x140106117
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x78]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x14025a2a0]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4f4]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
divsd xmm0, qword [0x14025c370]
divsd xmm0, qword [0x14025c368]
call fcn.1400ae2f8
mulsd xmm0, qword [0x14025c368]
xor ecx, ecx
comisd xmm0, xmmword [0x14025a298]
jbe 0x140106190
subsd xmm0, qword [0x14025a298]
comisd xmm0, xmmword [0x14025a298]
jae 0x140106190
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rsp + 0x70], rax
mov ecx, dword [rsp + 0x70]
call fcn.1400f89b0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jae 0x1401068ff
mov ecx, dword [rsp + 0x78]
xor edx, edx
mov rax, qword [rsp + 0x60]
div rcx
mov dword [rsp + 0x94], eax
xor edx, edx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4bc]
mov ecx, eax
mov eax, dword [rsp + 0x94]
add eax, ecx
mov dword [rsp + 0x8c], eax
mov ecx, dword [rsp + 0x78]
xor edx, edx
mov rax, qword [rsp + 0x60]
div rcx
mov dword [rsp + 0x88], edx
mov ecx, dword [rsp + 0x8c]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4c0]
mov rax, qword [rax + rcx*8]
and rax, 7
mov dword [rsp + 0x90], eax
cmp qword [rsp + 0x170], 0
je 0x1401062d8
cmp qword [rsp + 0x38], 0
je 0x140106298
mov ecx, dword [rsp + 0x178]
mov eax, dword [rsp + 0x180]
sub eax, ecx
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x180]
movsxd r8, eax
mov rax, qword [rsp + 0x60]
imul rax, rax, 0x64
xor edx, edx
div qword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x180]
xor edx, edx
div rcx
add r8, rax
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1401062d8
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140106298
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
je 0x14010632d
cmp dword [rsp + 0x128], 0
jbe 0x1401068fa
cmp dword [rsp + 0x128], 3
jbe 0x1401063d1
cmp dword [rsp + 0x128], 5
jbe 0x1401068fa
cmp dword [rsp + 0x128], 7
jbe 0x1401063d1
jmp 0x1401068fa
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
sub rdx, rax
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x78]
sub eax, ecx
mov eax, eax
cmp rdx, rax
jae 0x140106365
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov qword [rsp + 0x130], rax
jmp 0x14010637c
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x78]
sub eax, ecx
mov eax, eax
mov qword [rsp + 0x130], rax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0xc8], eax
mov ecx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0x80]
add rax, rcx
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1401068fa
xor edx, edx
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xd4], eax
xor edx, edx
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xcc], edx
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
sub rdx, rax
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x78]
sub eax, ecx
mov eax, eax
cmp rdx, rax
jae 0x14010643f
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov qword [rsp + 0x138], rax
jmp 0x140106456
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x78]
sub eax, ecx
mov eax, eax
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0x90], 7
jne 0x1401067b3
xor edx, edx
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xe0], eax
xor edx, edx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4bc]
mov r8d, edx
xor edx, edx
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4f4]
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov eax, r8d
imul eax, ecx
mov dword [rsp + 0xdc], eax
lea rcx, [rsp + 0xf0]
call fcn.14001db60
nop
xor edx, edx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4bc]
imul eax, dword [rsp + 0x68]
add eax, dword [rsp + 0xdc]
mov r8d, eax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x153c]
call fcn.14010cf20
lea rcx, [rsp + 0xf0]
call fcn.14001dbb0
test rax, rax
jbe 0x1401065f7
xor edx, edx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4bc]
mov r8d, eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x4bc]
add ecx, 1
mov eax, r8d
imul eax, ecx
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 0x4bc]
mov eax, eax
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x4c0]
mov rdx, qword [rdx + rax*8]
and rdx, 0xfffffffffff00000
mov eax, dword [rsp + 0xdc]
add rdx, rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9fe0
xor edx, edx
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x4bc]
imul eax, dword [rsp + 0x68]
add eax, dword [rsp + 0xdc]
mov r8d, eax
mov r9d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x153c]
call fcn.14010c100
xor edx, edx
mov eax, dword [rsp + 0xd4]
mov ecx, 8
div ecx
mov ecx, 7
sub ecx, edx
mov eax, 1
shl eax, cl
mov byte [rsp + 0xd8], al
xor edx, edx
mov eax, dword [rsp + 0xd4]
mov ecx, 8
div ecx
mov ecx, eax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0xd8]
and eax, ecx
test eax, eax
jne 0x140106652
mov dword [rsp + 0x140], 1
jmp 0x14010665d
mov dword [rsp + 0x140], 0
movzx eax, byte [rsp + 0x140]
mov byte [rsp + 0xe8], al
mov dword [rsp + 0xe4], 1
mov eax, dword [rsp + 0xe0]
cmp dword [rsp + 0xe4], eax
jae 0x14010672c
mov ecx, dword [rsp + 0xe4]
mov eax, dword [rsp + 0xd4]
add eax, ecx
xor edx, edx
mov ecx, 8
div ecx
mov ecx, 7
sub ecx, edx
mov eax, 1
shl eax, cl
mov byte [rsp + 0xd8], al
mov ecx, dword [rsp + 0xe4]
mov eax, dword [rsp + 0xd4]
add eax, ecx
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0xd8]
and eax, ecx
test eax, eax
jne 0x1401066f8
mov dword [rsp + 0x144], 1
jmp 0x140106703
mov dword [rsp + 0x144], 0
movzx eax, byte [rsp + 0xe8]
cmp dword [rsp + 0x144], eax
je 0x140106716
jmp 0x14010672c
mov eax, dword [rsp + 0xe4]
add eax, 1
mov dword [rsp + 0xe4], eax
jmp 0x140106677
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0xe4]
imul eax, dword [rcx + 0x4f4]
mov dword [rsp + 0xd0], eax
movzx eax, byte [rsp + 0xe8]
test eax, eax
je 0x1401067a6
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x80]
add rax, rcx
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xf0]
call fcn.14001dcf0
jmp 0x1401068fa
lea rcx, [rsp + 0xf0]
call fcn.14001dcf0
cmp qword [rsp + 0x80], 0
je 0x1401067ca
mov qword [rsp + 0x80], 0
cmp dword [rsp + 0x90], 1
je 0x1401067e8
cmp dword [rsp + 0x90], 2
je 0x1401067e8
cmp dword [rsp + 0x90], 3
jne 0x14010684f
mov r8d, dword [rsp + 0xd0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400a8080
mov r9d, dword [rsp + 0xd0]
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1400fcda0
mov r11d, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x30]
add rax, r11
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1401068fa
mov r9d, dword [rsp + 0xd0]
mov eax, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x4c0]
mov rdx, qword [rdx + rax*8]
and rdx, 0xfffffffffff00000
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0xd4]
imul eax, dword [rcx + 0x4f4]
mov eax, eax
add rdx, rax
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9fe0
mov r9d, dword [rsp + 0xd0]
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1400fcda0
mov r11d, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x30]
add rax, r11
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1401061ab
cmp qword [rsp + 0x80], 0
je 0x140106916
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x48]
call fcn.1400f8970
mov rcx, qword [rsp + 0x58]
call fcn.1400f8970
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103280
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103280
cmp qword [rsp + 0x170], 0
je 0x140106987
mov ecx, dword [rsp + 0x178]
mov eax, dword [rsp + 0x180]
sub eax, ecx
add eax, 1
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x180]
movsxd r8, eax
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
add rsp, 0x158
ret