Function at 0x140105ef0
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 0x140105f3e
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.1400ff9f0
test eax, eax
jne 0x140105f67
xor eax, eax
jmp 0x14010691c
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140105ff4
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x494], 0
je 0x140105fc4
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x494]
add rcx, 0xc
mov r8d, 1
mov rdx, qword [rsp + 0x168]
call fcn.140105390
test eax, eax
jne 0x140105fc2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103210
xor eax, eax
jmp 0x14010691c
jmp 0x140105ff4
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 4]
mov rcx, qword [rsp + 0x168]
call fcn.140100970
test eax, eax
jne 0x140105ff4
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103210
xor eax, eax
jmp 0x14010691c
mov qword [rsp + 0x50], 0
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x168]
call fcn.1400ff9f0
test eax, eax
jne 0x14010602c
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103210
xor eax, eax
jmp 0x14010691c
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.1400f8940
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x170], 0
je 0x1401060a7
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 [0x14025b060]
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 [0x14025d130]
divsd xmm0, qword [0x14025d128]
call fcn.1400ae2d8
mulsd xmm0, qword [0x14025d128]
xor ecx, ecx
comisd xmm0, xmmword [0x14025b058]
jbe 0x140106120
subsd xmm0, qword [0x14025b058]
comisd xmm0, xmmword [0x14025b058]
jae 0x140106120
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rsp + 0x70], rax
mov ecx, dword [rsp + 0x70]
call fcn.1400f8940
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jae 0x14010688f
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 0x140106268
cmp qword [rsp + 0x38], 0
je 0x140106228
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 0x140106268
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140106228
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
je 0x1401062bd
cmp dword [rsp + 0x128], 0
jbe 0x14010688a
cmp dword [rsp + 0x128], 3
jbe 0x140106361
cmp dword [rsp + 0x128], 5
jbe 0x14010688a
cmp dword [rsp + 0x128], 7
jbe 0x140106361
jmp 0x14010688a
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 0x1401062f5
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov qword [rsp + 0x130], rax
jmp 0x14010630c
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 0x14010688a
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 0x1401063cf
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov qword [rsp + 0x138], rax
jmp 0x1401063e6
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 0x140106743
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.14001e9d0
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.14010ceb0
lea rcx, [rsp + 0xf0]
call fcn.140029420
test rax, rax
jbe 0x140106587
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.1400f9f70
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.14010c090
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 0x1401065e2
mov dword [rsp + 0x140], 1
jmp 0x1401065ed
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 0x1401066bc
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 0x140106688
mov dword [rsp + 0x144], 1
jmp 0x140106693
mov dword [rsp + 0x144], 0
movzx eax, byte [rsp + 0xe8]
cmp dword [rsp + 0x144], eax
je 0x1401066a6
jmp 0x1401066bc
mov eax, dword [rsp + 0xe4]
add eax, 1
mov dword [rsp + 0xe4], eax
jmp 0x140106607
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 0x140106736
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.14001eb40
jmp 0x14010688a
lea rcx, [rsp + 0xf0]
call fcn.14001eb40
cmp qword [rsp + 0x80], 0
je 0x14010675a
mov qword [rsp + 0x80], 0
cmp dword [rsp + 0x90], 1
je 0x140106778
cmp dword [rsp + 0x90], 2
je 0x140106778
cmp dword [rsp + 0x90], 3
jne 0x1401067df
mov r8d, dword [rsp + 0xd0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400a8070
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.1400fcd30
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 0x14010688a
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.1400f9f70
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.1400fcd30
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 0x14010613b
cmp qword [rsp + 0x80], 0
je 0x1401068a6
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x48]
call fcn.1400f8900
mov rcx, qword [rsp + 0x58]
call fcn.1400f8900
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140103210
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.140103210
cmp qword [rsp + 0x170], 0
je 0x140106917
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