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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c7b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1290
call fcn.004b8880
mov eax, dword [0x56f710]
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.0044788a
pop ecx
lea ecx, [ebp - 0x1248]
call fcn.004a0bec
mov dword [ebp - 4], esi
call fcn.0049219b
push eax
lea ecx, [ebp - 0x1228]
call fcn.00402802
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.004b62d0
add esp, 0xc
call fcn.0049219b
push eax
lea ecx, [ebp - 0x122c]
call fcn.00402802
push 0x208
lea eax, [ebp - 0x220]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.004b62d0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call fcn.0045d1ed
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x122c]
call fcn.0040272d
push dword [ebp - 0x122c]
lea eax, [ebp - 0x1220]
push 0x800
push eax
call fcn.004b3efe
add esp, 0xc
push esi
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f633
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f663
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1228]
call fcn.0040272d
push ecx
mov ecx, esp
mov dword [ebp - 0x1234], esp
push str.summary2.bin
call fcn.0040254f
lea ecx, [ebp - 0x1228]
call fcn.00406dfa
mov byte [ebp - 4], 3
push dword [ebp - 0x1228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f6e0
push 0
push 0x8000
push dword [ebp - 0x1228]
lea ecx, [ebp - 0x1248]
call fcn.004a1071
test eax, eax
je 0x46f6e0
xor esi, esi
push esi
call fcn.004478c0
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.004a01bf
lea edi, [ebx + 0x5c]
push edi
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 5
call fcn.00414cf9
cmp dword [edi], esi
jne 0x46f727
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 4
call fcn.004a0181
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.00402845
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1248]
call fcn.004a0d05
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.004b228f
leave
ret
mov eax, dword [ebx + 0x58]
cmp eax, esi
je 0x46f747
push 0x46d45b
lea esi, [eax - 4]
push dword [esi]
push 0x28
push eax
call fcn.004b2e63
push esi
call fcn.00490dab
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.00490db6
pop ecx
mov dword [ebp - 0x1234], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x46f795
push 0x46d45b
push 0x46d3eb
push esi
lea edi, [eax + 4]
push 0x28
push edi
mov dword [eax], esi
call fcn.004b2da0
jmp 0x46f797
xor edi, edi
mov byte [ebp - 4], 5
mov dword [ebx + 0x58], edi
xor edi, edi
cmp edi, dword [ebx + 0x5c]
jge 0x46f870
mov eax, dword [ebx + 0x58]
mov esi, edi
imul esi, esi, 0x28
add eax, esi
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00414cf9
and dword [ebp - 0x1224], 0
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00414cf9
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.00414cf9
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0xc]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00414cf9
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x10]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x14]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x18]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x1c]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
mov eax, dword [ebx + 0x58]
lea eax, [esi + eax + 0x20]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
inc edi
jmp 0x46f7a0
call fcn.0049219b
push eax
lea ecx, [ebp - 0x1224]
call fcn.00402802
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 7
call fcn.0041596b
lea eax, [ebp - 0x1224]
push eax
mov ecx, 0x5791d8
call fcn.004025ee
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x12a0]
call fcn.0041596b
lea eax, [ebp - 0x1224]
push eax
mov ecx, 0x5791e8
call fcn.004025ee
fldz
and dword [ebp - 0x1250], 0
fstp qword [ebp - 0x1258]
push 0x400
push 0
push dword [ebp - 0x1224]
lea ecx, [ebp - 0x1258]
call fcn.00442cd2
push 0x53f708
lea edi, [ebp - 0x124c]
lea ecx, [ebp - 0x1258]
call fcn.0044fa1c
push eax
lea ecx, [ebp - 0x1224]
mov byte [ebp - 4], 8
call fcn.004025ee
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x124c]
add ecx, 0xfffffff0
call fcn.00402845
call fcn.0049219b
push eax
lea ecx, [ebp - 0x1230]
call fcn.00402802
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.00402a07
add esp, 0xc
push str.Registry_is_optimized
lea ecx, [ebp - 0x1234]
call fcn.0040254f
mov ecx, dword [ebp - 0x1234]
add ecx, 0xfffffff0
call fcn.00402845
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.00402845
fldz
xor edi, edi
fstp dword [ebp - 0x1238]
xor esi, esi
mov dword [ebp - 0x1230], edi
cmp edi, dword [ebx + 0x5c]
jge 0x46f9e3
mov eax, dword [ebx + 0x58]
cmp dword [eax], 0
je 0x46f9e0
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 0x46f9c2
cmp eax, edx
jl 0x46f9c6
sub ecx, edx
mov eax, ecx
fld dword [ebp - 0x1238]
add esi, edx
fadd qword [0x54cc10]
add dword [ebp - 0x1230], eax
fstp dword [ebp - 0x1238]
inc edi
jmp 0x46f99b
mov eax, dword [ebx + 0x5c]
xor edx, edx
xor ecx, ecx
cmp ecx, eax
jge 0x46fa00
mov edi, dword [ebx + 0x58]
mov esi, ecx
imul esi, esi, 0x28
cmp dword [esi + edi], 0
je 0x46f9fd
inc edx
inc ecx
jmp 0x46f9ea
mov dword [0x578fe0], eax
call fcn.0040b58e
lea ecx, [ebp - 0x12a0]
call fcn.004a0008
mov ecx, dword [ebp - 0x1224]
add ecx, 0xfffffff0
call fcn.00402845
lea ecx, [ebp - 0x12a0]
mov byte [ebp - 4], 4
call fcn.004a0181
lea ecx, [ebp - 0x1248]
mov dword [ebp - 4], 3
call fcn.004a0b86
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.00402845
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1248]
call fcn.004a0d05
mov al, 1
jmp 0x46f70d