Function at 0x48ba40
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 0x48bdd8
mov esi, dword [esp + 0x240]
test esi, esi
je 0x48bdd8
push 0x5c
push ebp
call fcn.00445200
mov edx, eax
add esp, 8
test edx, edx
je 0x48bdd8
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 0x638274
lea eax, [esp + 0x3c]
push 0x103
push eax
call fcn.00445498
lea ecx, [esp + 0x44]
add esp, 0x14
xor ebx, ebx
mov esi, 0x57
test ecx, ecx
jne 0x48bb01
push esi
mov dword [0x679ac0], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x48bb70
mov al, byte [esp + 0x244]
test al, 1
je 0x48bb49
push 0xb7
mov dword [0x679ac0], 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.00494fa0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
add esp, 0x1c
test ecx, ecx
je 0x48bb33
mov ebx, eax
cmp eax, 0xffffffff
je 0x48bac8
test al, 0x10
je 0x48bac8
mov eax, 1
test al, bl
je 0x48baca
mov ecx, eax
jmp 0x48bad4
test ecx, ecx
je 0x48bb70
test al, 2
je 0x48bb70
push 5
mov dword [0x679ac0], 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 0x48bddd
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48bbaf
test al, 0x10
jne 0x48bd60
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 0x48bd60
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.00445100
lea eax, [esp + 0x140]
push 0x5c
push eax
call fcn.00445240
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 0x48bc60
cmp byte [esp + 0x134], 0x5c
jne 0x48bc60
cmp byte [esp + 0x135], 0x5c
jne 0x48bc60
lea ecx, [esp + 0x136]
push 0x5c
push ecx
call fcn.00445240
add esp, 8
test eax, eax
je 0x48bcee
inc eax
push 0x5c
push eax
call fcn.00445240
add esp, 8
mov esi, eax
test esi, esi
je 0x48bcee
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 0x48bcb0
test bl, 1
je 0x48bc98
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 0x48bd32
cmp ebx, 0xffffffff
je 0x48bcb9
test edi, edi
jne 0x48bccb
lea eax, [esp + 0x134]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x48bd32
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00445240
mov esi, eax
add esp, 8
test esi, esi
jne 0x48bc68
test ebp, ebp
je 0x48bd32
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 0x48bd23
test al, 0x10
jne 0x48bd2e
test al, 1
je 0x48bd14
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 0x48bd32
lea edx, [esp + 0x30]
push 0
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x48bd59
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x679ac0], eax
je 0x48bdea
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 0x48be00
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.004898e0
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 [0x679ac0], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret