Function at 0x140020ed0
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 + 0x170], 0xfffffffffffffffe
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0xdf0], rax
mov rbx, r9
mov esi, r8d
mov r15, rdx
mov qword [rsp + 0x58], rdx
mov rdi, rcx
mov qword [rsp + 0x78], rdx
mov r12, qword [rsp + 0xe60]
mov qword [rsp + 0x68], r12
xor r8d, r8d
lea rdx, str.DeviceIDFolderDeleteCheck
lea rcx, [rsp + 0x90]
call fcn.14000b870
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 + 0x90]
call fcn.14000ba50
xor r14d, r14d
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x50], r14d
mov eax, 1
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x70], eax
call fcn.14000cc50
cmp eax, 6
je 0x140020fb3
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r14 + 2]
lea rcx, [rsp + 0x90]
call fcn.14000ba50
nop
jmp 0x14002233d
test esi, esi
jne 0x1400217a0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
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 0x140021017
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140021017
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x90]
call fcn.14000ba50
nop
jmp 0x14002233d
mov edx, dword [rsp + 0x54]
add edx, 0x100
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400222ca
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x54]
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 + 0x60], eax
test eax, eax
je 0x140021776
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140021776
mov r13d, r14d
nop
cmp r13d, eax
jae 0x140021762
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 0x140021756
mov rdx, qword [rbx + r12 + 0x78]
lea rcx, [rsp + 0x58]
call fcn.140001110
nop
lea rcx, [rsp + 0x58]
call fcn.140024910
mov rdx, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.14004cde4
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140021101
mov ecx, 0x80004005
call fcn.140001000
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
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14002129d
test rbx, rbx
jne 0x14002113b
mov ecx, r14d
jmp 0x14002114c
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.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x140021177
mov eax, esi
jmp 0x14002117d
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.1400166b0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400211f7
cmp dword [rdi + 0x10], 0
jl 0x1400211e8
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400211e8
call fcn.140001620
mov r15, rax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400211d9
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 0x1400211f7
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400014d0
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002121a
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.140005f00
nop
lea rdx, [rsp + 0x308]
mov rcx, qword [rsp + 0x68]
call fcn.14002cc60
nop
cmp qword [rsp + 0x320], 8
jb 0x140021287
mov rcx, qword [rsp + 0x308]
call fcn.14004cabc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rbx, [rbx + rax*2]
jmp 0x140021120
mov ebx, r13d
imul rbx, rbx, 0x88
mov rdx, qword [rbx + r12 + 0x28]
test rdx, rdx
jne 0x1400212b6
mov ecx, r14d
jmp 0x1400212c7
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.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x1400212ef
mov eax, esi
jmp 0x1400212f5
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.1400166b0
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.140005f00
nop
lea rdx, [rsp + 0x1f0]
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.14002cc60
nop
cmp qword [rsp + 0x208], 8
jb 0x14002137f
mov rcx, qword [rsp + 0x1f0]
call fcn.14004cabc
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], r14
mov word [rsp + 0x1f0], r14w
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400213bf
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 0x1400213ce
mov ecx, r14d
jmp 0x1400213df
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.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x140021407
mov eax, esi
jmp 0x14002140d
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x40]
call fcn.1400166b0
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.140005f00
nop
lea rdx, [rsp + 0x268]
mov rcx, r13
call fcn.14002cc60
nop
cmp qword [rsp + 0x280], 8
jb 0x140021492
mov rcx, qword [rsp + 0x268]
call fcn.14004cabc
mov qword [rsp + 0x280], 7
mov qword [rsp + 0x278], r14
mov word [rsp + 0x268], r14w
mov rdx, qword [rsp + 0x100]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400214d2
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 0x1400214e1
mov ecx, r14d
jmp 0x1400214f2
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.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x14002151a
mov eax, esi
jmp 0x140021520
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.1400166b0
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.140005f00
nop
lea rdx, [rsp + 0x240]
mov rcx, r13
call fcn.14002cc60
nop
cmp qword [rsp + 0x258], 8
jb 0x1400215a5
mov rcx, qword [rsp + 0x240]
call fcn.14004cabc
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 0x1400215e5
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 0x1400215f4
mov ecx, r14d
jmp 0x140021605
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.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
je 0x140021632
sub rax, rdi
mov rsi, rax
sar rsi, 1
inc esi
mov r8d, dword [rdi - 0x10]
sub r8d, esi
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.1400166b0
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.140005f00
nop
lea rdx, [rsp + 0x218]
mov rcx, r13
call fcn.14002cc60
nop
cmp qword [rsp + 0x230], 8
jb 0x1400216b7
mov rcx, qword [rsp + 0x218]
call fcn.14004cabc
mov qword [rsp + 0x230], 7
mov qword [rsp + 0x228], r14
mov word [rsp + 0x218], r14w
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400216f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov esi, dword [rsp + 0x4c]
jmp 0x140021713
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140021734
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
dec r15d
test r15d, r15d
jg 0x140021762
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140021762
inc r13d
mov eax, dword [rsp + 0x50]
jmp 0x140021090
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400222ca
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 + 0x90]
call fcn.14000ba50
nop
jmp 0x14002233d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x5b0]
call fcn.140193010
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x9d0]
call fcn.140193010
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x7c0]
call fcn.140193010
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xbe0]
call fcn.140193010
lea rcx, [rsp + 0x9d0]
call fcn.140016900
mov rbx, qword [rsp + 0x58]
mov r9, rbx
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, [0x140212e40]
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov edi, 1
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x110], r14
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x120], r14
mov qword [rsp + 0xa0], r14
mov r13, r14
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xd0], r14
lea ecx, [rdi + 0x6f]
call fcn.14004ca70
test rax, rax
je 0x1400222fc
mov qword [rsp + 0xc8], rax
mov qword [rax], rax
mov rax, qword [rsp + 0xc8]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rax + 0x10], rax
mov rax, qword [rsp + 0xc8]
mov byte [rax + 0x68], dil
mov rax, qword [rsp + 0xc8]
mov byte [rax + 0x69], dil
mov rdx, qword [rsp + 0xc8]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0xc0]
call fcn.14002d0e0
mov rdx, qword [rsp + 0xc8]
mov qword [rdx + 8], rdx
mov rax, qword [rsp + 0xc8]
mov qword [rax], rax
mov rax, qword [rsp + 0xc8]
mov qword [rax + 0x10], rax
mov qword [rsp + 0xd0], r14
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x110]
call fcn.140023ce0
mov dword [rsp + 0x40], 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 0x140022078
or r15, 0xffffffffffffffff
mov qword [rsp + 0x88], rsi
cmp rsi, qword [rsp + 0x118]
je 0x140022047
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.140005b80
nop
lea rdx, [rsp + 0x2b8]
cmp qword [rsp + 0x2d0], 8
cmovae rdx, qword [rsp + 0x2b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140022026
mov qword [rsp + 0x348], 7
mov qword [rsp + 0x340], r14
mov word [rsp + 0x330], r14w
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x330]
call fcn.140005f00
nop
lea r8, [rsp + 0x330]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xc0]
call fcn.14002ce70
mov r12, qword [rsp + 0x130]
mov qword [rsp + 0xf0], r12
mov rbx, qword [rsp + 0x138]
mov qword [rsp + 0xf8], rbx
cmp qword [rsp + 0x348], 8
jb 0x140021a75
mov rcx, qword [rsp + 0x330]
call fcn.14004cabc
cmp r12, rbx
je 0x140021e97
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.140005b80
nop
mov r8, qword [rsp + 0xa0]
mov rdi, r8
cmp r8, r13
je 0x140021b92
nop dword [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.140005b80
nop
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 0x140021b69
cmp qword [rsp + 0x1b8], 8
jb 0x140021b5a
mov rcx, qword [rsp + 0x1a0]
call fcn.14004cabc
add rdi, 0x28
cmp rdi, r13
jne 0x140021ad0
jmp 0x140021b8a
cmp qword [rsp + 0x1b8], 8
jb 0x140021b81
mov rcx, qword [rsp + 0x1a0]
call fcn.14004cabc
cmp rdi, r13
jne 0x140021e0e
mov r8, qword [rsp + 0xa0]
lea rax, [rsp + 0x178]
cmp rax, r13
jae 0x140021cd5
lea rax, [rsp + 0x178]
cmp r8, rax
ja 0x140021cd5
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 + 0xb0]
cmp r13, r9
jne 0x140021c8f
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 0x140021c29
lea rcx, str.vector_T__too_long
call fcn.1401a97e4
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 0x140021c8f
mov rcx, rdx
shr rcx, 1
movabs rax, 0x666666666666666
sub rax, rcx
cmp rax, rdx
jae 0x140021c68
mov rdx, r14
jmp 0x140021c6b
add rdx, rcx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400091a0
mov r13, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
lea rax, [r15 + r15*4]
lea rdx, [r8 + rax*8]
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r13
or r15, 0xffffffffffffffff
test r13, r13
je 0x140021cd0
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.140005b80
nop
jmp 0x140021dc3
mov r9, qword [rsp + 0xb0]
cmp r13, r9
jne 0x140021d86
mov rcx, r13
sub rcx, r8
movabs r10, 0x6666666666666667
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 0x140021d28
lea rcx, str.vector_T__too_long
call fcn.1401a97e4
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 0x140021d86
mov rcx, rdx
shr rcx, 1
movabs rax, 0x666666666666666
sub rax, rcx
cmp rax, rdx
jae 0x140021d67
mov rdx, r14
jmp 0x140021d6a
add rdx, rcx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400091a0
mov r13, qword [rsp + 0xa8]
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r13
test r13, r13
je 0x140021dc3
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.140005b80
nop
add r13, 0x28
mov qword [rsp + 0xa8], r13
jmp 0x140021e0e
cmp qword [rsp + 0x190], 8
jb 0x140021e26
mov rcx, qword [rsp + 0x178]
call fcn.14004cabc
cmp byte [r12 + 0x69], 0
jne 0x140021a75
mov rax, qword [r12 + 0x10]
cmp byte [rax + 0x69], 0
jne 0x140021e69
mov r12, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
jne 0x140021e5c
nop dword [rax]
mov r12, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
je 0x140021e50
mov qword [rsp + 0xf0], r12
jmp 0x140021a75
mov rax, qword [r12 + 8]
cmp byte [rax + 0x69], 0
jne 0x140021e87
cmp r12, qword [rax + 0x10]
jne 0x140021e87
mov r12, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], 0
je 0x140021e74
mov r12, rax
mov qword [rsp + 0xf0], rax
jmp 0x140021a75
mov rdi, qword [rsp + 0xa0]
mov rbx, rdi
mov r12, qword [rsp + 0x68]
cmp rdi, r13
je 0x140022021
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.140005b80
nop
mov rdi, qword [r12]
cmp rdi, qword [r12 + 8]
je 0x140021ffc
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.140005b80
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 0x140021f8e
cmp qword [rsp + 0x1e0], 8
jb 0x140021f7d
mov rcx, qword [rsp + 0x1c8]
call fcn.14004cabc
add rdi, 0x28
cmp rdi, qword [r12 + 8]
jne 0x140021ef3
jmp 0x140021ffc
lea rcx, [rdi + 0x28]
mov r8, rdi
mov rdx, qword [r12 + 8]
call fcn.1400094a0
mov r12, qword [r12 + 8]
lea rdi, [r12 - 0x28]
cmp rdi, r12
je 0x140021fd8
nop
cmp qword [rdi + 0x18], 8
jb 0x140021fbf
mov rcx, qword [rdi]
call fcn.14004cabc
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
add rdi, 0x28
cmp rdi, r12
jne 0x140021fb0
mov r12, qword [rsp + 0x68]
add qword [r12 + 8], 0xffffffffffffffd8
cmp qword [rsp + 0x1e0], 8
jb 0x140021ffc
mov rcx, qword [rsp + 0x1c8]
call fcn.14004cabc
nop
cmp qword [rsp + 0x2a8], 8
jb 0x140022014
mov rcx, qword [rsp + 0x290]
call fcn.14004cabc
add rbx, 0x28
cmp rbx, r13
jne 0x140021eb0
mov rbx, qword [rsp + 0x58]
cmp qword [rsp + 0x2d0], 8
jb 0x14002203e
mov rcx, qword [rsp + 0x2b8]
call fcn.14004cabc
add rsi, 0x28
jmp 0x14002196b
sub r13, qword [rsp + 0xa0]
movabs rax, 0x6666666666666667
imul r13
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x140022087
cmp dword [rsp + 0x40], 1
jne 0x140022087
mov edi, r14d
jmp 0x14002208e
cmp dword [rsp + 0x40], 1
cmove edi, r14d
or r15, 0xffffffffffffffff
jmp 0x14002208e
mov edi, dword [rsp + 0x80]
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x14002225d
movsxd rsi, edi
cmp dword [rsp + 0x4c], 0
je 0x14002224e
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 0x140022215
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 0x140022156
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140022231
mov dword [rsp + 0x48], r14d
jmp 0x140022231
mov rdi, qword [r12]
cmp rdi, qword [r12 + 8]
je 0x140022231
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.140005b80
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 0x1400221e3
lea rcx, [rsp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove ebx, r14d
cmp qword [rsp + 0x2f8], 8
jb 0x1400221fb
mov rcx, qword [rsp + 0x2e0]
call fcn.14004cabc
add rdi, 0x28
cmp rdi, qword [r12 + 8]
jne 0x140022170
mov dword [rsp + 0x48], ebx
mov rbx, qword [rsp + 0x78]
jmp 0x140022231
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 0x1400220d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x48]
jmp 0x140022262
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 + 0xc8]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0xc0]
call fcn.14002d190
nop
mov rcx, qword [rsp + 0xc8]
call fcn.14004cabc
nop
lea rcx, [rsp + 0xa0]
call fcn.140009120
nop
lea rcx, [rsp + 0x110]
call fcn.140009120
mov esi, dword [rsp + 0x4c]
jmp 0x1400222ce
mov edi, dword [rsp + 0x48]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x90]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x90]
call fcn.14000ba00
mov eax, edi
jmp 0x14002234c
mov qword [rsp + 0x108], r14
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x140]
call fcn.14018eb98
lea rdx, vtable.std::bad_alloc.0
mov qword [rsp + 0x140], rdx
lea rdx, [0x140256b80]
lea rcx, [rsp + 0x140]
call fcn.140192de0
nop
lea rcx, [rsp + 0x90]
call fcn.14000ba00
xor eax, eax
mov rcx, qword [rsp + 0xdf0]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0xe00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret