Function at 0x1400081f0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x14005c678]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
mov rcx, qword [rsp + 0x2e8]
call fcn.140002510
mov rax, qword [rsp + 0x2e0]
mov qword [rax], 0
mov r8, qword [rsp + 0x2d0]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140007a20
test eax, eax
jl 0x140008262
mov dword [rsp + 0x34], 1
jmp 0x14000826a
mov dword [rsp + 0x34], 0
lea r8, [0x140039ef8]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140007900
test eax, eax
jl 0x140008291
mov dword [rsp + 0x38], 1
jmp 0x140008299
mov dword [rsp + 0x38], 0
mov edx, 8
lea rcx, [rsp + 0x80]
call fcn.140008f70
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.140001570
nop
lea rcx, [rsp + 0x80]
call fcn.140003610
movzx eax, al
test eax, eax
jne 0x1400083ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140008302
mov byte [rsp + 0x20], 1
jmp 0x140008307
mov byte [rsp + 0x20], 0
movzx ecx, byte [rsp + 0x20]
call fcn.1400026c0
movzx eax, al
test eax, eax
je 0x14000836c
xor ecx, ecx
call fcn.1400026b0
mov dword [rsp + 0x58], eax
xor eax, eax
test eax, eax
je 0x140008348
mov rax, qword [rsp + 0x2c8]
xor r9d, r9d
lea r8, [0x140039e94]
mov edx, 0xc8
mov rcx, rax
call fcn.140006ed0
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x3c]
jmp 0x140008625
xor eax, eax
test eax, eax
jne 0x1400082f0
mov rax, qword [rsp + 0x2c8]
lea r8, [0x140039e94]
mov edx, 0xc9
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x40]
jmp 0x140008625
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
lea rcx, [rsp + 0x80]
call fcn.140009740
lea rdx, [rsp + 0x94]
mov rcx, rax
call fcn.140005520
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x14000843e
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x2c8]
mov r9d, dword [rsp + 0x28]
lea r8, [0x140039e94]
mov edx, 0xcf
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x44]
jmp 0x140008625
xor eax, eax
test eax, eax
jne 0x1400083c2
movzx eax, byte [rsp + 0x2d8]
test eax, eax
je 0x1400085c4
lea r8, [0x140039f00]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140007900
test eax, eax
jl 0x14000847f
mov dword [rsp + 0x48], 1
jmp 0x140008487
mov dword [rsp + 0x48], 0
mov edx, 8
lea rcx, [rsp + 0x88]
call fcn.140008f70
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140001570
nop
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140001680
movzx eax, al
test eax, eax
je 0x140008520
mov rax, qword [rsp + 0x2c8]
lea r8, [0x140039e94]
mov edx, 0xd5
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x88]
call fcn.140003360
nop
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x4c]
jmp 0x140008625
xor eax, eax
test eax, eax
jne 0x1400084c6
lea rcx, [rsp + 0x88]
call fcn.140009740
lea rdx, [rsp + 0x90]
mov rcx, rax
call fcn.140005520
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1400085ad
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c8]
mov r9d, dword [rsp + 0x30]
lea r8, [0x140039e94]
mov edx, 0xd7
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x88]
call fcn.140003360
nop
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x50]
jmp 0x140008625
xor eax, eax
test eax, eax
jne 0x140008526
lea rcx, [rsp + 0x88]
call fcn.140003360
movsxd rax, dword [rsp + 0x90]
shl rax, 0x1f
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x94]
mov qword [rsp + 0x70], rax
mov dl, 1
mov rcx, qword [rsp + 0x2e8]
call fcn.140002510
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x2e0]
mov qword [rcx], rax
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x80]
call fcn.140003360
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400317d0
add rsp, 0x2c8
ret