Function at 0x14002af70
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe00
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0xdf0], rax
mov rbx, r9
mov esi, r8d
mov r15, rdx
mov qword [rsp + 0x80], rdx
mov rdi, rcx
mov qword [rsp + 0x88], rdx
mov r12, qword [rsp + 0xe60]
mov qword [rsp + 0x68], r12
xor r8d, r8d
lea rdx, str.DeviceIDFolderDeleteCheck
lea rcx, [rsp + 0x98]
call fcn.140001190
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
mov r9, rdi
lea r8, str.lpDriverName___s__lpHardwareIDName___s__flag___d__lpEnv___s
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.140001370
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
mov eax, 1
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x78], eax
call fcn.1400166e0
cmp eax, 6
je 0x14002b059
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r14 + 2]
lea rcx, [rsp + 0x98]
call fcn.140001370
nop
jmp 0x14002c3d0
test esi, esi
jne 0x14002b843
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8d, [rsi + 6]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov esi, eax
test eax, eax
jne 0x14002b0bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002b0bd
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x98]
call fcn.140001370
nop
jmp 0x14002c3d0
mov edx, dword [rsp + 0x50]
add edx, 0x100
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14002c35d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov r9, r12
mov r8d, 6
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
mov esi, eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x58], eax
test eax, eax
je 0x14002b819
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14002b819
mov r13d, r14d
cmp r13d, eax
jae 0x14002b805
mov ebx, r13d
imul rbx, rbx, 0x88
mov rdx, rdi
mov rcx, qword [rbx + r12 + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002b7f9
mov rdx, qword [rbx + r12 + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400054e0
nop
lea rcx, [rsp + 0x70]
call fcn.14002e9c0
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.140056384
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002b1a8
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rbx, qword [rbx + r12 + 0x38]
or r15, 0xffffffffffffffff
or esi, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14002b343
test rbx, rbx
jne 0x14002b1e1
mov ecx, r14d
jmp 0x14002b1f2
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002b21d
mov eax, esi
jmp 0x14002b223
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140012140
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14002b29d
cmp dword [rdi + 0x10], 0
jl 0x14002b28e
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002b28e
call fcn.140006db0
mov r15, rax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002b27f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r15 + 0x18]
mov qword [rsp + 0x40], rax
or r15, 0xffffffffffffffff
jmp 0x14002b29d
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400059f0
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b2c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x320], 7
mov qword [rsp + 0x318], r14
mov word [rsp + 0x308], r14w
xor eax, eax
mov rcx, r15
mov rdx, qword [rsp + 0x40]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x308]
call fcn.140003200
nop
lea rdx, [rsp + 0x308]
mov rcx, qword [rsp + 0x68]
call fcn.140002f30
nop
cmp qword [rsp + 0x320], 8
jb 0x14002b32d
mov rcx, qword [rsp + 0x308]
call fcn.14005605c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rbx, [rbx + rax*2]
jmp 0x14002b1c6
mov ebx, r13d
imul rbx, rbx, 0x88
mov rdx, qword [rbx + r12 + 0x28]
test rdx, rdx
jne 0x14002b35c
mov ecx, r14d
jmp 0x14002b36d
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002b395
mov eax, esi
jmp 0x14002b39b
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140012140
nop
mov rdx, qword [rax]
mov qword [rsp + 0x280], 7
mov qword [rsp + 0x278], r14
mov word [rsp + 0x268], r14w
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x268]
call fcn.140003200
nop
lea rdx, [rsp + 0x268]
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.140002f30
nop
cmp qword [rsp + 0x280], 8
jb 0x14002b425
mov rcx, qword [rsp + 0x268]
call fcn.14005605c
mov qword [rsp + 0x280], 7
mov qword [rsp + 0x278], r14
mov word [rsp + 0x268], r14w
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b465
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + r12 + 0x20]
test rdx, rdx
jne 0x14002b474
mov ecx, r14d
jmp 0x14002b485
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002b4ad
mov eax, esi
jmp 0x14002b4b3
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140012140
nop
mov rdx, qword [rax]
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], r14
mov word [rsp + 0x1f0], r14w
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1f0]
call fcn.140003200
nop
lea rdx, [rsp + 0x1f0]
mov rcx, r13
call fcn.140002f30
nop
cmp qword [rsp + 0x208], 8
jb 0x14002b535
mov rcx, qword [rsp + 0x1f0]
call fcn.14005605c
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], r14
mov word [rsp + 0x1f0], r14w
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b572
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + r12 + 0x30]
test rdx, rdx
jne 0x14002b581
mov ecx, r14d
jmp 0x14002b592
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002b5ba
mov eax, esi
jmp 0x14002b5c0
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.140012140
nop
mov rdx, qword [rax]
mov qword [rsp + 0x258], 7
mov qword [rsp + 0x250], r14
mov word [rsp + 0x240], r14w
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x240]
call fcn.140003200
nop
lea rdx, [rsp + 0x240]
mov rcx, r13
call fcn.140002f30
nop
cmp qword [rsp + 0x258], 8
jb 0x14002b645
mov rcx, qword [rsp + 0x240]
call fcn.14005605c
mov qword [rsp + 0x258], 7
mov qword [rsp + 0x250], r14
mov word [rsp + 0x240], r14w
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b685
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + r12 + 0x18]
test rdx, rdx
jne 0x14002b694
mov ecx, r14d
jmp 0x14002b6a5
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14019a074
test rax, rax
je 0x14002b6d2
sub rax, rdi
mov rsi, rax
sar rsi, 1
inc esi
mov r8d, dword [rdi - 0x10]
sub r8d, esi
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.140012140
nop
mov rdx, qword [rax]
mov qword [rsp + 0x230], 7
mov qword [rsp + 0x228], r14
mov word [rsp + 0x218], r14w
xor eax, eax
mov rcx, r15
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x218]
call fcn.140003200
nop
lea rdx, [rsp + 0x218]
mov rcx, r13
call fcn.140002f30
nop
cmp qword [rsp + 0x230], 8
jb 0x14002b757
mov rcx, qword [rsp + 0x218]
call fcn.14005605c
mov qword [rsp + 0x230], 7
mov qword [rsp + 0x228], r14
mov word [rsp + 0x218], r14w
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b798
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov esi, dword [rsp + 0x4c]
jmp 0x14002b7b6
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b7d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x14002b805
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002b805
inc r13d
mov eax, dword [rsp + 0x54]
jmp 0x14002b137
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002c35d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x98]
call fcn.140001370
nop
jmp 0x14002c3d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x5b0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x9d0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x360]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x7c0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xbe0]
call fcn.14019d7c0
lea rcx, [rsp + 0x9d0]
call fcn.140020430
mov r9, r15
lea r8, [rsp + 0x9d0]
lea rdx, str._s_s
lea rcx, [rsp + 0x7c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x7c0]
lea rdx, [0x14021f0f0]
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r15d, 1
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x120], r14
mov qword [rsp + 0xa8], r14
mov r13, r14
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xd8], r14
lea ecx, [r15 + 0x6f]
call fcn.140056010
test rax, rax
je 0x14002c38f
mov qword [rsp + 0xd0], rax
mov qword [rax], rax
mov rax, qword [rsp + 0xd0]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x10], rax
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x68], r15b
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x69], r15b
mov rax, qword [rsp + 0xd0]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x69], 0
jne 0x14002ba0f
nop
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0xc8]
call fcn.1400347a0
mov rbx, qword [rbx]
cmp qword [rdi + 0x58], 8
jb 0x14002b9c4
mov rcx, qword [rdi + 0x40]
call fcn.14005605c
mov qword [rdi + 0x58], 7
mov qword [rdi + 0x50], r14
mov word [rdi + 0x40], r14w
cmp qword [rdi + 0x30], 8
jb 0x14002b9e5
mov rcx, qword [rdi + 0x18]
call fcn.14005605c
mov qword [rdi + 0x30], 7
mov qword [rdi + 0x28], r14
mov word [rdi + 0x18], r14w
mov rcx, rdi
call fcn.14005605c
mov rdi, rbx
cmp byte [rbx + 0x69], 0
je 0x14002b9a0
mov rax, qword [rsp + 0xd0]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xd0]
mov qword [rax], rax
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x10], rax
mov qword [rsp + 0xd8], r14
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x110]
call fcn.14002dd90
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x110]
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14002c103
or r15, 0xffffffffffffffff
mov qword [rsp + 0x90], rsi
cmp rsi, qword [rsp + 0x118]
je 0x14002c0d2
mov qword [rsp + 0x2d0], 7
mov qword [rsp + 0x2c8], r14
mov word [rsp + 0x2b8], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x2b8]
call fcn.140003010
nop
lea rdx, [rsp + 0x2b8]
cmp qword [rsp + 0x2d0], 8
cmovae rdx, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002c0b1
mov qword [rsp + 0x348], 7
mov qword [rsp + 0x340], r14
mov word [rsp + 0x330], r14w
xor eax, eax
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x330]
call fcn.140003200
nop
lea r8, [rsp + 0x330]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xc8]
call fcn.140034530
mov r12, qword [rsp + 0x130]
mov qword [rsp + 0xf8], r12
mov rbx, qword [rsp + 0x138]
mov qword [rsp + 0x100], rbx
cmp qword [rsp + 0x348], 8
jb 0x14002bb97
mov rcx, qword [rsp + 0x330]
call fcn.14005605c
cmp r12, rbx
je 0x14002bf27
mov qword [rsp + 0x190], 7
mov qword [rsp + 0x188], r14
mov word [rsp + 0x178], r14w
lea rdx, [r12 + 0x40]
mov r9, r15
xor r8d, r8d
lea rcx, [rsp + 0x178]
call fcn.140003010
nop
mov r8, qword [rsp + 0xa8]
mov rdi, r8
cmp r8, r13
je 0x14002bcb1
nop word [rax + rax]
mov qword [rsp + 0x1b8], 7
mov qword [rsp + 0x1b0], r14
mov word [rsp + 0x1a0], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x1a0]
call fcn.140003010
lea rdx, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 8
cmovae rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x178]
cmp qword [rsp + 0x190], 8
cmovae rcx, qword [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002bc88
cmp qword [rsp + 0x1b8], 8
jb 0x14002bc79
mov rcx, qword [rsp + 0x1a0]
call fcn.14005605c
add rdi, 0x28
cmp rdi, r13
jne 0x14002bbf0
jmp 0x14002bca9
cmp qword [rsp + 0x1b8], 8
jb 0x14002bca0
mov rcx, qword [rsp + 0x1a0]
call fcn.14005605c
cmp rdi, r13
jne 0x14002bea2
mov r8, qword [rsp + 0xa8]
lea rax, [rsp + 0x178]
cmp rax, r13
jae 0x14002bdf1
lea rax, [rsp + 0x178]
cmp r8, rax
ja 0x14002bdf1
lea rcx, [rsp + 0x178]
sub rcx, r8
movabs r10, 0x6666666666666667
mov rax, r10
imul rcx
mov r15, rdx
sar r15, 4
mov rax, r15
shr rax, 0x3f
add r15, rax
mov r9, qword [rsp + 0xb8]
cmp r13, r9
jne 0x14002bdae
mov rcx, r13
sub rcx, r8
mov rax, r10
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
movabs rax, 0x666666666666665
cmp rdi, rax
jbe 0x14002bd48
lea rcx, str.vector_T__too_long
call fcn.1401b4174
inc rdi
mov rcx, r9
sub rcx, r8
mov rax, r10
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jbe 0x14002bdae
mov rcx, rdx
shr rcx, 1
movabs rax, 0x666666666666666
sub rax, rcx
cmp rax, rdx
jae 0x14002bd87
mov rdx, r14
jmp 0x14002bd8a
add rdx, rcx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0xa8]
call fcn.1400034e0
mov r13, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
lea rax, [r15 + r15*4]
lea rdx, [r8 + rax*8]
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r13
or r15, 0xffffffffffffffff
test r13, r13
je 0x14002bdef
mov qword [r13 + 0x18], 7
mov qword [r13 + 0x10], r14
mov word [r13], r14w
mov r9, r15
xor r8d, r8d
mov rcx, r13
call fcn.140003010
nop
jmp 0x14002be4d
cmp r13, qword [rsp + 0xb8]
jne 0x14002be10
lea rcx, [rsp + 0xa8]
call fcn.140003140
mov r13, qword [rsp + 0xb0]
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r13
test r13, r13
je 0x14002be4d
mov qword [r13 + 0x18], 7
mov qword [r13 + 0x10], r14
mov word [r13], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x178]
mov rcx, r13
call fcn.140003010
nop
add r13, 0x28
mov qword [rsp + 0xb0], r13
jmp 0x14002bea2
cmp qword [rsp + 0x190], 8
jb 0x14002beba
mov rcx, qword [rsp + 0x178]
call fcn.14005605c
cmp byte [r12 + 0x69], 0
jne 0x14002bb97
mov rax, qword [r12 + 0x10]
cmp byte [rax + 0x69], 0
jne 0x14002bef9
mov r12, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
jne 0x14002beec
nop dword [rax]
mov r12, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
je 0x14002bee0
mov qword [rsp + 0xf8], r12
jmp 0x14002bb97
mov rax, qword [r12 + 8]
cmp byte [rax + 0x69], 0
jne 0x14002bf17
cmp r12, qword [rax + 0x10]
jne 0x14002bf17
mov r12, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], 0
je 0x14002bf04
mov r12, rax
mov qword [rsp + 0xf8], rax
jmp 0x14002bb97
mov rax, qword [rsp + 0xa8]
mov rbx, rax
mov r12, qword [rsp + 0x68]
cmp rax, r13
je 0x14002c0b1
mov qword [rsp + 0x2a8], 7
mov qword [rsp + 0x2a0], r14
mov word [rsp + 0x290], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x290]
call fcn.140003010
nop
mov rdi, qword [r12]
cmp rdi, qword [r12 + 8]
je 0x14002c08c
mov qword [rsp + 0x1e0], 7
mov qword [rsp + 0x1d8], r14
mov word [rsp + 0x1c8], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x1c8]
call fcn.140003010
nop
lea rdx, [rsp + 0x1c8]
cmp qword [rsp + 0x1e0], 8
cmovae rdx, qword [rsp + 0x1c8]
lea rcx, [rsp + 0x290]
cmp qword [rsp + 0x2a8], 8
cmovae rcx, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002c01e
cmp qword [rsp + 0x1e0], 8
jb 0x14002c00d
mov rcx, qword [rsp + 0x1c8]
call fcn.14005605c
add rdi, 0x28
cmp rdi, qword [r12 + 8]
jne 0x14002bf83
jmp 0x14002c08c
lea rcx, [rdi + 0x28]
mov r8, rdi
mov rdx, qword [r12 + 8]
call fcn.14000d430
mov r12, qword [r12 + 8]
lea rdi, [r12 - 0x28]
cmp rdi, r12
je 0x14002c068
nop
cmp qword [rdi + 0x18], 8
jb 0x14002c04f
mov rcx, qword [rdi]
call fcn.14005605c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
add rdi, 0x28
cmp rdi, r12
jne 0x14002c040
mov r12, qword [rsp + 0x68]
add qword [r12 + 8], 0xffffffffffffffd8
cmp qword [rsp + 0x1e0], 8
jb 0x14002c08c
mov rcx, qword [rsp + 0x1c8]
call fcn.14005605c
nop
cmp qword [rsp + 0x2a8], 8
jb 0x14002c0a4
mov rcx, qword [rsp + 0x290]
call fcn.14005605c
add rbx, 0x28
cmp rbx, r13
jne 0x14002bf40
cmp qword [rsp + 0x2d0], 8
jb 0x14002c0c9
mov rcx, qword [rsp + 0x2b8]
call fcn.14005605c
add rsi, 0x28
jmp 0x14002ba83
sub r13, qword [rsp + 0xa8]
movabs rax, 0x6666666666666667
imul r13
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x14002c115
cmp dword [rsp + 0x70], 1
jne 0x14002c115
mov edi, r14d
jmp 0x14002c119
cmp dword [rsp + 0x70], 1
cmove r15d, r14d
mov dword [rsp + 0x60], r15d
or r15, 0xffffffffffffffff
mov edi, dword [rsp + 0x60]
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x14002c2f0
movsxd rsi, edi
cmp dword [rsp + 0x4c], 0
je 0x14002c2e1
nop word [rax + rax]
lea r9, [rsp + 0x38c]
lea r8, [rsp + 0x7c0]
lea rdx, str._s_s
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp rsi, 1
jne 0x14002c2a8
lea r9, [rsp + 0x38c]
lea r8, [rsp + 0x9d0]
lea rdx, str._s3_s
lea rcx, [rsp + 0xbe0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0xbe0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002c1e6
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002c2c4
mov dword [rsp + 0x48], r14d
jmp 0x14002c2c4
mov rdi, qword [r12]
cmp rdi, qword [r12 + 8]
je 0x14002c2c4
mov ebx, dword [rsp + 0x48]
nop dword [rax]
mov qword [rsp + 0x2f8], 7
mov qword [rsp + 0x2f0], r14
mov word [rsp + 0x2e0], r14w
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x2e0]
call fcn.140003010
lea rcx, [rsp + 0x2e0]
cmp qword [rsp + 0x2f8], 8
cmovae rcx, qword [rsp + 0x2e0]
lea rdx, [rsp + 0x38c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002c273
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove ebx, r14d
cmp qword [rsp + 0x2f8], 8
jb 0x14002c28b
mov rcx, qword [rsp + 0x2e0]
call fcn.14005605c
add rdi, 0x28
cmp rdi, qword [r12 + 8]
jne 0x14002c200
mov dword [rsp + 0x48], ebx
mov rbx, qword [rsp + 0x88]
jmp 0x14002c2c4
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [rsp + 0x48]
test eax, eax
cmove edi, r14d
mov dword [rsp + 0x48], edi
lea rdx, [rsp + 0x360]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x4c], eax
test eax, eax
jne 0x14002c160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x48]
jmp 0x14002c2f5
mov edi, 1
lea rcx, [rsp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov r8, qword [rsp + 0xd0]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xc8]
call fcn.140034850
nop
mov rcx, qword [rsp + 0xd0]
call fcn.14005605c
nop
lea rcx, [rsp + 0xa8]
call fcn.140004240
nop
lea rcx, [rsp + 0x110]
call fcn.140004240
mov esi, dword [rsp + 0x4c]
jmp 0x14002c361
mov edi, dword [rsp + 0x48]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x98]
call fcn.140001370
nop
lea rcx, [rsp + 0x98]
call fcn.140001320
mov eax, edi
jmp 0x14002c3df
mov qword [rsp + 0x108], r14
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x150]
call fcn.140198c5c
lea rdx, vtable.std::bad_alloc.0
mov qword [rsp + 0x150], rdx
lea rdx, [0x140265298]
lea rcx, [rsp + 0x150]
call fcn.14019d534
nop
lea rcx, [rsp + 0x98]
call fcn.140001320
xor eax, eax
mov rcx, qword [rsp + 0xdf0]
xor rcx, rsp
call fcn.140198b40
add rsp, 0xe00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret