Function at 0x140006bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x490
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x140006e64
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x4b0], rax
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x80]
call fcn.14005fd20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x207
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebp, ebp
lea rsi, [rbp - 1]
test eax, eax
je 0x140006c83
lea rcx, [rsp + 0x80]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], bp
jne 0x140006c50
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140006c83
cmp word [rsp + rcx*2 + 0x80], 0x5c
je 0x140006c79
dec eax
dec rcx
test rcx, rcx
jg 0x140006c62
jmp 0x140006c83
cdqe
mov word [rsp + rax*2 + 0x80], bp
lea rax, [rsp + 0x80]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], bp
jne 0x140006c90
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x4b0]
call fcn.140002da0
mov rax, qword [rsp + 0x4b0]
mov edi, dword [rax - 0x10]
test edi, edi
je 0x140006cdc
lea ecx, [rdi - 1]
test ecx, ecx
js 0x140006e6f
cmp ecx, edi
jg 0x140006e6f
movsxd rcx, edi
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140006d28
lea ebx, [rdi + 1]
test ebx, ebx
js 0x140006e6f
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x140006d0f
mov edx, ebx
lea rcx, [rsp + 0x4b0]
call fcn.140002b00
mov rax, qword [rsp + 0x4b0]
mov word [rax + rdi*2], 0x5c
cmp ebx, dword [rax - 0xc]
jg 0x140006e6f
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov word [rax + rcx*2], bp
lea rdx, str.bitsumsessionagent.exe
mov r8, rsi
inc r8
cmp word [rdx + r8*2], bp
jne 0x140006d32
lea rcx, [rsp + 0x4b0]
call fcn.140002b60
mov rbx, qword [rsp + 0x4b0]
mov rax, qword [0x14008a830]
test rax, rax
jne 0x140006dbe
lea edx, [rax + 1]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov qword [rsp + 0x40], 0x18
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea r9, str.Global8a00b2fa_2660_4b81_9ca5_124dce809837
mov edx, 1
mov r8d, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008a830], rax
test rax, rax
je 0x140006e34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006e34
mov edi, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006e34
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rsi
jne 0x140006e2a
cmp edi, 0x1388
jae 0x140006e34
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xfa
jmp 0x140006dd7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140006e4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400018b0
nop
mov ecx, 0x80070057
call fcn.1400018b0
int3