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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x10109610]
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.100b33f2
add esp, 4
cmp eax, ebx
je 0x10024b32
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 0x10024427
mov eax, dword [esi]
jmp 0x10024429
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10024477
push str.Directory_not_present
call fcn.10006760
mov ecx, 0x100dcd14
call fcn.10006de0
add esp, 4
lea esi, [ebp - 0x308]
call fcn.100253c0
mov eax, dword [ebp - 0x308]
push eax
call fcn.100b2e51
add esp, 4
cmp dword [ebp - 0x50], edi
mov dword [ebp - 0x308], 0
jmp 0x10024dac
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.100017f0
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x308]
call fcn.100252e0
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0x330]
call fcn.100199c0
cmp dword [ebp - 0x2f8], 0
je 0x10024a6c
jmp 0x100244d0
mov ebx, 8
lea eax, [ebp - 0x34c]
lea edx, [ebp - 0x308]
lea edi, [ebx - 1]
call fcn.100acf30
mov esi, eax
lea eax, [ebp - 0x358]
call fcn.100255b0
mov ecx, dword [eax]
test ecx, ecx
je 0x100244fe
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x1002450a
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.100017f0
push 0x100dc9f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.1001b600
add esp, 0xc
push eax
mov edx, 0x100e3f60
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.10001fd0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x64]
cmp ecx, esi
je 0x100245b4
cmp dword [ebp - 0x50], ebx
jb 0x10024562
mov edx, dword [ebp - 0x64]
push edx
call fcn.100b2e51
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 0x1002458e
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x64]
push esi
push edx
call fcn.100b3000
add esp, 0xc
jmp 0x10024599
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 0x100245c5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2e51
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 0x100245ea
mov eax, dword [ebp - 0x80]
push eax
call fcn.100b2e51
add esp, 4
mov eax, dword [ebp - 0x2f8]
test eax, eax
je 0x1002463e
mov ecx, dword [ebp - 0x2fc]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 0x300]
cmp ecx, eax
ja 0x1002460a
sub eax, ecx
mov edx, dword [ebp - 0x304]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], ebx
jb 0x10024623
mov eax, dword [esi]
push eax
call fcn.100b2e51
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 0x1002463e
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x10024649
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 0x10024a95
jmp 0x10024670
mov ecx, 0x100e3f64
lea eax, [ebp - 0x2c4]
jmp 0x10024680
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100246a6
test dx, dx
je 0x100246a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100246a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10024680
xor eax, eax
jmp 0x100246ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002490c
mov ecx, 0x100e3f68
lea eax, [ebp - 0x2c4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100246e6
test dx, dx
je 0x100246e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100246e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100246c0
xor eax, eax
jmp 0x100246eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002490c
test byte [ebp - 0x2f0], 0x10
je 0x10024919
push 0x100dc9f4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.10001fd0
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 0x10024757
lea eax, [ebp - 0x308]
push eax
call fcn.10025460
mov eax, dword [ebp - 0x300]
mov esi, dword [ebp - 0x2fc]
add esi, dword [ebp - 0x2f8]
cmp eax, esi
ja 0x10024769
sub esi, eax
mov eax, dword [ebp - 0x304]
xor ebx, ebx
cmp dword [eax + esi*4], ebx
jne 0x10024791
push 0x1c
call fcn.100b33f2
add esp, 4
cmp eax, ebx
je 0x10024b32
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 0x100247c2
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.10002040
inc dword [ebp - 0x2f8]
cmp dword [ebp - 0x18], 8
jb 0x100247da
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2e51
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 0x10024806
mov eax, dword [ebp - 0x9c]
push eax
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.10001fd0
add esp, 4
lea ecx, [ebp - 0x330]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.10004e10
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x1002485c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100b2e51
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 0x10024888
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.10001fd0
add esp, 4
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x18], esi
jb 0x100248c8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2e51
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 0x100248df
lea eax, [ebp - 0x80]
push eax
push str.Directory_to_delete:_ls
call fcn.10006760
mov ecx, 0x100dcd14
call fcn.10006d80
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x6c], esi
jb 0x1002490c
mov eax, dword [ebp - 0x80]
push eax
call fcn.100b2e51
add esp, 4
test byte [ebp - 0x2f0], 0x10
jne 0x10024a21
push 0x100dc9f4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.10001fd0
add esp, 4
lea ecx, [ebp - 0x320]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.10004e10
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x1002496f
mov edx, dword [ebp - 0x80]
push edx
call fcn.100b2e51
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 0x1002499d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.100b2e51
add esp, 4
push 0x100dc9f4
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.1001b600
add esp, 0xc
push eax
lea edx, [ebp - 0x2c4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.10001fd0
add esp, 4
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x6c], esi
jb 0x100249dd
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100b2e51
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 0x100249f4
lea eax, [ebp - 0x2c]
push eax
push str.File_to_delete:_ls
call fcn.10006760
mov ecx, 0x100dcd14
call fcn.10006d80
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], esi
jb 0x10024a21
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100b2e51
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 0x10024670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10024b65
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2f8], 0
jne 0x100244d0
mov ebx, dword [ebp - 0x320]
mov esi, ebx
cmp ebx, dword [ebp - 0x31c]
je 0x10024c60
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x10024c19
mov eax, dword [esi]
jmp 0x10024c1b
cmp dword [ebp - 0x34], ebx
jb 0x10024aa6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100b2e51
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 0x10024ad6
mov edi, dword [ebp - 0x32c]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x10024af6
mov edi, dword [ebp - 0x31c]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
lea esi, [ebp - 0x308]
call fcn.100253c0
mov eax, dword [ebp - 0x308]
push eax
call fcn.100b2e51
add esp, 4
mov dword [ebp - 0x308], 0
cmp dword [ebp - 0x50], ebx
jb 0x10024b2b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100b2e51
add esp, 4
xor al, al
jmp 0x10024dbc
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x30c], ebx
call fcn.100b2f04
push 0x10100900
lea eax, [ebp - 0x340]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.100b6335
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], 8
jb 0x10024b84
mov edx, dword [ebp - 0x48]
push edx
call fcn.100b2e51
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 0x10024bb8
mov edi, dword [ebp - 0x32c]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x10024bd8
mov edi, dword [ebp - 0x31c]
mov eax, esi
call fcn.10005e00
push esi
call fcn.100b2e51
add esp, 4
lea esi, [ebp - 0x308]
call fcn.100253c0
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.100b2e51
add esp, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x308], 0
jb 0x10024b2b
mov edx, dword [ebp - 0x64]
push edx
call fcn.100b2e51
add esp, 4
xor al, al
jmp 0x10024dbc
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x10024c51
cmp dword [esi + 0x14], edi
jb 0x10024c2b
mov edi, dword [esi]
jmp 0x10024c2d
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.10006760
mov ecx, 0x100dcd14
call fcn.10006e10
add esp, 0xc
mov edi, 8
add esi, 0x1c
cmp esi, dword [ebp - 0x31c]
jne 0x10024a85
mov eax, dword [ebp - 0x334]
mov esi, dword [ebp - 0x330]
mov ebx, dword [ebp - 0x32c]
push eax
push esi
mov ecx, ebx
call fcn.100255f0
add esp, 8
mov edi, 8
cmp esi, ebx
je 0x10024cd3
cmp dword [esi + 0x14], edi
jb 0x10024c90
mov eax, dword [esi]
jmp 0x10024c92
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10024ccc
cmp dword [esi + 0x14], edi
jb 0x10024ca6
mov edi, dword [esi]
jmp 0x10024ca8
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.10006760
mov ecx, 0x100dcd14
call fcn.10006e10
add esp, 0xc
mov edi, 8
add esi, 0x1c
cmp esi, ebx
jne 0x10024c87
cmp dword [ebp - 0x34], edi
jb 0x10024ce4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100b2e51
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 0x10024d3a
cmp esi, ebx
je 0x10024d2b
cmp dword [esi + 0x14], 8
jb 0x10024d15
mov eax, dword [esi]
push eax
call fcn.100b2e51
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 0x10024d04
mov edx, dword [ebp - 0x330]
push edx
call fcn.100b2e51
add esp, 4
cmp dword [ebp - 0x320], edi
je 0x10024d88
mov esi, dword [ebp - 0x320]
mov ebx, dword [ebp - 0x31c]
cmp esi, ebx
je 0x10024d79
cmp dword [esi + 0x14], 8
jb 0x10024d63
mov eax, dword [esi]
push eax
call fcn.100b2e51
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 0x10024d52
mov edx, dword [ebp - 0x320]
push edx
call fcn.100b2e51
add esp, 4
lea esi, [ebp - 0x308]
call fcn.100253c0
mov eax, dword [ebp - 0x308]
push eax
call fcn.100b2e51
add esp, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x308], edi
jb 0x10024dba
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100b2e51
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.100b2e5c
mov esp, ebp
pop ebp
ret