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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b015
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1288
call fcn.004e5a80
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [0x609920]
lea ecx, [ebp - 0x1240]
call fcn.004ccfe8
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1224]
call fcn.004027f9
xor eax, eax
mov byte [ebp - 4], 1
push 0xffe
mov word [ebp - 0x1220], ax
lea eax, [ebp - 0x121e]
push esi
push eax
call fcn.004e38a0
add esp, 0xc
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1228]
call fcn.004027f9
push 0x208
lea eax, [ebp - 0x220]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.00482496
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x1228]
call fcn.00402719
push dword [ebp - 0x1228]
lea eax, [ebp - 0x1220]
push 0x800
push eax
call fcn.004e009e
add esp, 0xc
push esi
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x497600
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49764d
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1224]
call fcn.00402719
push ecx
mov ecx, esp
mov dword [ebp - 0x1230], esp
push str.summary2.bin
call fcn.0040253b
lea ecx, [ebp - 0x1224]
call fcn.00406dee
push 0x80
push dword [ebp - 0x1224]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x1224]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x9001
mov byte [ebp - 4], 3
push dword [ebp - 0x1224]
lea ecx, [ebp - 0x1240]
call fcn.004cd46d
cmp eax, esi
je 0x497897
push esi
push 0x1000
push esi
lea eax, [ebp - 0x1240]
push eax
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 4
call fcn.004cc5e4
mov byte [ebp - 4], 5
push dword [edi + 0x5c]
lea ecx, [ebp - 0x1298]
call fcn.00416f2e
xor ebx, ebx
cmp ebx, dword [edi + 0x5c]
jge 0x49775d
mov eax, dword [edi + 0x58]
mov esi, ebx
imul esi, esi, 0x28
push dword [esi + eax]
lea ecx, [ebp - 0x1298]
call fcn.00416f2e
mov eax, dword [edi + 0x58]
push dword [eax + esi + 4]
lea ecx, [ebp - 0x1298]
call fcn.00416f2e
mov eax, dword [edi + 0x58]
push dword [eax + esi + 8]
lea ecx, [ebp - 0x1298]
call fcn.00416f2e
mov eax, dword [edi + 0x58]
push dword [eax + esi + 0xc]
lea ecx, [ebp - 0x1298]
call fcn.00416f2e
mov eax, dword [edi + 0x58]
lea eax, [eax + esi + 0x10]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
mov eax, dword [edi + 0x58]
lea eax, [eax + esi + 0x14]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
mov eax, dword [edi + 0x58]
lea eax, [eax + esi + 0x18]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
mov eax, dword [edi + 0x58]
lea eax, [eax + esi + 0x1c]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
mov eax, dword [edi + 0x58]
lea eax, [eax + esi + 0x20]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
inc ebx
xor esi, esi
jmp 0x4976a1
lea eax, [ebp - 0x124c]
call fcn.00445b7d
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x122c]
call fcn.004027f9
push 0x5c188c
lea edi, [ebp - 0x1230]
lea ecx, [ebp - 0x124c]
mov byte [ebp - 4], 6
call fcn.00459a60
push eax
lea ecx, [ebp - 0x122c]
mov byte [ebp - 4], 7
call fcn.004025da
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.0040285b
lea eax, [ebp - 0x122c]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
push 0x400
push esi
lea eax, [ebp - 0x1230]
push eax
lea ecx, [ebp - 0x124c]
call fcn.00445d15
push eax
lea ecx, [ebp - 0x122c]
mov byte [ebp - 4], 8
call fcn.004025da
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.0040285b
lea eax, [ebp - 0x122c]
push eax
lea ecx, [ebp - 0x1298]
call fcn.00417b32
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.0040285b
lea ecx, [ebp - 0x1298]
call fcn.004cc42d
lea ecx, [ebp - 0x1298]
mov byte [ebp - 4], 4
call fcn.004cc5a6
lea ecx, [ebp - 0x1240]
mov dword [ebp - 4], 3
call fcn.004ccf82
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x1224]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1240]
call fcn.004cd101
mov al, 1
jmp 0x4978c4
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x1224]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1240]
call fcn.004cd101
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004de422
leave
ret