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

Disassembly:
sub esp, 0x228
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
test ebp, ebp
push edi
je 0x4890b8
mov esi, dword [esp + 0x240]
test esi, esi
je 0x4890b8
push 0x5c
push ebp
call fcn.004424e0
mov edx, eax
add esp, 8
test edx, edx
je 0x4890b8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
inc edx
push edx
push esi
stosb byte es:[edi], al
push 0x628274
lea eax, [esp + 0x3c]
push 0x103
push eax
call fcn.00442748
lea ecx, [esp + 0x44]
add esp, 0x14
xor ebx, ebx
mov esi, 0x57
test ecx, ecx
jne 0x488de1
push esi
mov dword [0x667d40], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x488e50
mov al, byte [esp + 0x244]
test al, 1
je 0x488e29
push 0xb7
mov dword [0x667d40], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.00492280
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
add esp, 0x1c
test ecx, ecx
je 0x488e13
mov ebx, eax
cmp eax, 0xffffffff
je 0x488da8
test al, 0x10
je 0x488da8
mov eax, 1
test al, bl
je 0x488daa
mov ecx, eax
jmp 0x488db4
test ecx, ecx
je 0x488e50
test al, 2
je 0x488e50
push 5
mov dword [0x667d40], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret
lea edx, [esp + 0x30]
test edx, edx
je 0x4890bd
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x488e8f
test al, 0x10
jne 0x489040
lea ecx, [esp + 0x30]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x30]
push 0
push eax
call ebx
test eax, eax
jne 0x489040
mov ecx, 0x40
lea edi, [esp + 0x135]
mov byte [esp + 0x134], al
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x138]
push ecx
push edx
mov ebp, 1
stosb byte es:[edi], al
call fcn.004423e0
lea eax, [esp + 0x140]
push 0x5c
push eax
call fcn.00442520
mov esi, eax
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x488f40
cmp byte [esp + 0x134], 0x5c
jne 0x488f40
cmp byte [esp + 0x135], 0x5c
jne 0x488f40
lea ecx, [esp + 0x136]
push 0x5c
push ecx
call fcn.00442520
add esp, 8
test eax, eax
je 0x488fce
inc eax
push 0x5c
push eax
call fcn.00442520
add esp, 8
mov esi, eax
test esi, esi
je 0x488fce
lea edx, [esp + 0x134]
mov byte [esi], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x488f90
test bl, 1
je 0x488f78
and al, 0xfe
lea ecx, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x489012
cmp ebx, 0xffffffff
je 0x488f99
test edi, edi
jne 0x488fab
lea eax, [esp + 0x134]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x489012
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00442520
mov esi, eax
add esp, 8
test esi, esi
jne 0x488f48
test ebp, ebp
je 0x489012
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x489003
test al, 0x10
jne 0x48900e
test al, 1
je 0x488ff4
and al, 0xfe
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x489012
lea edx, [esp + 0x30]
push 0
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x489039
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x667d40], eax
je 0x4890ca
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret
mov ebp, dword [esp + 0x23c]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x244]
mov edi, ebp
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push 0x4890e0
dec ecx
push 0x10
push ebp
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ecx
call fcn.00486bc0
mov eax, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
mov esi, 0x57
push esi
mov dword [0x667d40], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret