Function at 0x140006e10
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140021350]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r12b, 1
xor r15d, r15d
mov word [rbp - 0x10], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0xe]
call fcn.14000bb00
mov rbx, qword [0x140021018]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x78]
call fcn.140004b60
nop
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006f0f
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x140006ebd
cmp r14d, dword [rbx - 4]
jle 0x140006ef3
cmp rcx, qword [0x140021010]
je 0x140006edd
lock add dword [rcx], 0xffffffff
jg 0x140006ed1
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x38], rax
mov edx, r14d
lea rcx, [rsp + 0x38]
call fcn.140001290
mov rbx, qword [rsp + 0x38]
test eax, eax
je 0x140006f0f
lea rdi, [r14 + r14]
mov r8, rdi
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r14d
mov word [rdi + rbx], r15w
lea rax, [rbp - 0x28]
mov qword [rsp + 0x58], rax
lea rdx, [0x140016128]
lea rcx, [rbp - 0x28]
call fcn.1400010a0
mov r14, rax
mov rdi, qword [rbp - 0x78]
cmp dword [rdi - 0xc], 0
jl 0x140006f44
mov qword [rbp - 0x68], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x38]
jmp 0x140006f67
mov rax, qword [0x140021018]
mov qword [rbp - 0x68], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.140001320
nop
mov r8, r14
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x48]
call fcn.140003fb0
nop
mov rax, qword [0x140021018]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x30], rax
mov rdi, qword [rsp + 0x48]
cmp dword [rdi - 0xc], 0
jl 0x140006fa3
mov qword [rbp - 0x80], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x38]
jmp 0x140006fbe
mov qword [rbp - 0x80], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140001320
lea rcx, [rbp - 0x80]
call fcn.140006260
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x48]
cmp dword [rdi - 0xc], 0
jl 0x140006fec
mov qword [rsp + 0x78], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x38]
jmp 0x140007011
mov rax, qword [0x140021018]
mov qword [rsp + 0x78], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140001320
nop
lea r13, [rbx - 0xc]
cmp dword [r13], 0
jl 0x14000702c
mov qword [rbp - 0x70], rbx
lock inc dword [r13]
mov rbx, qword [rsp + 0x38]
jmp 0x14000704f
mov rax, qword [0x140021018]
mov qword [rbp - 0x70], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140001320
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.140003e70
test al, al
jne 0x1400070c6
mov r8, rbx
mov edx, 0x66
lea rcx, [rsp + 0x40]
call fcn.140004490
mov rdi, qword [rsp + 0x40]
cmp dword [rdi - 0xc], 0
jl 0x140007088
mov qword [rbp - 0x50], rdi
lock inc dword [rdi - 0xc]
jmp 0x1400070ae
mov rax, qword [0x140021018]
mov qword [rbp - 0x50], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140001320
mov r9d, 0x10
lea r8d, [r9 + 0x55]
lea rdx, [rbp - 0x50]
xor ecx, ecx
call fcn.140007a50
xor r12b, r12b
call fcn.140001c40
mov r15, rax
mov qword [rsp + 0x58], rax
mov rbx, qword [0x140021018]
mov qword [rsp + 0x28], rbx
mov edx, dword [rax + 4]
test edx, edx
je 0x1400071c1
dec edx
je 0x14000715f
lea rcx, str.semisilent
dec edx
je 0x140007152
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
movsxd r14, eax
jg 0x140007111
cmp r14d, dword [rbx - 4]
jle 0x140007146
cmp rcx, qword [0x140021010]
je 0x140007131
lock add dword [rcx], 0xffffffff
jg 0x140007125
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x28], rax
mov edx, r14d
lea rcx, [rsp + 0x28]
call fcn.140001290
test eax, eax
je 0x14000723b
lea rdx, str.semisilent
jmp 0x14000721d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rbx, qword [rsp + 0x28]
jmp 0x1400070ff
lea rcx, str.warning
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, eax
mov rbx, qword [rsp + 0x28]
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x140007183
cmp r14d, dword [rbx - 4]
jle 0x1400071b8
cmp rcx, qword [0x140021010]
je 0x1400071a3
lock add dword [rcx], 0xffffffff
jg 0x140007197
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x28], rax
mov edx, r14d
lea rcx, [rsp + 0x28]
call fcn.140001290
test eax, eax
je 0x14000723b
lea rdx, str.warning
jmp 0x14000721d
lea rcx, [0x140015ff4]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, eax
mov rbx, qword [rsp + 0x28]
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x1400071e5
cmp r14d, dword [rbx - 4]
jle 0x140007216
cmp rcx, qword [0x140021010]
je 0x140007205
lock add dword [rcx], 0xffffffff
jg 0x1400071f9
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x28], rax
mov edx, r14d
lea rcx, [rsp + 0x28]
call fcn.140001290
test eax, eax
je 0x14000723b
lea rdx, [0x140015ff4]
lea rdi, [r14 + r14]
mov rbx, qword [rsp + 0x28]
mov r8, rdi
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r14d
xor eax, eax
mov word [rdi + rbx], ax
mov r14, qword [rsp + 0x48]
cmp dword [r14 - 0xc], 0
jl 0x140007253
mov qword [rsp + 0x30], r14
lock inc dword [r14 - 0xc]
jmp 0x1400072d1
mov rbx, qword [0x140021018]
mov qword [rsp + 0x30], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x14000727a
cmp r15d, dword [rbx - 4]
jle 0x1400072ab
cmp rcx, qword [0x140021010]
je 0x14000729a
lock add dword [rcx], 0xffffffff
jg 0x14000728e
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x30], rax
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.140001290
test eax, eax
je 0x1400072cc
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r14
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r15d
xor eax, eax
mov word [rdi + rbx], ax
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x30]
lea rdi, [rbx - 0xc]
mov ecx, 0x104
cmp dword [rdi], 1
jg 0x1400072e9
cmp dword [rbx - 4], ecx
jge 0x140007345
mov rax, qword [rsp + 0x30]
mov r14d, dword [rax - 8]
mov edx, ecx
cmp r14d, ecx
cmovg edx, r14d
lea rcx, [rsp + 0x30]
call fcn.140001290
test eax, eax
jne 0x14000730f
xor edi, edi
mov ecx, edi
jmp 0x14000734c
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
lea rdx, [rdi + 0xc]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r14d
cmp rdi, qword [0x140021010]
je 0x140007345
lock add dword [rdi], 0xffffffff
jg 0x140007345
mov rcx, rdi
call fcn.14000a238
mov rcx, qword [rsp + 0x30]
xor edi, edi
lea rdx, str.PreChecks.ini
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rbx, qword [rsp + 0x30]
add rbx, 0xfffffffffffffff4
cmp dword [rbx], 1
jle 0x1400073b4
cmp rbx, qword [0x140021010]
je 0x14000738a
lock add dword [rbx], 0xffffffff
jg 0x14000737e
mov rcx, rbx
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x30], rax
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x30]
call fcn.140001290
test eax, eax
je 0x1400073b4
mov eax, dword [rbx + 4]
inc eax
movsxd r8, eax
add r8, r8
lea rdx, [rbx + 0xc]
mov rcx, qword [rsp + 0x30]
call fcn.14000a3a0
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbx - 8], eax
movsxd rcx, eax
mov word [rbx + rcx*2], di
test r12b, r12b
je 0x1400074b3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400074b3
lea rcx, [rsp + 0x60]
call fcn.140008c40
nop
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140008f60
movzx r12d, al
test al, al
je 0x1400074a7
lea r9, str.QUIET
lea r8, str.BOOTSTRAP
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140008c50
nop
mov rcx, qword [rbp - 0x60]
mov r9, rcx
mov r11, qword [rsp + 0x28]
sub r11, rcx
nop word [rax + rax]
movzx r10d, word [r9]
movzx eax, word [r9 + r11]
sub r10d, eax
jne 0x140007456
add r9, 2
test eax, eax
jne 0x140007440
test r10d, r10d
je 0x140007486
mov rcx, qword [rsp + 0x30]
call fcn.1400079a0
mov r9, qword [rsp + 0x28]
lea r8, str.QUIET
lea rdx, str.BOOTSTRAP
lea rcx, [rsp + 0x60]
call fcn.140008fd0
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x1400074a7
lock add dword [rcx], 0xffffffff
jg 0x1400074a7
mov rcx, qword [rbp - 0x60]
add rcx, 0xfffffffffffffff4
call fcn.14000a238
nop
lea rcx, [rsp + 0x60]
call fcn.140001150
jmp 0x1400074b6
xor r12b, r12b
mov rax, qword [0x140021018]
mov qword [rsp + 0x68], rax
lea rdx, [rbp - 0x38]
mov rcx, r15
call fcn.140004a60
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140004330
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x140007501
lock add dword [rcx], 0xffffffff
jg 0x140007501
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
call fcn.14000a238
mov dword [rsp + 0x50], edi
mov r14, qword [rsp + 0x48]
cmp dword [r14 - 0xc], 0
jl 0x14000751d
mov qword [rsp + 0x20], r14
lock inc dword [r14 - 0xc]
jmp 0x14000759a
mov rbx, qword [0x140021018]
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x140007544
cmp r15d, dword [rbx - 4]
jle 0x14000757a
cmp rcx, qword [0x140021010]
je 0x140007564
lock add dword [rcx], 0xffffffff
jg 0x140007558
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x20], rax
mov edx, r15d
lea rcx, [rsp + 0x20]
call fcn.140001290
test eax, eax
je 0x14000759a
mov rbx, qword [rsp + 0x20]
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r15d
xor r15d, r15d
mov word [rdi + rbx], r15w
jmp 0x1400075a2
xor r15d, r15d
mov rbx, qword [rsp + 0x20]
lea rdi, [rbx - 0xc]
mov eax, 0x104
cmp dword [rdi], 1
jg 0x1400075b5
cmp dword [rbx - 4], eax
jge 0x140007610
mov r14d, dword [rbx - 8]
cmp r14d, eax
cmovg eax, r14d
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001290
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x1400075da
mov rcx, r15
jmp 0x140007613
lea eax, [r14 + 1]
movsxd r8, eax
add r8, r8
lea rdx, [rdi + 0xc]
mov rcx, rbx
call fcn.14000a3a0
mov dword [rbx - 8], r14d
cmp rdi, qword [0x140021010]
je 0x140007610
lock add dword [rdi], 0xffffffff
jg 0x14000760b
mov rcx, rdi
call fcn.14000a238
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
lea rdx, str.ScriptTool.exe
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdi, [rbx - 0xc]
cmp dword [rdi], 1
jle 0x140007679
cmp rdi, qword [0x140021010]
je 0x14000764c
lock add dword [rdi], 0xffffffff
jg 0x140007640
mov rcx, rdi
call fcn.14000a238
mov rax, qword [0x140021018]
mov qword [rsp + 0x20], rax
mov edx, dword [rdi + 4]
lea rcx, [rsp + 0x20]
call fcn.140001290
mov rbx, qword [rsp + 0x20]
test eax, eax
je 0x140007679
mov eax, dword [rdi + 4]
inc eax
movsxd r8, eax
add r8, r8
lea rdx, [rdi + 0xc]
mov rcx, rbx
call fcn.14000a3a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbx - 8], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r15w
test r12b, r12b
je 0x1400077be
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000770d
mov r8, rbx
lea edx, [rax + 0x67]
lea rcx, [rsp + 0x40]
call fcn.140004490
mov rdi, qword [rsp + 0x40]
cmp dword [rdi - 0xc], 0
jl 0x1400076cd
mov qword [rbp - 0x40], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x20]
jmp 0x1400076f3
mov rax, qword [0x140021018]
mov qword [rbp - 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140001320
mov r9d, 0x10
lea r8d, [r9 + 0x55]
lea rdx, [rbp - 0x40]
xor ecx, ecx
call fcn.140007a50
jmp 0x1400077be
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x68]
cmp dword [rdi - 0xc], 0
jl 0x140007732
mov qword [rsp + 0x70], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x20]
jmp 0x14000775b
mov rax, qword [0x140021018]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x68]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140001320
nop
cmp dword [rbx - 0xc], 0
jl 0x140007770
mov qword [rbp - 0x48], rbx
lock inc dword [rbx - 0xc]
mov rbx, qword [rsp + 0x20]
jmp 0x140007793
mov rax, qword [0x140021018]
mov qword [rbp - 0x48], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x48]
call fcn.140001320
nop
lea r9, [rsp + 0x50]
mov r8d, 5
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.1400040e0
test eax, eax
je 0x1400077be
mov eax, dword [rsp + 0x50]
cmp eax, 2
jae 0x1400077be
mov r14b, 1
jmp 0x1400077c1
xor r14b, r14b
mov rdi, qword [rsp + 0x48]
cmp dword [rdi - 0xc], 0
jl 0x1400077db
mov qword [rbp - 0x58], rdi
lock inc dword [rdi - 0xc]
mov rbx, qword [rsp + 0x20]
jmp 0x1400077fd
mov rax, qword [0x140021018]
mov qword [rbp - 0x58], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.140001320
lea rcx, [rbp - 0x58]
call fcn.140006260
neg r14b
sbb edi, edi
neg edi
dec edi
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140021010]
je 0x140007828
lock add dword [rcx], 0xffffffff
jg 0x140007828
call fcn.14000a238
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x140007846
lock add dword [rcx], 0xffffffff
jg 0x140007846
call fcn.14000a238
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x140007864
lock add dword [rcx], 0xffffffff
jg 0x140007864
call fcn.14000a238
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x140007882
lock add dword [rcx], 0xffffffff
jg 0x140007882
call fcn.14000a238
nop
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x14000789f
lock add dword [rcx], 0xffffffff
jg 0x14000789f
call fcn.14000a238
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x1400078bd
lock add dword [rcx], 0xffffffff
jg 0x1400078bd
call fcn.14000a238
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x1400078e4
lock add dword [rcx], 0xffffffff
jg 0x1400078e4
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call fcn.14000a238
nop
mov rcx, qword [rbp - 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140021010]
je 0x140007909
lock add dword [rcx], 0xffffffff
jg 0x140007909
mov rcx, qword [rbp - 0x78]
add rcx, 0xfffffffffffffff4
call fcn.14000a238
nop
cmp r13, qword [0x140021010]
je 0x140007922
lock add dword [r13], 0xffffffff
jg 0x140007922
mov rcx, r13
call fcn.14000a238
mov eax, edi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14000b350
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret