Function at 0x140002ba8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x140013048], 5
lea r15, str.SM_WORKER::Run
mov r14, rcx
jbe 0x140002bf7
lea rax, [rbp + 0x38]
mov dword [rbp + 0x38], 0xc1
mov qword [rsp + 0x28], rax
lea rdx, [0x140010542]
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r15
mov qword [rsp + 0x20], rax
call fcn.140001008
and dword [rbp + 0x38], 0
xorps xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbp - 8], rax
test rax, rax
je 0x140002d9d
xor esi, esi
lea edi, [rsi + 0x60]
lea edx, [rdi + 0x34]
jmp 0x140002cf3
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rcx, [rbx + 0x34]
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0xe7180c
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x140013208]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140002d71
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140002cb9
mov rcx, qword [0x140013208]
lea r9d, [rdi + 1]
lea r8, [rbp + 0x38]
lea rdx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140002d71
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140002d59
mov edi, dword [rbx + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
lea edx, [rdi + 0x34]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140002c36
mov ecx, 0x5aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor edi, edi
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140002d35
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test edi, edi
je 0x140002d89
mov rdx, rsi
mov rcx, r14
call fcn.140002790
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
nop dword [rax + rax]
jmp 0x140002bf7
xor edi, edi
test rbx, rbx
je 0x140002d20
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x140002d20
movabs rax, 0x535041434557524b
mov rsi, rbx
mov qword [rbx], rax
mov eax, dword [rbx + 0x3c]
mov dword [rbx + 0x30], eax
jmp 0x140002d20
test rsi, rsi
je 0x140002d9d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x140013048], 2
jbe 0x140002de7
mov dword [rbp + 0x38], eax
lea rdx, [0x14001050e]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x40], 0xd8
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x48], r15
call fcn.1400010b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret