Function at 0x10012210
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004379a
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x1005a690]
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 ebx, ecx
mov dword [ebp - 0x494], ebx
sub esp, 8
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
call fcn.10013350
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10012309
push str.isafe_
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.delayadw.xml
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp word [ebp - 0x220], 0
je 0x100126fa
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100126fa
mov dword [ebp - 0x43c], 0
lea eax, [ebp - 0x43c]
push eax
push 0x10049f48
push 0x17
push 0
push 0x10049f58
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100126ab
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x490]
push eax
mov dword [ebp - 0x448], 0
call ebx
test eax, eax
jns 0x1001238f
mov ecx, eax
call fcn.10011f20
mov eax, 8
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x488], eax
test eax, eax
jne 0x100123d2
mov eax, 0xa
mov ecx, 0x8007000e
mov word [ebp - 0x490], ax
mov dword [ebp - 0x488], 0x8007000e
call fcn.10011f20
lea ecx, [ebp - 0x448]
push ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x43c]
movq xmm0, qword [ebp - 0x490]
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
push eax
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x488]
movq qword [ecx + 8], xmm0
call dword [edx + 0xe8]
mov esi, eax
lea eax, [ebp - 0x490]
push eax
call ebx
test esi, esi
js 0x100126a5
cmp word [ebp - 0x448], 0xffff
jne 0x100126a5
mov dword [ebp - 0x438], 0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x43c]
push str._DelayAdware_adware
lea ecx, [ebp - 0x42c]
call fcn.10011f60
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x1001245d
mov ecx, dword [eax]
jmp 0x1001245f
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x438]
push edx
push ecx
push esi
call dword [eax + 0x90]
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 4
call fcn.10012010
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x10012697
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
xor edi, edi
jmp 0x100124b0
cmp edi, dword [ebp - 0x42c]
jge 0x10012691
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x438]
lea edx, [ebp - 0x434]
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x444], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x434]
lea edx, [ebp - 0x444]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x68]
mov dword [ebp - 0x440], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x434]
lea edx, [ebp - 0x440]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
mov esi, dword [ebp - 0x440]
test esi, esi
je 0x1001265d
mov dword [ebp - 0x430], 0
push 0x10049ebc
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 9
call fcn.10011f60
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x1001255a
mov ecx, dword [eax]
jmp 0x1001255c
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x430]
push edx
push ecx
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x4a4]
call fcn.10012010
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x10012649
xorps xmm0, xmm0
lea eax, [ebp - 0x490]
push eax
movq qword [ebp - 0x490], xmm0
movq qword [ebp - 0x488], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x490]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x488]
lea ecx, [ebp - 0x480]
call fcn.10009fd0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x46c], 8
lea eax, [ebp - 0x480]
cmovae eax, dword [ebp - 0x480]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi64]
add esp, 4
lea ecx, [ebp - 0x4bc]
push dword [ebp - 0x444]
mov dword [ebp - 0x498], eax
call fcn.10009fd0
mov esi, eax
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xd
call fcn.10013030
push esi
mov ecx, eax
call fcn.1000a0a0
lea ecx, [ebp - 0x4bc]
call fcn.1000a0e0
lea ecx, [ebp - 0x480]
call fcn.1000a0e0
lea eax, [ebp - 0x490]
push eax
call ebx
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 8
test eax, eax
je 0x10012657
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x440]
mov byte [ebp - 4], 7
test esi, esi
je 0x1001266b
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x444]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x1001268b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
jmp 0x100124b0
mov eax, dword [ebp - 0x438]
mov byte [ebp - 4], 2
test eax, eax
je 0x100126a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x494]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x100126bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [ebp - 0x4a0], eax
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x49c], 1
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 0xf
call fcn.100134e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x460]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x1001272e
push eax
call esi
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
add esp, 4
lea ecx, [ebp - 0x468]
call fcn.10013600
push dword [ebp - 0x468]
call esi
add esp, 4
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.1003e328
mov esp, ebp
pop ebp
ret