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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, rdx
mov rbx, rcx
mov edi, 1
mov qword [rsp + 0x60], 7
xor ebp, ebp
mov qword [rsp + 0x58], rbp
mov word [rsp + 0x48], bp
call fcn.14005b1c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002280
nop
cmp dword [0x14009b9e4], ebp
je 0x140024904
lea rdx, str.Printer
mov rcx, rsi
call fcn.14005c7d4
cmp eax, ebp
je 0x1400246ae
cmp qword [rsp + 0x60], 8
jb 0x1400246a7
mov rcx, qword [rsp + 0x48]
call fcn.14005ab0c
mov eax, edi
jmp 0x140024918
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20a
lea r9, [rsp + 0x280]
mov r8d, edi
xor edx, edx
xor ecx, ecx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
cmp eax, ebp
jne 0x1400246f1
cmp qword [rsp + 0x60], 8
jb 0x1400246ea
mov rcx, qword [rsp + 0x48]
call fcn.14005ab0c
xor eax, eax
jmp 0x140024918
lea r8, [0x1400778f0]
mov r13d, 0x105
mov rdx, r13
lea rcx, [rsp + 0x280]
call fcn.14005c0a4
lea r8, [rsp + 0x280]
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.14005ceb0
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.14005c0a4
lea r9, [rsp + 0x70]
lea r8, str.try_to_remove___1_s___n
lea r12, str.DeleteDeviceIDDirectory
mov rdx, r12
mov ecx, 4
call fcn.140009480
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140058528
cmp eax, ebp
jne 0x140024904
lea r9, [rsp + 0x70]
lea r8, str.DeleteDirectoryFiles_failed___1_s___n
mov rdx, r12
mov ecx, 2
call fcn.140009480
mov r11, qword [rsp + 0x58]
mov rsi, r11
mov rbx, rbp
cmp r11, rbp
jbe 0x140024852
mov r13d, 0x5f
cmp rbx, r11
jbe 0x1400247b7
call fcn.14005c2f8
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
cmp word [rax + rbx*2], 0x2d
jne 0x1400247f4
cmp rbx, r11
jbe 0x1400247d9
call fcn.14005c2f8
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rbx*2], r13w
mov r11, qword [rsp + 0x58]
cmp rbx, r11
jbe 0x140024803
call fcn.14005c2f8
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
cmp word [rax + rbx*2], 0x28
jne 0x140024840
cmp rbx, r11
jbe 0x140024825
call fcn.14005c2f8
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rbx*2], r13w
mov r11, qword [rsp + 0x58]
add rbx, rdi
cmp rbx, rsi
jb 0x1400247a8
mov r13d, 0x105
lea r8, [rsp + 0x280]
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.14005ceb0
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.14005c0a4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400248ea
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400248ea
lea r9, [rsp + 0x70]
lea r8, str.try_to_remove___1_s___n
mov rdx, r12
mov ecx, 4
call fcn.140009480
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140058528
cmp eax, ebp
jne 0x140024904
lea r9, [rsp + 0x70]
lea r8, str.DeleteDirectory_is_failed___1_s___n
mov rdx, r12
mov ecx, 2
call fcn.140009480
mov edi, ebp
jmp 0x140024904
lea r9, [rsp + 0x70]
lea r8, str.__1_s___is_not_found._n
mov rdx, r12
mov ecx, 4
call fcn.140009480
nop
cmp qword [rsp + 0x60], 8
jb 0x140024916
mov rcx, qword [rsp + 0x48]
call fcn.14005ab0c
mov eax, edi
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14005bad0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret