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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x484d9e
mov esi, dword [esp + 0x120]
cmp esi, ebp
je 0x484d9e
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x20]
push ebp
push ecx
push eax
mov dword [esp + 0x2c], ebp
call fcn.00492280
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x484a8b
test al, 0x10
je 0x484ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov dword [0x667d40], eax
je 0x484db0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
xor edi, edi
call ebx
cmp eax, 0xffffffff
je 0x484ad1
test al, 0x10
jne 0x484ad1
test al, 1
mov edi, 1
je 0x484ad1
mov ebp, edi
mov cl, byte [esp + 0x124]
test cl, 1
je 0x484af8
test edi, edi
je 0x484af8
pop edi
pop esi
pop ebp
mov dword [0x667d40], 0x50
xor eax, eax
pop ebx
add esp, 0x108
ret
test cl, 2
je 0x484b18
test ebp, ebp
je 0x484b18
pop edi
pop esi
pop ebp
mov dword [0x667d40], 5
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp eax, 0xffffffff
je 0x484b8d
test al, 0x10
je 0x484b63
push 0
push 0x4888e0
push 0x20
push esi
call fcn.00486bc0
add esp, 0x10
push esi
call ebx
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x484b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x667d40], eax
je 0x484b8d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x484b8d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x484b8d
push esi
call ebx
cmp eax, 0xffffffff
je 0x484b8d
test al, 0x10
jne 0x484b8d
test al, 1
je 0x484b8d
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
mov edx, dword [esp + 0x11c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push esi
push edx
mov dword [0x667d40], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x484d47
test byte [esp + 0x124], 4
jne 0x484d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x484d07
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5c
push esi
stosb byte es:[edi], al
call fcn.004424e0
add esp, 8
test eax, eax
je 0x484c15
sub eax, esi
mov edi, eax
cmp edi, 0x104
jae 0x484c15
push edi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004423e0
add esp, 0xc
mov byte [esp + edi + 0x14], 0
lea ecx, [esp + 0x14]
mov edi, 0x57
test ecx, ecx
jne 0x484c33
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov dword [0x667d40], edi
call ebp
jmp 0x484c6e
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.00492280
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x484c68
test al, 0x10
jne 0x484d31
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
test ecx, ecx
jne 0x484c93
push edi
mov dword [0x667d40], edi
call ebp
mov ecx, dword [esp + 0x11c]
push 0
push esi
push ecx
call ebx
mov ebp, eax
jmp 0x484d31
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x484cc2
test al, 0x10
jne 0x484cf6
lea eax, [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x484cf6
lea eax, [esp + 0x14]
push eax
call fcn.00486310
add esp, 4
test eax, eax
jne 0x484cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x667d40], eax
je 0x484cf6
push eax
call ebp
mov ecx, dword [esp + 0x11c]
push 0
push esi
push ecx
call ebx
mov ebp, eax
jmp 0x484d31
test byte [esp + 0x124], 8
je 0x484d31
call fcn.004926f0
mov eax, dword [0x668134]
test eax, eax
jne 0x484d54
mov dword [0x667d40], 0x7f
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x667d40], eax
je 0x484d47
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x11c]
push 0
push 0
push 0x240
push esi
push 0
push edx
push 0
push 0
call eax
test eax, eax
jne 0x484d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x667d40], eax
je 0x484d31
push eax
jmp 0x484d2b
pop edi
pop esi
pop ebp
mov dword [0x667d40], 0
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edi, 0x57
push edi
mov dword [0x667d40], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret