Function at 0x100226e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d23f1
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x10104610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov edi, 8
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x308], ebx
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x10022eb2
mov dword [ebp - 0x308], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x308]
lea ecx, [ebp - 0x308]
mov dword [edx], ecx
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], ebx
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x100227a7
mov eax, dword [esi]
jmp 0x100227a9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100227f7
push str.Directory_not_present
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006d80
add esp, 4
lea esi, [ebp - 0x308]
call fcn.10023740
mov eax, dword [ebp - 0x308]
push eax
call fcn.100afa01
add esp, 4
cmp dword [ebp - 0x50], edi
mov dword [ebp - 0x308], 0
jmp 0x1002312c
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
push edx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10001820
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x308]
call fcn.10023660
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0x330]
call fcn.10018110
cmp dword [ebp - 0x2f8], 0
je 0x10022dec
jmp 0x10022850
mov ebx, 8
lea eax, [ebp - 0x34c]
lea edx, [ebp - 0x308]
lea edi, [ebx - 1]
call fcn.100a9a40
mov esi, eax
lea eax, [ebp - 0x358]
call fcn.10023930
mov ecx, dword [eax]
test ecx, ecx
je 0x1002287e
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x1002288a
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
push 0
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10001820
push 0x100d99f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.10019800
add esp, 0xc
push eax
mov edx, 0x100e0538
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.10002000
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x64]
cmp ecx, esi
je 0x10022934
cmp dword [ebp - 0x50], ebx
jb 0x100228e2
mov edx, dword [ebp - 0x64]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
cmp dword [esi + 0x14], ebx
jae 0x1002290e
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x64]
push esi
push edx
call fcn.100afbb0
add esp, 0xc
jmp 0x10022919
mov eax, dword [esi]
mov dword [ebp - 0x64], eax
mov dword [esi], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x54], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x50], edx
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x18], ebx
jb 0x10022945
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x6c], ebx
jb 0x1002296a
mov eax, dword [ebp - 0x80]
push eax
call fcn.100afa01
add esp, 4
mov eax, dword [ebp - 0x2f8]
test eax, eax
je 0x100229be
mov ecx, dword [ebp - 0x2fc]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 0x300]
cmp ecx, eax
ja 0x1002298a
sub eax, ecx
mov edx, dword [ebp - 0x304]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], ebx
jb 0x100229a3
mov eax, dword [esi]
push eax
call fcn.100afa01
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
mov word [esi], cx
dec dword [ebp - 0x2f8]
jne 0x100229be
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x100229c9
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x2f0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
je 0x10022e15
jmp 0x100229f0
mov ecx, 0x100e053c
lea eax, [ebp - 0x2c4]
jmp 0x10022a00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022a26
test dx, dx
je 0x10022a22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022a26
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022a00
xor eax, eax
jmp 0x10022a2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10022c8c
mov ecx, 0x100e0540
lea eax, [ebp - 0x2c4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022a66
test dx, dx
je 0x10022a62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022a66
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022a40
xor eax, eax
jmp 0x10022a6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10022c8c
test byte [ebp - 0x2f0], 0x10
je 0x10022c99
push 0x100d99f4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.10019800
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.10002000
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x300]
inc edx
cmp eax, edx
ja 0x10022ad7
lea eax, [ebp - 0x308]
push eax
call fcn.100237e0
mov eax, dword [ebp - 0x300]
mov esi, dword [ebp - 0x2fc]
add esi, dword [ebp - 0x2f8]
cmp eax, esi
ja 0x10022ae9
sub esi, eax
mov eax, dword [ebp - 0x304]
xor ebx, ebx
cmp dword [eax + esi*4], ebx
jne 0x10022b11
push 0x1c
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x10022eb2
mov ecx, dword [ebp - 0x304]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x304]
mov esi, dword [edx + esi*4]
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x334], esi
mov byte [ebp - 4], 9
cmp esi, ebx
je 0x10022b42
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.10002070
inc dword [ebp - 0x2f8]
cmp dword [ebp - 0x18], 8
jb 0x10022b5a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
jb 0x10022b86
mov eax, dword [ebp - 0x9c]
push eax
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.10019800
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.10002000
add esp, 4
lea ecx, [ebp - 0x330]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.10004e90
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10022bdc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov edi, 7
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x88], esi
jb 0x10022c08
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.10019800
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.10002000
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x18], esi
jb 0x10022c48
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100afa01
add esp, 4
mov eax, dword [ebp - 0x80]
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x6c], esi
jae 0x10022c5f
lea eax, [ebp - 0x80]
push eax
push str.Directory_to_delete:_ls
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006d20
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x6c], esi
jb 0x10022c8c
mov eax, dword [ebp - 0x80]
push eax
call fcn.100afa01
add esp, 4
test byte [ebp - 0x2f0], 0x10
jne 0x10022da1
push 0x100d99f4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.10019800
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.10002000
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.10004e90
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x10022cef
mov edx, dword [ebp - 0x80]
push edx
call fcn.100afa01
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov byte [ebp - 4], 4
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x88], esi
jb 0x10022d1d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.10019800
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.10002000
add esp, 4
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x6c], esi
jb 0x10022d5d
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100afa01
add esp, 4
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], esi
jae 0x10022d74
lea eax, [ebp - 0x2c]
push eax
push str.File_to_delete:_ls
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006d20
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], esi
jb 0x10022da1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100afa01
add esp, 4
mov edx, dword [ebp - 0x310]
lea ecx, [ebp - 0x2f0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100229f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10022ee5
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2f8], 0
jne 0x10022850
mov ebx, dword [ebp - 0x320]
mov esi, ebx
cmp ebx, dword [ebp - 0x31c]
je 0x10022fe0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x10022f99
mov eax, dword [esi]
jmp 0x10022f9b
cmp dword [ebp - 0x34], ebx
jb 0x10022e26
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100afa01
add esp, 4
mov esi, dword [ebp - 0x330]
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
test esi, esi
je 0x10022e56
mov edi, dword [ebp - 0x32c]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x10022e76
mov edi, dword [ebp - 0x31c]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
lea esi, [ebp - 0x308]
call fcn.10023740
mov eax, dword [ebp - 0x308]
push eax
call fcn.100afa01
add esp, 4
mov dword [ebp - 0x308], 0
cmp dword [ebp - 0x50], ebx
jb 0x10022eab
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100afa01
add esp, 4
xor al, al
jmp 0x1002313c
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x30c], ebx
call fcn.100afab4
push 0x100fc728
lea eax, [ebp - 0x340]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.100b2edf
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x10022f04
mov edx, dword [ebp - 0x48]
push edx
call fcn.100afa01
add esp, 4
mov esi, dword [ebp - 0x330]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test esi, esi
je 0x10022f38
mov edi, dword [ebp - 0x32c]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x10022f58
mov edi, dword [ebp - 0x31c]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
lea esi, [ebp - 0x308]
call fcn.10023740
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.100afa01
add esp, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x308], 0
jb 0x10022eab
mov edx, dword [ebp - 0x64]
push edx
call fcn.100afa01
add esp, 4
xor al, al
jmp 0x1002313c
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x10022fd1
cmp dword [esi + 0x14], edi
jb 0x10022fab
mov edi, dword [esi]
jmp 0x10022fad
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_to_remove_file:_ls_error:_d_n
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006db0
add esp, 0xc
mov edi, 8
add esi, 0x1c
cmp esi, dword [ebp - 0x31c]
jne 0x10022e05
mov eax, dword [ebp - 0x334]
mov esi, dword [ebp - 0x330]
mov ebx, dword [ebp - 0x32c]
push eax
push esi
mov ecx, ebx
call fcn.100239d0
add esp, 8
mov edi, 8
cmp esi, ebx
je 0x10023053
cmp dword [esi + 0x14], edi
jb 0x10023010
mov eax, dword [esi]
jmp 0x10023012
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1002304c
cmp dword [esi + 0x14], edi
jb 0x10023026
mov edi, dword [esi]
jmp 0x10023028
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_to_remove_directory:_ls_error:_d_n
call fcn.10006700
mov ecx, 0x100d9d14
call fcn.10006db0
add esp, 0xc
mov edi, 8
add esi, 0x1c
cmp esi, ebx
jne 0x10023007
cmp dword [ebp - 0x34], edi
jb 0x10023064
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100afa01
add esp, 4
mov esi, dword [ebp - 0x330]
xor edi, edi
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
cmp esi, edi
je 0x100230ba
cmp esi, ebx
je 0x100230ab
cmp dword [esi + 0x14], 8
jb 0x10023095
mov eax, dword [esi]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
add esi, 0x1c
cmp esi, ebx
jne 0x10023084
mov edx, dword [ebp - 0x330]
push edx
call fcn.100afa01
add esp, 4
cmp dword [ebp - 0x320], edi
je 0x10023108
mov esi, dword [ebp - 0x320]
mov ebx, dword [ebp - 0x31c]
cmp esi, ebx
je 0x100230f9
cmp dword [esi + 0x14], 8
jb 0x100230e3
mov eax, dword [esi]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
add esi, 0x1c
cmp esi, ebx
jne 0x100230d2
mov edx, dword [ebp - 0x320]
push edx
call fcn.100afa01
add esp, 4
lea esi, [ebp - 0x308]
call fcn.10023740
mov eax, dword [ebp - 0x308]
push eax
call fcn.100afa01
add esp, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x308], edi
jb 0x1002313a
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100afa01
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret