Function at 0x14000b1c0
Capabilities:
Delete file
Get file attributes
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], r15
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b25e
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000b277
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000b4a2
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000c484
lea rdx, [0x140021d30]
lea rcx, [rsp + 0x58]
call fcn.140009638
lea rdx, str.Logs
lea rcx, [rsp + 0x58]
call fcn.140009638
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
or r12d, 0xffffffff
cmp eax, r12d
je 0x14000b2d1
shr ebx, 4
and ebx, 1
jmp 0x14000b2d4
mov ebx, r15d
xor ecx, ecx
call fcn.140009390
xor ecx, ecx
call fcn.140009390
test ebx, ebx
jne 0x14000b306
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.14000befc
mov edi, eax
test eax, eax
js 0x14000b493
mov esi, r15d
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14000b337
lea rbx, [rax - 4]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor ecx, ecx
call fcn.140009390
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
inc esi
mov dword [rsp + 0x20], esi
lea r9, str.LauncherRemediation
lea rdx, str._s_s._03d.etl
lea rcx, [rsp + 0x30]
call fcn.140006660
mov edi, eax
test eax, eax
js 0x14000b493
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14000922c
mov edi, eax
test eax, eax
js 0x14000b493
cmp esi, 0xa
jb 0x14000b309
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, r12d
je 0x14000b3b2
shr ebx, 4
not ebx
and ebx, 1
jmp 0x14000b3b5
mov ebx, r15d
xor ecx, ecx
call fcn.140009390
xor ecx, ecx
call fcn.140009390
test ebx, ebx
je 0x14000b3fb
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14000b3fb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x14000b3e6
mov edi, 0x80004005
jmp 0x14000b3f4
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x14000b495
mov edi, 0x40
mov rcx, qword [rsi + rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, r12d
je 0x14000b41b
shr ebx, 4
not ebx
and ebx, 1
jmp 0x14000b41e
mov ebx, r15d
xor ecx, ecx
call fcn.140009390
xor ecx, ecx
call fcn.140009390
test ebx, ebx
je 0x14000b443
mov rdx, qword [rdi + rsi + 8]
mov rcx, qword [rsi + rdi]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
test eax, eax
je 0x14000b3d5
sub rdi, 8
cmp rdi, 0xfffffffffffffff8
jne 0x14000b400
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, r12d
je 0x14000b467
shr ebx, 4
not ebx
and ebx, 1
jmp 0x14000b46a
mov ebx, r15d
xor ecx, ecx
call fcn.140009390
xor ecx, ecx
call fcn.140009390
mov edi, r15d
test ebx, ebx
je 0x14000b488
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov rax, qword [rsi]
mov qword [rsi], r15
mov qword [r14], rax
jmp 0x14000b49a
mov ecx, eax
call fcn.140009374
mov ecx, edi
call fcn.140009390
nop
lea rcx, [rsp + 0x58]
call fcn.14000b958
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14000b4d7
lea rbx, [rax - 4]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor ecx, ecx
call fcn.140009390
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000c2f0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14000b501
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001c430
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret