Function at 0x140107ff0
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, 0x168
mov qword [rsp + 0x130], 0xfffffffffffffffe
cmp qword [rsp + 0x180], 0
je 0x14010803e
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x170]
call fcn.140105040
test eax, eax
jne 0x14010807d
xor eax, eax
jmp 0x140108ad6
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14010811a
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x494], 0
je 0x1401080e4
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x494]
add rcx, 0xc
mov r8d, 1
mov rdx, qword [rsp + 0x178]
call fcn.140107430
test eax, eax
jne 0x1401080e2
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1401022b0
xor eax, eax
jmp 0x140108ad6
jmp 0x14010811a
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 4]
mov rcx, qword [rsp + 0x178]
call fcn.140102860
test eax, eax
jne 0x14010811a
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1401022b0
xor eax, eax
jmp 0x140108ad6
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x178]
call fcn.140105040
test eax, eax
jne 0x140108168
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1401022b0
xor eax, eax
jmp 0x140108ad6
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4e0]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x78], 0x100000
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x4ec]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x90], 0
mov ecx, dword [rsp + 0x88]
call fcn.1400f8cd0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x180], 0
je 0x1401081e9
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x88]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x140261560]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4f4]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
divsd xmm0, qword [0x140263818]
divsd xmm0, qword [0x140263810]
call fcn.1400aea08
mulsd xmm0, qword [0x140263810]
xor ecx, ecx
comisd xmm0, xmmword [0x140261558]
jbe 0x140108265
subsd xmm0, qword [0x140261558]
comisd xmm0, xmmword [0x140261558]
jae 0x140108265
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0x80]
call fcn.1400f8cd0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x40], rax
jae 0x140108a40
mov ecx, dword [rsp + 0x88]
xor edx, edx
mov rax, qword [rsp + 0x70]
div rcx
mov dword [rsp + 0xa4], eax
xor edx, edx
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4bc]
mov ecx, eax
mov eax, dword [rsp + 0xa4]
add eax, ecx
mov dword [rsp + 0x9c], eax
mov ecx, dword [rsp + 0x88]
xor edx, edx
mov rax, qword [rsp + 0x70]
div rcx
mov dword [rsp + 0x98], edx
mov ecx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x4c0]
mov rax, qword [rax + rcx*8]
and rax, 7
mov dword [rsp + 0xa0], eax
cmp qword [rsp + 0x180], 0
je 0x1401083b9
cmp qword [rsp + 0x48], 0
je 0x140108379
mov ecx, dword [rsp + 0x188]
mov eax, dword [rsp + 0x190]
sub eax, ecx
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x190]
movsxd r8, eax
mov rax, qword [rsp + 0x70]
imul rax, rax, 0x64
xor edx, edx
div qword [rsp + 0x48]
movsxd rcx, dword [rsp + 0x190]
xor edx, edx
div rcx
add r8, rax
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1401083b9
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140108379
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x138], eax
cmp dword [rsp + 0x138], 0
je 0x14010840e
cmp dword [rsp + 0x138], 0
jbe 0x140108a3b
cmp dword [rsp + 0x138], 3
jbe 0x1401084b8
cmp dword [rsp + 0x138], 5
jbe 0x140108a3b
cmp dword [rsp + 0x138], 7
jbe 0x1401084b8
jmp 0x140108a3b
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rax
mov ecx, dword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov eax, eax
cmp rdx, rax
jae 0x140108449
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov qword [rsp + 0x140], rax
jmp 0x140108463
mov ecx, dword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov eax, eax
mov qword [rsp + 0x140], rax
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0xd8], eax
mov ecx, dword [rsp + 0xd8]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x90], rax
mov ecx, dword [rsp + 0xd8]
mov rax, qword [rsp + 0x40]
add rax, rcx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0xd8]
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x140108a3b
xor edx, edx
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xe4], eax
xor edx, edx
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xdc], edx
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rax
mov ecx, dword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov eax, eax
cmp rdx, rax
jae 0x140108529
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov qword [rsp + 0x148], rax
jmp 0x140108543
mov ecx, dword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov eax, eax
mov qword [rsp + 0x148], rax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xa0], 7
jne 0x1401088d0
xor edx, edx
mov eax, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4f4]
mov dword [rsp + 0xf0], eax
xor edx, edx
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4bc]
mov r8d, edx
xor edx, edx
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4f4]
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov eax, r8d
imul eax, ecx
mov dword [rsp + 0xec], eax
lea rcx, [rsp + 0x100]
call fcn.14001bea0
nop
xor edx, edx
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4bc]
imul eax, dword [rsp + 0x78]
add eax, dword [rsp + 0xec]
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x153c]
call fcn.140111a20
lea rcx, [rsp + 0x100]
call fcn.140026540
test rax, rax
jbe 0x140108714
xor edx, edx
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4bc]
mov r8d, eax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0x4bc]
add ecx, 1
mov eax, r8d
imul eax, ecx
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0x4bc]
mov eax, eax
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x4c0]
mov rdx, qword [rdx + rax*8]
and rdx, 0xfffffffffff00000
mov eax, dword [rsp + 0xec]
add rdx, rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40c]
call fcn.1400fba30
xor edx, edx
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
div dword [rcx + 0x4bc]
imul eax, dword [rsp + 0x78]
add eax, dword [rsp + 0xec]
mov r8d, eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x153c]
call fcn.14010f780
xor edx, edx
mov eax, dword [rsp + 0xe4]
mov ecx, 8
div ecx
mov ecx, 7
sub ecx, edx
mov eax, 1
shl eax, cl
mov byte [rsp + 0xe8], al
xor edx, edx
mov eax, dword [rsp + 0xe4]
mov ecx, 8
div ecx
mov ecx, eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0xe8]
and eax, ecx
test eax, eax
jne 0x14010876f
mov dword [rsp + 0x150], 1
jmp 0x14010877a
mov dword [rsp + 0x150], 0
movzx eax, byte [rsp + 0x150]
mov byte [rsp + 0xf8], al
mov dword [rsp + 0xf4], 1
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xf4], eax
jae 0x140108849
mov ecx, dword [rsp + 0xf4]
mov eax, dword [rsp + 0xe4]
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 + 0xe8], al
mov ecx, dword [rsp + 0xf4]
mov eax, dword [rsp + 0xe4]
add eax, ecx
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0xe8]
and eax, ecx
test eax, eax
jne 0x140108815
mov dword [rsp + 0x154], 1
jmp 0x140108820
mov dword [rsp + 0x154], 0
movzx eax, byte [rsp + 0xf8]
cmp dword [rsp + 0x154], eax
je 0x140108833
jmp 0x140108849
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
jmp 0x140108794
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0xf4]
imul eax, dword [rcx + 0x4f4]
mov dword [rsp + 0xe0], eax
movzx eax, byte [rsp + 0xf8]
test eax, eax
je 0x1401088c3
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x90], rax
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x40]
add rax, rcx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x100]
call fcn.14001be70
jmp 0x140108a3b
lea rcx, [rsp + 0x100]
call fcn.14001be70
cmp qword [rsp + 0x90], 0
je 0x1401088e7
mov qword [rsp + 0x90], 0
cmp dword [rsp + 0xa0], 1
je 0x140108905
cmp dword [rsp + 0xa0], 2
je 0x140108905
cmp dword [rsp + 0xa0], 3
jne 0x14010897e
mov r8d, dword [rsp + 0xe0]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.1400a87c0
mov r9d, dword [rsp + 0xe0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400fed70
mov r11d, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x40]
add rax, r11
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x140108a3b
mov r9d, dword [rsp + 0xe0]
mov eax, dword [rsp + 0x9c]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x4c0]
mov rdx, qword [rdx + rax*8]
and rdx, 0xfffffffffff00000
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0xe4]
imul eax, dword [rcx + 0x4f4]
mov eax, eax
add rdx, rax
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40c]
call fcn.1400fba30
mov r9d, dword [rsp + 0xe0]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400fed70
mov r11d, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x40]
add rax, r11
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0x70]
add rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x140108286
cmp qword [rsp + 0x90], 0
je 0x140108a57
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x58]
call fcn.1400f8c90
mov rcx, qword [rsp + 0x68]
call fcn.1400f8c90
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1401022b0
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.1401022b0
cmp qword [rsp + 0x180], 0
je 0x140108ad1
mov ecx, dword [rsp + 0x188]
mov eax, dword [rsp + 0x190]
sub eax, ecx
add eax, 1
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x190]
movsxd r8, eax
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
add rsp, 0x168
ret