Function at 0x49ca10
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4f6c66
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xdc]
mov ebp, dword [esp + 0xd8]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x16], bl
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], cx
mov edi, 8
mov dword [esp + 0xd0], ebx
cmp dword [ebp + 0x90], edi
jb 0x49ca98
mov ecx, dword [ebp + 0x7c]
jmp 0x49ca9b
lea ecx, [ebp + 0x7c]
lea edx, [esp + 0x1c]
push edx
call fcn.0049c8f0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0xb4]
mov byte [esp + 0xdc], 1
call fcn.00401850
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x34], edi
jb 0x49cada
mov eax, dword [esp + 0x20]
push eax
call fcn.004c8f17
add esp, 4
cmp dword [esp + 0xbc], ebx
jne 0x49cb03
cmp dword [esp + 0xc0], edi
jb 0x49cafc
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004c8f17
add esp, 4
xor al, al
jmp 0x49cdf8
lea esi, [esp + 0x54]
call fcn.004817d0
push 1
push 0x4fea60
mov eax, esi
mov byte [esp + 0xd8], 2
call fcn.004088a0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb0]
push edx
call fcn.00408f90
push 0xffffffffffffffff
xor eax, eax
push ebx
lea ecx, [esp + 0x5c]
mov word [esp + 0x44], ax
mov esi, 7
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
call fcn.00401850
push 5
push 0x50b740
lea eax, [esp + 0x40]
mov byte [esp + 0xd8], 3
call fcn.004088a0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x17], 1
cmp dword [esp + 0x50], edi
jae 0x49cb82
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cb91
mov byte [esp + 0x17], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
xor edx, edx
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
call fcn.00401850
push 0xffffffffffffffff
mov byte [esp + 0xd4], 4
push ebx
lea edx, [esp + 0x5c]
xor ecx, ecx
push edx
lea eax, [esp + 0x7c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
call fcn.00401850
mov byte [esp + 0xd0], 5
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x49cc04
lea eax, [esp + 0x58]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xa
push str._bkgnd.png
lea eax, [esp + 0x94]
call fcn.004088a0
push 9
push 0x50f764
lea eax, [esp + 0x78]
call fcn.004088a0
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x88], edi
jae 0x49cc40
lea ecx, [esp + 0x74]
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], edi
jae 0x49cc57
lea eax, [esp + 0x90]
mov edx, dword [esp + 0x18]
push eax
push ebp
call fcn.0049ce30
test al, al
je 0x49cd3b
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x49cc78
lea eax, [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x49cc8f
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x49cc9d
lea ecx, [esp + 0x58]
push eax
call fcn.00407ae0
add esp, 4
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], edi
jae 0x49ccc1
lea eax, [esp + 0x90]
push eax
call esi
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], edi
jae 0x49ccd5
lea eax, [esp + 0x74]
push eax
call esi
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x49cce6
lea eax, [esp + 0x58]
push eax
call esi
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x49ccf7
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp byte [esp + 0x16], bl
je 0x49cd36
cmp byte [esp + 0x17], bl
je 0x49cd23
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x49cd18
lea eax, [esp + 0x3c]
push eax
call fcn.004a3d20
add esp, 4
jmp 0x49cd36
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x49cd31
lea ecx, [esp + 0x3c]
call fcn.004a40e0
mov esi, 7
cmp dword [esp + 0x88], edi
jb 0x49cd51
mov eax, dword [esp + 0x74]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
cmp dword [esp + 0xa4], edi
jb 0x49cd7f
mov edx, dword [esp + 0x90]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
cmp dword [esp + 0x50], edi
jb 0x49cdaa
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x6c], edi
jb 0x49cdcc
mov eax, dword [esp + 0x58]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
cmp dword [esp + 0xc0], edi
jb 0x49cdf4
mov edx, dword [esp + 0xac]
push edx
call fcn.004c8f17
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004c8f08
add esp, 0xc0
ret 8