Function at 0x1002b140
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 0x100d5ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x10109610]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x10109610]
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.100b33f2
add esp, 4
cmp eax, ebx
je 0x1002bd7b
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 0x1002b20e
mov eax, dword [esi]
jmp 0x1002b210
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1002b267
push str.Directory_not_present
call fcn.10006760
mov ecx, str.Utilities
call fcn.10006de0
add esp, 4
lea esi, [esp + 0x10]
call fcn.100253c0
mov eax, dword [esp + 0x10]
push eax
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], ebx
jb 0x1002ba84
mov ecx, dword [esp + 0xb0]
push ecx
jmp 0x1002ba7c
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.100017f0
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x14]
call fcn.100252e0
lea ecx, [esp + 0x78]
lea edi, [esp + 0x3c]
call fcn.100199c0
cmp dword [esp + 0x20], 0
je 0x1002b98c
mov edi, 8
xor ebx, ebx
lea ebx, [ebx]
lea eax, [esp + 0x6c]
lea edx, [esp + 0x10]
call fcn.100acf30
mov esi, eax
lea eax, [esp + 0x60]
call fcn.100255b0
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x1002b2f2
xor ecx, ecx
jmp 0x1002b2f4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x1002b300
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.100017f0
push 0x100dc9f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.1001b600
add esp, 0xc
push eax
mov edx, 0x100e3f60
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 5
call fcn.10001fd0
add esp, 4
mov esi, eax
lea ecx, [esp + 0xb0]
cmp ecx, esi
je 0x1002b3e2
cmp dword [esp + 0xc4], edi
jb 0x1002b378
mov edx, dword [esp + 0xb0]
push edx
call fcn.100b2e51
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 0x1002b3b4
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0xb4]
push esi
push edx
call fcn.100b3000
add esp, 0xc
jmp 0x1002b3bf
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 0x1002b3fb
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100b2e51
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 0x1002b438
mov eax, dword [esp + 0xcc]
push eax
call fcn.100b2e51
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1002b482
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
ja 0x1002b452
sub eax, ecx
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], edi
jb 0x1002b469
mov eax, dword [esi]
push eax
call fcn.100b2e51
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 0x1002b482
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0xc4], edi
jae 0x1002b499
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 0x1002b9e0
jmp 0x1002b4c0
mov ecx, 0x100e3f64
lea eax, [esp + 0x130]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002b4f6
cmp dx, bx
je 0x1002b4f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002b4f6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1002b4d0
xor eax, eax
jmp 0x1002b4fb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1002b7d5
mov ecx, 0x100e3f68
lea eax, [esp + 0x130]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002b536
cmp dx, bx
je 0x1002b532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002b536
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1002b510
xor eax, eax
jmp 0x1002b53b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1002b7d5
test byte [esp + 0x104], 0x10
je 0x1002b7ec
push 0x100dc9f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xf0]
push eax
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 7
call fcn.10001fd0
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 0x1002b5af
lea edx, [esp + 0x10]
push edx
call fcn.10025460
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
add esi, dword [esp + 0x1c]
cmp eax, esi
ja 0x1002b5bd
sub esi, eax
mov eax, dword [esp + 0x14]
cmp dword [eax + esi*4], ebx
jne 0x1002b5df
push 0x1c
call fcn.100b33f2
add esp, 4
cmp eax, ebx
je 0x1002b9b1
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 0x1002b60e
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.10002040
inc dword [esp + 0x20]
cmp dword [esp + 0xa8], 8
jb 0x1002b62c
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100b2e51
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 0x1002b66a
mov eax, dword [esp + 0xe8]
push eax
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xf0]
push edx
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 0xa
call fcn.10001fd0
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
mov byte [esp + 0x36c], 0xb
call fcn.10004e10
mov esi, 8
cmp dword [esp + 0xa8], esi
jb 0x1002b6d5
mov edx, dword [esp + 0x94]
push edx
call fcn.100b2e51
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 0x1002b713
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0xd0]
mov byte [esp + 0x36c], 0xc
call fcn.10001fd0
add esp, 4
mov byte [esp + 0x368], 0xe
cmp dword [esp + 0xa8], esi
jb 0x1002b76d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.100b2e51
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 0x1002b79c
lea eax, [esp + 0xcc]
push eax
push str.Directory_to_delete:_ls
call fcn.10006760
mov ecx, str.Utilities
call fcn.10006d80
add esp, 8
mov byte [esp + 0x368], 4
cmp dword [esp + 0xe0], esi
jb 0x1002b7d5
mov eax, dword [esp + 0xcc]
push eax
call fcn.100b2e51
add esp, 4
test byte [esp + 0x104], 0x10
mov esi, dword [esp + 0x4c]
mov edi, 8
jne 0x1002b955
push 0x100dc9f4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xf0]
push edx
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0xd0]
mov byte [esp + 0x36c], 0xf
call fcn.10001fd0
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov byte [esp + 0x36c], 0x10
call fcn.10004e10
cmp dword [esp + 0xe0], edi
jb 0x1002b852
mov edx, dword [esp + 0xcc]
push edx
call fcn.100b2e51
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 0x1002b88f
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [esp + 0x134]
lea eax, [esp + 0x98]
mov byte [esp + 0x36c], 0x11
call fcn.10001fd0
add esp, 4
mov byte [esp + 0x368], 0x13
cmp dword [esp + 0xe0], edi
jb 0x1002b8e9
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.100b2e51
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 0x1002b91c
lea eax, [esp + 0x94]
push eax
push str.File_to_delete:_ls
call fcn.10006760
mov ecx, str.Utilities
call fcn.10006d80
add esp, 8
mov byte [esp + 0x368], 4
cmp dword [esp + 0xa8], edi
jb 0x1002b955
mov eax, dword [esp + 0x94]
push eax
call fcn.100b2e51
add esp, 4
lea ecx, [esp + 0x104]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002b4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x1002b9da
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x20], ebx
jne 0x1002b2d0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x1002babe
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x1002baaa
mov eax, dword [esi]
jmp 0x1002baac
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.100b2f04
push 0x10100900
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.std::bad_alloc.0
call fcn.100b6335
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x8c], edi
jb 0x1002b9f6
mov edx, dword [esp + 0x78]
push edx
call fcn.100b2e51
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 0x1002ba30
mov edi, dword [esp + 0x40]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
mov edi, 8
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x1002ba51
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
mov edi, 8
lea esi, [esp + 0x10]
call fcn.100253c0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0xc4], edi
mov dword [esp + 0x10], ebx
jb 0x1002ba84
mov edx, dword [esp + 0xb0]
push edx
call fcn.100b2e51
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.100b2e5c
mov esp, ebp
pop ebp
ret
mov eax, esi
push eax
call edi
test eax, eax
je 0x1002baf1
add esi, 0x1c
cmp esi, ebx
jne 0x1002b9a0
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push ecx
push ebx
mov ecx, edi
call fcn.100255f0
add esp, 8
mov esi, ebx
cmp ebx, edi
je 0x1002bbd1
cmp dword [esi + 0x14], 8
jb 0x1002bbb5
mov eax, dword [esi]
jmp 0x1002bbb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_file:_d_n
call fcn.10006760
mov ecx, str.Utilities
call fcn.10006de0
add esp, 8
cmp dword [esp + 0x8c], 8
jb 0x1002bb26
mov eax, dword [esp + 0x78]
push eax
call fcn.100b2e51
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 0x1002bb5f
mov edi, dword [esp + 0x40]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x1002bb7c
mov esi, dword [esp + 0x2c]
mov edi, ebx
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
lea esi, [esp + 0x10]
call fcn.100253c0
mov edx, dword [esp + 0x10]
push edx
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jb 0x1002ba84
mov eax, dword [esp + 0xb0]
push eax
jmp 0x1002ba7c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1002bcce
add esi, 0x1c
cmp esi, edi
jne 0x1002bae0
cmp dword [esp + 0x8c], 8
jb 0x1002bbe8
mov eax, dword [esp + 0x78]
push eax
call fcn.100b2e51
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 0x1002bc44
mov esi, ebx
cmp ebx, edi
je 0x1002bc3b
nop
cmp dword [esi + 0x14], 8
jb 0x1002bc21
mov edx, dword [esi]
push edx
call fcn.100b2e51
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 0x1002bc10
push ebx
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x1002bc8f
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
je 0x1002bc82
cmp dword [esi + 0x14], 8
jb 0x1002bc66
mov ecx, dword [esi]
push ecx
call fcn.100b2e51
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 0x1002bc55
mov eax, dword [esp + 0x2c]
push eax
call fcn.100b2e51
add esp, 4
lea esi, [esp + 0x10]
call fcn.100253c0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jb 0x1002bcc7
mov edx, dword [esp + 0xb0]
push edx
call fcn.100b2e51
add esp, 4
mov al, 1
jmp 0x1002ba86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_remove_directory:_d_n
call fcn.10006760
mov ecx, str.Utilities
call fcn.10006de0
add esp, 8
cmp dword [esp + 0x8c], 8
jb 0x1002bd03
mov edx, dword [esp + 0x78]
push edx
call fcn.100b2e51
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 0x1002bd34
mov eax, ebx
call fcn.10005e00
push ebx
call fcn.100b2e51
add esp, 4
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1002bd50
mov edi, dword [esp + 0x30]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
lea esi, [esp + 0x10]
call fcn.100253c0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100b2e51
add esp, 4
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x10], 0
jmp 0x1002ba72
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.100b2f04
push 0x10100900
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.std::bad_alloc.0
call fcn.100b6335
int3