Function at 0x48e038
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x164]
mov edx, dword [0x407dbc]
call fcn.00405394
xor eax, eax
push ebp
push 0x48e317
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
mov ecx, 0x48e330
mov edx, dword [ebp - 4]
call fcn.00404af4
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x37
call fcn.004098c8
test eax, eax
jne 0x48e241
xor edx, edx
push ebp
push 0x48e21c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x1c], 0
jne 0x48e0e7
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x158]
call fcn.00404880
jmp 0x48e0f7
lea eax, [ebp - 8]
lea edx, [ebp - 0x1c]
mov ecx, 0xe
call fcn.00404a58
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404af4
test byte [ebp - 0x15c], 0x10
je 0x48e15c
mov eax, dword [ebp - 8]
mov edx, 0x48e33c
call fcn.00404bf4
je 0x48e1ff
mov eax, dword [ebp - 8]
mov edx, 0x48e348
call fcn.00404bf4
je 0x48e1ff
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x16c]
mov ecx, 0x48e354
mov edx, dword [ebp - 0xc]
call fcn.00404af4
mov eax, dword [ebp - 0x16c]
call fcn.0048e038
pop ecx
jmp 0x48e1ff
mov eax, dword [ebp - 0xc]
call fcn.00404ca8
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x48e198
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x170]
call fcn.0040c5c4
mov ecx, dword [ebp - 0x170]
mov dl, 1
mov eax, dword [0x407efc]
call fcn.0040cdcc
call fcn.00404184
test al, 1
je 0x48e1a6
and eax, 0xfffffffe
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
push ebp
push 0x48e1f5
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x48e1eb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x174]
call fcn.0040c5c4
mov ecx, dword [ebp - 0x174]
mov dl, 1
mov eax, dword [0x407efc]
call fcn.0040cdcc
call fcn.00404184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e1ff
lea eax, [ebp - 0x164]
call fcn.00409918
test eax, eax
je 0x48e0d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e236
lea eax, [ebp - 0x164]
call fcn.0040993c
push 0x48e360
push dword [ebp - 4]
push 0x48e360
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404b68
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.00404dec
test eax, eax
jne 0x48e2cb
mov eax, dword [ebp - 4]
call fcn.00404ca8
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x48e2af
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x17c]
call fcn.0040c5c4
mov ecx, dword [ebp - 0x17c]
mov dl, 1
mov eax, dword [0x407efc]
call fcn.0040cdcc
call fcn.00404184
test al, 1
je 0x48e2bd
and eax, 0xfffffffe
push eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e31e
lea eax, [ebp - 0x17c]
mov edx, 4
call fcn.0040480c
lea eax, [ebp - 0x16c]
mov edx, 2
call fcn.0040480c
lea eax, [ebp - 0x164]
mov edx, dword [0x407dbc]
call fcn.00405464
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040480c
ret