Function at 0x100291f0
Capabilities:
Delete directory
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100d2312
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x10104610]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x10104610]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], ax
mov dword [esp + 0x368], ebx
push 8
mov dword [esp + 0x14], ebx
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x10029e2b
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [edx], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x368], 3
cmp dword [esi + 0x14], 8
jb 0x100292be
mov eax, dword [esi]
jmp 0x100292c0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10029317
push str.Directory_not_present
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d80
add esp, 4
lea esi, [esp + 0x10]
call fcn.10023740
mov eax, dword [esp + 0x10]
push eax
call fcn.100afa01
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], ebx
jb 0x10029b34
mov ecx, dword [esp + 0xb0]
push ecx
jmp 0x10029b2c
xor edx, edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], dx
push edx
push esi
or eax, 0xffffffff
lea ecx, [esp + 0x80]
mov byte [esp + 0x370], 4
call fcn.10001820
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x14]
call fcn.10023660
lea ecx, [esp + 0x78]
lea edi, [esp + 0x3c]
call fcn.10018110
cmp dword [esp + 0x20], 0
je 0x10029a3c
mov edi, 8
xor ebx, ebx
lea ebx, [ebx]
lea eax, [esp + 0x6c]
lea edx, [esp + 0x10]
call fcn.100a9a40
mov esi, eax
lea eax, [esp + 0x60]
call fcn.10023930
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x100293a2
xor ecx, ecx
jmp 0x100293a4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x100293b0
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
push ebx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x80]
call fcn.10001820
push 0x100d99f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.10019800
add esp, 0xc
push eax
mov edx, 0x100e0538
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 5
call fcn.10002000
add esp, 4
mov esi, eax
lea ecx, [esp + 0xb0]
cmp ecx, esi
je 0x10029492
cmp dword [esp + 0xc4], edi
jb 0x10029428
mov edx, dword [esp + 0xb0]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], ax
cmp dword [esi + 0x14], edi
jae 0x10029464
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0xb4]
push esi
push edx
call fcn.100afbb0
add esp, 0xc
jmp 0x1002946f
mov eax, dword [esi]
mov dword [esp + 0xb0], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0xc0], ecx
mov edx, dword [esi + 0x14]
mov dword [esp + 0xc4], edx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
cmp dword [esp + 0xa8], edi
jb 0x100294ab
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov byte [esp + 0x368], 4
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
cmp dword [esp + 0xe0], edi
jb 0x100294e8
mov eax, dword [esp + 0xcc]
push eax
call fcn.100afa01
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10029532
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
ja 0x10029502
sub eax, ecx
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], edi
jb 0x10029519
mov eax, dword [esi]
push eax
call fcn.100afa01
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
dec dword [esp + 0x20]
jne 0x10029532
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0xc4], edi
jae 0x10029549
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x4c], esi
cmp esi, 0xffffffff
je 0x10029a90
jmp 0x10029570
mov ecx, 0x100e053c
lea eax, [esp + 0x130]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100295a6
cmp dx, bx
je 0x100295a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100295a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10029580
xor eax, eax
jmp 0x100295ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10029885
mov ecx, 0x100e0540
lea eax, [esp + 0x130]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100295e6
cmp dx, bx
je 0x100295e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100295e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x100295c0
xor eax, eax
jmp 0x100295eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10029885
test byte [esp + 0x104], 0x10
je 0x1002989c
push 0x100d99f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xf0]
push eax
call fcn.10019800
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 7
call fcn.10002000
add esp, 4
mov edi, eax
mov byte [esp + 0x368], 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ecx
cmp eax, ecx
ja 0x1002965f
lea edx, [esp + 0x10]
push edx
call fcn.100237e0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
add esi, dword [esp + 0x1c]
cmp eax, esi
ja 0x1002966d
sub esi, eax
mov eax, dword [esp + 0x14]
cmp dword [eax + esi*4], ebx
jne 0x1002968f
push 0x1c
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x10029a61
mov ecx, dword [esp + 0x14]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x14]
mov esi, dword [edx + esi*4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], esi
mov byte [esp + 0x368], 9
cmp esi, ebx
je 0x100296be
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.10002070
inc dword [esp + 0x20]
cmp dword [esp + 0xa8], 8
jb 0x100296dc
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov byte [esp + 0x368], 4
cmp dword [esp + 0xfc], 8
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
jb 0x1002971a
mov eax, dword [esp + 0xe8]
push eax
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xf0]
push edx
call fcn.10019800
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 0xa
call fcn.10002000
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
mov byte [esp + 0x36c], 0xb
call fcn.10004e90
mov esi, 8
cmp dword [esp + 0xa8], esi
jb 0x10029785
mov edx, dword [esp + 0x94]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov edi, 7
mov byte [esp + 0x368], 4
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
cmp dword [esp + 0xfc], esi
jb 0x100297c3
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.10019800
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0xd0]
mov byte [esp + 0x36c], 0xc
call fcn.10002000
add esp, 4
mov byte [esp + 0x368], 0xe
cmp dword [esp + 0xa8], esi
jb 0x1002981d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100afa01
add esp, 4
mov eax, dword [esp + 0xcc]
xor edx, edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
cmp dword [esp + 0xe0], esi
jae 0x1002984c
lea eax, [esp + 0xcc]
push eax
push str.Directory_to_delete:_ls
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d20
add esp, 8
mov byte [esp + 0x368], 4
cmp dword [esp + 0xe0], esi
jb 0x10029885
mov eax, dword [esp + 0xcc]
push eax
call fcn.100afa01
add esp, 4
test byte [esp + 0x104], 0x10
mov esi, dword [esp + 0x4c]
mov edi, 8
jne 0x10029a05
push 0x100d99f4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xf0]
push edx
call fcn.10019800
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0xd0]
mov byte [esp + 0x36c], 0xf
call fcn.10002000
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov byte [esp + 0x36c], 0x10
call fcn.10004e90
cmp dword [esp + 0xe0], edi
jb 0x10029902
mov edx, dword [esp + 0xcc]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov byte [esp + 0x368], 4
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], ax
cmp dword [esp + 0xfc], edi
jb 0x1002993f
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.100afa01
add esp, 4
push 0x100d99f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.10019800
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 0x11
call fcn.10002000
add esp, 4
mov byte [esp + 0x368], 0x13
cmp dword [esp + 0xe0], edi
jb 0x10029999
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.100afa01
add esp, 4
mov eax, dword [esp + 0x94]
xor edx, edx
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], dx
cmp dword [esp + 0xa8], edi
jae 0x100299cc
lea eax, [esp + 0x94]
push eax
push str.File_to_delete:_ls
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d20
add esp, 8
mov byte [esp + 0x368], 4
cmp dword [esp + 0xa8], edi
jb 0x10029a05
mov eax, dword [esp + 0x94]
push eax
call fcn.100afa01
add esp, 4
lea ecx, [esp + 0x104]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10029570
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x10029a8a
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x20], ebx
jne 0x10029380
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x10029b6e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x10029b5a
mov eax, dword [esi]
jmp 0x10029b5c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.100afab4
push 0x100fc728
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.std::bad_alloc.0
call fcn.100b2edf
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x8c], edi
jb 0x10029aa6
mov edx, dword [esp + 0x78]
push edx
call fcn.100afa01
add esp, 4
mov esi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
cmp esi, ebx
je 0x10029ae0
mov edi, dword [esp + 0x40]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
mov edi, 8
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x10029b01
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
mov edi, 8
lea esi, [esp + 0x10]
call fcn.10023740
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100afa01
add esp, 4
cmp dword [esp + 0xc4], edi
mov dword [esp + 0x10], ebx
jb 0x10029b34
mov edx, dword [esp + 0xb0]
push edx
call fcn.100afa01
add esp, 4
xor al, al
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
mov eax, esi
push eax
call edi
test eax, eax
je 0x10029ba1
add esi, 0x1c
cmp esi, ebx
jne 0x10029a50
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push ecx
push ebx
mov ecx, edi
call fcn.100239d0
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x10029c81
cmp dword [esi + 0x14], 8
jb 0x10029c65
mov eax, dword [esi]
jmp 0x10029c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_file:_d_n
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d80
add esp, 8
cmp dword [esp + 0x8c], 8
jb 0x10029bd6
mov eax, dword [esp + 0x78]
push eax
call fcn.100afa01
add esp, 4
mov esi, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], cx
test esi, esi
je 0x10029c0f
mov edi, dword [esp + 0x40]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x10029c2c
mov esi, dword [esp + 0x2c]
mov edi, ebx
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
lea esi, [esp + 0x10]
call fcn.10023740
mov edx, dword [esp + 0x10]
push edx
call fcn.100afa01
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jb 0x10029b34
mov eax, dword [esp + 0xb0]
push eax
jmp 0x10029b2c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x10029d7e
add esi, 0x1c
cmp esi, edi
jne 0x10029b90
cmp dword [esp + 0x8c], 8
jb 0x10029c98
mov eax, dword [esp + 0x78]
push eax
call fcn.100afa01
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], cx
test ebx, ebx
je 0x10029cf4
mov esi, ebx
cmp ebx, edi
je 0x10029ceb
nop
cmp dword [esi + 0x14], 8
jb 0x10029cd1
mov edx, dword [esi]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x10029cc0
push ebx
call fcn.100afa01
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x10029d3f
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
je 0x10029d32
cmp dword [esi + 0x14], 8
jb 0x10029d16
mov ecx, dword [esi]
push ecx
call fcn.100afa01
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x30]
jne 0x10029d05
mov eax, dword [esp + 0x2c]
push eax
call fcn.100afa01
add esp, 4
lea esi, [esp + 0x10]
call fcn.10023740
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100afa01
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jb 0x10029d77
mov edx, dword [esp + 0xb0]
push edx
call fcn.100afa01
add esp, 4
mov al, 1
jmp 0x10029b36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_directory:_d_n
call fcn.10006700
mov ecx, str.Utilities
call fcn.10006d80
add esp, 8
cmp dword [esp + 0x8c], 8
jb 0x10029db3
mov edx, dword [esp + 0x78]
push edx
call fcn.100afa01
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
test ebx, ebx
je 0x10029de4
mov eax, ebx
call fcn.10005e80
push ebx
call fcn.100afa01
add esp, 4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10029e00
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.10005e80
push esi
call fcn.100afa01
add esp, 4
lea esi, [esp + 0x10]
call fcn.10023740
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100afa01
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jmp 0x10029b22
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.100afab4
push 0x100fc728
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.std::bad_alloc.0
call fcn.100b2edf
int3