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

Disassembly:
push 0xffffffffffffffff
push 0x43e934
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x44ef30]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ef30]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x17c], 0
call fcn.00402880
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], ebp
cmp dword [ebp - 0xc], 0
mov byte [esp + 0x178], 1
jne 0x409621
push str.TEMP
call fcn.00426e27
add esp, 4
test eax, eax
je 0x4095d6
push str.TEMP
call fcn.00426e27
add esp, 4
test eax, eax
jne 0x4095b9
xor ecx, ecx
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403650
jmp 0x40960d
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4095c0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403650
jmp 0x40960d
push 0x441bb4
call fcn.00426e27
add esp, 4
test eax, eax
je 0x409600
push 0x441bb4
call fcn.00426e27
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.004073c0
jmp 0x40960d
lea eax, [ebx + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ac0
push 0xc
push str._mentor_tmp
lea ecx, [esp + 0x20]
call fcn.00404530
mov ebp, dword [esp + 0x18]
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00402880
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.00403190
test al, al
jne 0x409699
mov byte [esp + 0x178], al
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409664
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40991e
push 0x441bcc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004051e0
push 0x441bc8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
mov bl, 2
push ecx
mov byte [esp + 0x190], bl
call fcn.004051e0
add esp, 0x18
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x180], 3
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409794
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x178], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x178], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40973e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x178], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40975f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40978d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40991e
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404ac0
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4098d6
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.004087b0
mov ecx, dword [esp + 0x20]
push 0x441bc4
push ecx
mov byte [esp + 0x180], 4
call fcn.00424875
add esp, 8
test eax, eax
je 0x4098a5
mov edx, dword [esp + 0x20]
push 0x441bc0
push edx
call fcn.00424875
add esp, 8
test eax, eax
je 0x4098a5
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409810
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404530
test byte [esp + 0x2c], 0x10
mov eax, dword [esp + 0x14]
je 0x40986a
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00402880
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409510
test al, al
je 0x409948
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
jmp 0x40987e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x409948
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404ac0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x178], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4098c1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x178], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4097a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x409983
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call ebx
cmp eax, 1
lea ecx, [esp + 0x14]
sete bl
call fcn.00402ba0
lea ecx, [esp + 0x1c]
call fcn.00402ba0
lea ecx, [esp + 0x18]
call fcn.00402ba0
lea ecx, [esp + 0x180]
call fcn.00402ba0
mov al, bl
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00425da1
add esp, 0x168
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
call fcn.00402ba0
lea ecx, [esp + 0x14]
call fcn.00402ba0
lea ecx, [esp + 0x1c]
call fcn.00402ba0
lea ecx, [esp + 0x18]
call fcn.00402ba0
lea ecx, [esp + 0x180]
call fcn.00402ba0
xor al, al
jmp 0x40991e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x409958