Function at 0x100064d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016c948
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
xor edi, edi
sub eax, dword [esi + 4]
sar eax, 2
test eax, eax
je 0x1000652f
nop dword [eax + eax]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x10006521
mov eax, dword [ecx]
push 1
call dword [eax + 0x10]
mov eax, dword [esi + 8]
inc edi
sub eax, dword [esi + 4]
sar eax, 2
cmp edi, eax
jb 0x10006510
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0x20000006
jne 0x10006578
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006561
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, eax
call fcn.1001e390
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x20000007
push eax
mov ecx, esi
call fcn.100069c0
jmp 0x1000671b
cmp eax, 0x20000004
jne 0x1000671b
mov ecx, esi
call fcn.10006a80
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x78]
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 6
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
add esp, 4
mov edi, eax
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str..
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x3c]
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
add esp, 4
mov dword [ebp - 0x40], eax
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push dword [ebp - 0x40]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov word [ecx + eax*2 + 2], dx
mov eax, 0x614
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
test al, al
je 0x100066f5
push dword [ebp - 0x3c]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x54], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x38]
call fcn.1001e750
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
mov ecx, esi
call fcn.100069c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10006707
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004630
jmp 0x10006707
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20000007
push eax
mov ecx, esi
call fcn.100069c0
push edi
call fcn.1010fc86
add esp, 4
push dword [ebp - 0x40]
call fcn.1010fc86
add esp, 4
mov eax, dword [esi + 0x1c]
cmp eax, 0x20000007
je 0x10006729
test eax, eax
jne 0x10006751
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xb0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006751
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, eax
call fcn.1001e390
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000676f
push eax
call edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x10006786
push eax
call edi
mov dword [esi + 0x1b0], 0
mov byte [esi + 0x198], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret