Function at 0x10002960
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193fe6
mov eax, dword fs:[0]
push eax
sub esp, 0xa14
mov eax, dword [0x10200e34]
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
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa20]
call fcn.10021516
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1016a640
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x100029c3
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push str._s__.
push eax
call fcn.10003aa0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0xa20]
push 0
push eax
call fcn.10021792
test eax, eax
je 0x10002bb4
lea ecx, [ebp - 0xa20]
call fcn.1002194b
lea ecx, [ebp - 0xa20]
mov ebx, eax
call fcn.10021cde
test eax, eax
jne 0x10002bac
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.1016a640
add esp, 0xc
lea eax, [ebp - 0xa04]
lea ecx, [ebp - 0xa20]
push eax
call fcn.100219f4
push dword [eax]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1016cf8b
mov edx, dword [ebp - 0xa04]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002a6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xa20]
lea ecx, [ebp - 0xa20]
push 0x10
call dword [eax + 0x38]
mov edi, dword [esi + 0x14]
push 0x3e8
push 0
test eax, eax
je 0x10002b49
lea eax, [ebp - 0x9e8]
push eax
call fcn.1016a640
add esp, 0xc
mov eax, esi
cmp edi, 0x10
jb 0x10002aaa
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push ecx
push eax
lea eax, [ebp - 0x9e8]
push str._s___s
push eax
call fcn.10003ac0
add esp, 0x10
mov dword [ebp - 0x9f0], 0
lea eax, [ebp - 0x9e8]
mov dword [ebp - 0x9ec], 0xf
lea ecx, [ebp - 0xa00]
mov byte [ebp - 0xa00], 0
push eax
call fcn.10003640
lea eax, [ebp - 0xa00]
mov byte [ebp - 4], 1
push eax
call sym.SDTool32.dll_public:_static_bool___cdecl_sd::SDFile::clearDirect_class_std::basic_string_char__struct_std::char_traits_char___class_STLHeapAlloc_char___const__
add esp, 4
test al, al
je 0x10002b25
cmp dword [ebp - 0x9ec], 0x10
lea eax, [ebp - 0xa00]
cmovae eax, dword [ebp - 0xa00]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x9ec], 0x10
jb 0x10002bac
push dword [ebp - 0xa00]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10002bac
lea eax, [ebp - 0x600]
push eax
call fcn.1016a640
add esp, 0xc
mov eax, esi
cmp edi, 0x10
jb 0x10002b61
mov eax, dword [esi]
lea ecx, [ebp - 0x114]
push ecx
push eax
lea eax, [ebp - 0x600]
push str._s___s
push eax
call fcn.10003ac0
add esp, 0x10
lea eax, [ebp - 0x600]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x10002b9f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x600]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x600]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
jne 0x100029f4
lea ecx, [ebp - 0xa20]
call fcn.10021738
lea ecx, [ebp - 0xa20]
call fcn.100216bf
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.10152612
mov esp, ebp
pop ebp
ret