Function at 0x100249f0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10042b92
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
mov edi, 7
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
call fcn.100020a0
push 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x30c], esi
call fcn.10024150
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], esi
mov word [esp + 0x88], si
push 4
mov byte [esp + 0x30c], 1
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x10024ad3
mov dword [eax], 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x10024ad7
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x40]
push eax
mov ebx, 0x10048d04
lea esi, [esp + 0x28]
mov byte [esp + 0x30c], 2
call fcn.1000a380
add esp, 4
lea edx, [esp + 0x5c]
mov ecx, eax
mov esi, edi
mov byte [esp + 0x308], 3
call fcn.10028820
mov byte [esp + 0x308], 2
cmp dword [esp + 0x3c], 8
mov bl, al
jb 0x10024b30
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x10024d4f
lea esi, [esp + 0x5c]
call fcn.100287c0
test al, al
jne 0x10024bb4
mov eax, dword [esp + 0x7c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0x84]
or eax, ecx
push edx
lea eax, [esp + 0x44]
lea edi, [esp + 0x28]
push eax
je 0x10024b83
call fcn.1001dd20
push eax
mov byte [esp + 0x314], 4
call fcn.100249f0
add esp, 0xc
mov byte [esp + 0x308], 2
jmp 0x10024b98
call fcn.1001dd20
add esp, 8
lea edi, [esp + 0x24]
call fcn.10024990
movzx eax, al
cdq
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x10024bb4
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
lea edx, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x10024d4f
lea edi, [esp + 0x5c]
lea ecx, [esp + 0xa4]
call fcn.100288b0
mov edx, dword [esp + 0x7c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x10024c65
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x10024c65
mov eax, dword [esp + 0x88]
mov esi, 8
cmp dword [esp + 0x9c], esi
jae 0x10024c22
lea eax, [esp + 0x88]
cmp word [eax], 0x2e
jne 0x10024c6a
cmp ecx, 1
je 0x10024bba
jae 0x10024c3c
call ebx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x9c], esi
mov eax, dword [esp + 0x88]
jae 0x10024c53
lea eax, [esp + 0x88]
cmp word [eax + 2], 0x2e
jne 0x10024c6a
cmp ecx, 2
je 0x10024bba
jmp 0x10024c6a
mov esi, 8
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x40]
push ecx
lea edi, [esp + 0x28]
push edx
je 0x10024cc8
call fcn.1001dd20
push eax
mov byte [esp + 0x314], 5
call fcn.100249f0
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x308], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], esi
jb 0x10024bba
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10024bba
call fcn.1001dd20
mov eax, dword [esp + 0x30]
add esp, 8
cmp dword [esp + 0x3c], esi
jae 0x10024cde
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10024d0d
and eax, 0xfffffffe
cmp eax, 0xffffffff
je 0x10024d0d
mov ecx, dword [esp + 0x28]
and eax, 0xffffb1af
cmp dword [esp + 0x3c], esi
jae 0x10024d05
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
jae 0x10024d1b
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], esi
jb 0x10024bba
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10024bba
mov eax, dword [edi]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x10024d69
push eax
call esi
test eax, eax
je 0x10024d69
mov dword [edi], 0xffffffff
push 0x20
lea ecx, [esp + 0x44]
call fcn.10024150
mov eax, dword [esp + 0x48]
mov ebx, 8
add esp, 4
cmp dword [esp + 0x58], ebx
jae 0x10024d8a
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10024db9
and eax, 0xfffffffe
cmp eax, 0xffffffff
je 0x10024db9
mov ecx, dword [esp + 0x44]
and eax, 0xffffb1af
cmp dword [esp + 0x58], ebx
jae 0x10024db1
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x10024dc7
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x10024dde
add ebx, 1
adc dword [esp + 0x18], 0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x10024df2
push eax
call esi
test eax, eax
je 0x10024df2
mov dword [edi], 0xffffffff
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, 8
add esp, 4
cmp dword [esp + 0x9c], esi
jb 0x10024e19
mov edx, dword [esp + 0x88]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [esp + 0x58], esi
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], eax
mov word [esp + 0x88], ax
jb 0x10024e48
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, ebx
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.1003ec9d
mov esp, ebp
pop ebp
ret