Function at 0x4978de
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50afa0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1290
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
xor esi, esi
push esi
mov ebx, ecx
call fcn.0044b345
pop ecx
lea ecx, [ebp - 0x1248]
call fcn.004ccfe8
mov dword [ebp - 4], esi
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1228]
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 - 0x122c]
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 - 0x122c]
call fcn.00402719
push dword [ebp - 0x122c]
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 0x4979e5
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497a15
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1228]
call fcn.00402719
push ecx
mov ecx, esp
mov dword [ebp - 0x1234], esp
push str.summary2.bin
call fcn.0040253b
lea ecx, [ebp - 0x1228]
call fcn.00406dee
mov byte [ebp - 4], 3
push dword [ebp - 0x1228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497a92
push 0
push 0x8000
push dword [ebp - 0x1228]
lea ecx, [ebp - 0x1248]
call fcn.004cd46d
test eax, eax
je 0x497a92
xor esi, esi
push esi
call fcn.0044b37b
pop ecx
push esi
push 0x1000
push 1
lea eax, [ebp - 0x1248]
push eax
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 4
call fcn.004cc5e4
lea edi, [ebx + 0x5c]
push edi
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 5
call fcn.00416eec
cmp dword [edi], esi
jne 0x497ad9
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 4
call fcn.004cc5a6
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1248]
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
mov eax, dword [ebx + 0x58]
cmp eax, esi
je 0x497af9
push 0x49580d
lea esi, [eax - 4]
push dword [esi]
push 0x28
push eax
call fcn.004df003
push esi
call fcn.004bd341
pop ecx
mov esi, dword [edi]
inc esi
xor ecx, ecx
push 0x28
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004bd34c
pop ecx
mov dword [ebp - 0x1234], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x497b47
push 0x49580d
push 0x49579d
push esi
lea edi, [eax + 4]
push 0x28
push edi
mov dword [eax], esi
call fcn.004def40
jmp 0x497b49
xor edi, edi
mov byte [ebp - 4], 5
mov dword [ebx + 0x58], edi
xor edi, edi
cmp edi, dword [ebx + 0x5c]
jge 0x497c22
mov eax, dword [ebx + 0x58]
mov esi, edi
imul esi, esi, 0x28
add eax, esi
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00416eec
and dword [ebp - 0x1224], 0
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00416eec
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebp - 0x1224]
mov dword [esi + eax + 4], ecx
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 8]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00416eec
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0xc]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00416eec
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x10]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x14]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x18]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x1c]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x20]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
inc edi
jmp 0x497b52
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1224]
call fcn.004027f9
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 7
call fcn.00417b5e
lea eax, [ebp - 0x1224]
push eax
mov ecx, 0x609a70
call fcn.004025da
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00417b5e
lea eax, [ebp - 0x1224]
push eax
mov ecx, 0x609a80
call fcn.004025da
fldz
and dword [ebp - 0x1250], 0
fstp qword [ebp - 0x1258]
push 0x400
push 0
push dword [ebp - 0x1224]
lea ecx, [ebp - 0x1258]
call fcn.00445e46
push 0x5c188c
lea edi, [ebp - 0x124c]
lea ecx, [ebp - 0x1258]
call fcn.00459a60
push eax
lea ecx, [ebp - 0x1224]
mov byte [ebp - 4], 8
call fcn.004025da
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x124c]
add ecx, 0xfffffff0
call fcn.0040285b
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1230]
call fcn.004027f9
mov byte [ebp - 4], 9
push dword [ebp - 0x1224]
lea eax, [ebp - 0x1230]
push str.Registry_last_optimized_on:_r_n_s
push eax
call fcn.00402a1d
add esp, 0xc
push str.Registry_is_optimized
lea ecx, [ebp - 0x1234]
call fcn.0040253b
mov ecx, dword [ebp - 0x1234]
add ecx, 0xfffffff0
call fcn.0040285b
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.0040285b
fldz
xor edi, edi
fstp dword [ebp - 0x1238]
xor esi, esi
mov dword [ebp - 0x1230], edi
cmp edi, dword [ebx + 0x5c]
jge 0x497d95
mov eax, dword [ebx + 0x58]
cmp dword [eax], 0
je 0x497d92
mov ecx, edi
imul ecx, ecx, 0x28
add eax, ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, edx
sub eax, ecx
cmp eax, 1
jl 0x497d74
cmp eax, edx
jl 0x497d78
sub ecx, edx
mov eax, ecx
fld dword [ebp - 0x1238]
add esi, edx
fadd qword [0x5d1200]
add dword [ebp - 0x1230], eax
fstp dword [ebp - 0x1238]
inc edi
jmp 0x497d4d
mov eax, dword [ebx + 0x5c]
xor edx, edx
xor ecx, ecx
cmp ecx, eax
jge 0x497db2
mov edi, dword [ebx + 0x58]
mov esi, ecx
imul esi, esi, 0x28
cmp dword [esi + edi], 0
je 0x497daf
inc edx
inc ecx
jmp 0x497d9c
mov dword [0x609848], eax
call fcn.0040b9b6
lea ecx, [ebp - 0x12a0]
call fcn.004cc42d
mov ecx, dword [ebp - 0x1224]
add ecx, 0xfffffff0
call fcn.0040285b
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 4
call fcn.004cc5a6
lea ecx, [ebp - 0x1248]
mov dword [ebp - 4], 3
call fcn.004ccf82
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1248]
call fcn.004cd101
mov al, 1
jmp 0x497abf