Function at 0x140025f40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
xor edx, edx
mov rcx, qword [rsp + 0x2d8]
call fcn.140010e10
mov rax, qword [rsp + 0x2d0]
mov qword [rax], 0
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140025810
test eax, eax
jl 0x140025fa0
mov dword [rsp + 0x50], 1
jmp 0x140025fa8
mov dword [rsp + 0x50], 0
lea r8, [0x1402b2210]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140025710
test eax, eax
jl 0x140025fcf
mov dword [rsp + 0x54], 1
jmp 0x140025fd7
mov dword [rsp + 0x54], 0
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.14000b450
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
movzx eax, al
test eax, eax
jne 0x1400260c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140026028
mov byte [rsp + 0x20], 1
jmp 0x14002602d
mov byte [rsp + 0x20], 0
movzx ecx, byte [rsp + 0x20]
call fcn.140012e20
movzx eax, al
test eax, eax
je 0x140026090
xor ecx, ecx
call fcn.140013050
mov dword [rsp + 0x74], eax
xor eax, eax
test eax, eax
je 0x14002606f
mov rax, qword [rsp + 0x2b8]
xor r9d, r9d
lea r8, [0x1402b2150]
mov edx, 0xcc
mov rcx, rax
call fcn.140022ed0
nop
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x58]
jmp 0x14002630e
xor eax, eax
test eax, eax
jne 0x140026016
mov rax, qword [rsp + 0x2b8]
lea r8, [0x1402b2150]
mov edx, 0xcd
mov rcx, rax
call fcn.140022e70
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x5c]
jmp 0x14002630e
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x28]
call fcn.14000bcf0
lea rdx, [rsp + 0x44]
mov rcx, rax
call fcn.14001eee0
mov ecx, eax
call fcn.140013050
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14002614d
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x2b8]
mov r9d, dword [rsp + 0x34]
lea r8, [0x1402b2150]
mov edx, 0xd3
mov rcx, rax
call fcn.140022ed0
nop
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x60]
jmp 0x14002630e
xor eax, eax
test eax, eax
jne 0x1400260d9
movzx eax, byte [rsp + 0x2c8]
test eax, eax
je 0x1400262aa
lea r8, [0x1402b2218]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140025710
test eax, eax
jl 0x14002618a
mov dword [rsp + 0x64], 1
jmp 0x140026192
mov dword [rsp + 0x64], 0
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.14000b450
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14000bc40
movzx eax, al
test eax, eax
je 0x140026213
mov rax, qword [rsp + 0x2b8]
lea r8, [0x1402b2150]
mov edx, 0xd9
mov rcx, rax
call fcn.140022e70
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x48]
call fcn.140017070
nop
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x68]
jmp 0x14002630e
xor eax, eax
test eax, eax
jne 0x1400261c2
lea rcx, [rsp + 0x48]
call fcn.14000bcf0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14001eee0
mov ecx, eax
call fcn.140013050
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x140026295
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x2b8]
mov r9d, dword [rsp + 0x3c]
lea r8, [0x1402b2150]
mov edx, 0xdb
mov rcx, rax
call fcn.140022ed0
nop
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x48]
call fcn.140017070
nop
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x6c]
jmp 0x14002630e
xor eax, eax
test eax, eax
jne 0x140026219
lea rcx, [rsp + 0x48]
call fcn.140017070
nop
movsxd rax, dword [rsp + 0x40]
shl rax, 0x1f
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x88], rax
mov dl, 1
mov rcx, qword [rsp + 0x2d8]
call fcn.140010e10
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x2d0]
mov qword [rcx], rax
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x28]
call fcn.140017070
mov eax, dword [rsp + 0x70]
add rsp, 0x2b8
ret