Function at 0x14000f980
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.140002e00
mov rcx, rax
test rax, rax
je 0x14000fc24
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.14012ce40
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 0x14000fa43
lea rcx, [rsp + 0x80]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000fa10
dec eax
movsxd rcx, eax
test eax, eax
jle 0x14000fa43
cmp word [rsp + rcx*2 + 0x80], 0x5c
je 0x14000fa39
dec eax
dec rcx
test rcx, rcx
jg 0x14000fa22
jmp 0x14000fa43
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 0x14000fa50
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x4b0]
call fcn.140005a90
mov rax, qword [rsp + 0x4b0]
mov edi, dword [rax - 0x10]
test edi, edi
je 0x14000fa9c
lea ecx, [rdi - 1]
test ecx, ecx
js 0x14000fc2f
cmp ecx, edi
jg 0x14000fc2f
movsxd rcx, edi
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14000fae8
lea ebx, [rdi + 1]
test ebx, ebx
js 0x14000fc2f
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x14000facf
mov edx, ebx
lea rcx, [rsp + 0x4b0]
call fcn.140005a20
mov rax, qword [rsp + 0x4b0]
mov word [rax + rdi*2], 0x5c
cmp ebx, dword [rax - 0xc]
jg 0x14000fc2f
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 0x14000faf2
lea rcx, [rsp + 0x4b0]
call fcn.140005c50
mov rbx, qword [rsp + 0x4b0]
mov rax, qword [0x14017cbe0]
test rax, rax
jne 0x14000fb7e
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 [0x14017cbe0], rax
test rax, rax
je 0x14000fbf4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000fbf4
mov edi, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000fbf4
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 0x14000fbea
cmp edi, 0x7d0
jae 0x14000fbf4
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xfa
jmp 0x14000fb97
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 0x14000fc0b
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.140002b00
nop
mov ecx, 0x80070057
call fcn.140002b00
int3