Function at 0x140109870
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 0x1401098be
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.1401068c0
test eax, eax
jne 0x1401098fd
xor eax, eax
jmp 0x14010a356
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14010999a
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x494], 0
je 0x140109964
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x494]
add rcx, 0xc
mov r8d, 1
mov rdx, qword [rsp + 0x178]
call fcn.140108cb0
test eax, eax
jne 0x140109962
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103b30
xor eax, eax
jmp 0x14010a356
jmp 0x14010999a
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 4]
mov rcx, qword [rsp + 0x178]
call fcn.1401040e0
test eax, eax
jne 0x14010999a
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103b30
xor eax, eax
jmp 0x14010a356
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.1401068c0
test eax, eax
jne 0x1401099e8
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103b30
xor eax, eax
jmp 0x14010a356
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.1400fa550
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x180], 0
je 0x140109a69
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 [0x140272fd0]
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 [0x1402752a8]
divsd xmm0, qword [0x1402752a0]
call fcn.1400afb58
mulsd xmm0, qword [0x1402752a0]
xor ecx, ecx
comisd xmm0, xmmword [0x140272fc8]
jbe 0x140109ae5
subsd xmm0, qword [0x140272fc8]
comisd xmm0, xmmword [0x140272fc8]
jae 0x140109ae5
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rsp + 0x80], rax
mov ecx, dword [rsp + 0x80]
call fcn.1400fa550
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x40], rax
jae 0x14010a2c0
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 0x140109c39
cmp qword [rsp + 0x48], 0
je 0x140109bf9
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 0x140109c39
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140109bf9
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x138], eax
cmp dword [rsp + 0x138], 0
je 0x140109c8e
cmp dword [rsp + 0x138], 0
jbe 0x14010a2bb
cmp dword [rsp + 0x138], 3
jbe 0x140109d38
cmp dword [rsp + 0x138], 5
jbe 0x14010a2bb
cmp dword [rsp + 0x138], 7
jbe 0x140109d38
jmp 0x14010a2bb
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 0x140109cc9
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov qword [rsp + 0x140], rax
jmp 0x140109ce3
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 0x14010a2bb
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 0x140109da9
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov qword [rsp + 0x148], rax
jmp 0x140109dc3
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 0x14010a150
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.14001d3d0
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.140113290
lea rcx, [rsp + 0x100]
call fcn.140027e80
test rax, rax
jbe 0x140109f94
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.1400fd2b0
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.140110ff0
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 0x140109fef
mov dword [rsp + 0x150], 1
jmp 0x140109ffa
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 0x14010a0c9
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 0x14010a095
mov dword [rsp + 0x154], 1
jmp 0x14010a0a0
mov dword [rsp + 0x154], 0
movzx eax, byte [rsp + 0xf8]
cmp dword [rsp + 0x154], eax
je 0x14010a0b3
jmp 0x14010a0c9
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
jmp 0x14010a014
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 0x14010a143
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.14001d2d0
jmp 0x14010a2bb
lea rcx, [rsp + 0x100]
call fcn.14001d2d0
cmp qword [rsp + 0x90], 0
je 0x14010a167
mov qword [rsp + 0x90], 0
cmp dword [rsp + 0xa0], 1
je 0x14010a185
cmp dword [rsp + 0xa0], 2
je 0x14010a185
cmp dword [rsp + 0xa0], 3
jne 0x14010a1fe
mov r8d, dword [rsp + 0xe0]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.1400a9850
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.1401005f0
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 0x14010a2bb
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.1400fd2b0
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.1401005f0
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 0x140109b06
cmp qword [rsp + 0x90], 0
je 0x14010a2d7
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x58]
call fcn.1400fa510
mov rcx, qword [rsp + 0x68]
call fcn.1400fa510
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103b30
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.140103b30
cmp qword [rsp + 0x180], 0
je 0x14010a351
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