Function at 0x10064cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a8da
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], edx
mov ebx, ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10064d12
xor bl, bl
jmp 0x10064dcf
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
push 0x1007dbe4
push 0x17
push 0
push 0x1007c6f8
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x424]
jns 0x10064d49
xor bl, bl
jmp 0x10064dc1
xor ecx, ecx
mov dword [ebp - 0x428], ecx
test eax, eax
je 0x10064d7f
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x1007dbd4
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x428]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x424]
cmovs ecx, edx
mov dword [ebp - 0x428], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x10064dab
cmp dword [ebp + 0x1c], 8
mov eax, dword [ecx]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
push 0
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x10064dff
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
xor bl, bl
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10064dc1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
test eax, eax
je 0x10064dcf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x1c], 8
jb 0x10064de1
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x28]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
call dword [ecx + 0xc]
test esi, esi
jne 0x10064fc9
test eax, eax
jne 0x10064fc9
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.10003960
push esi
push 0x1008aec0
mov ecx, ebx
call fcn.10015470
cmp eax, 0xffffffff
je 0x10064f1b
push esi
push 0x1008aca0
mov ecx, ebx
call fcn.10015470
cmp eax, 0xffffffff
jne 0x10064f1b
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x478]
call fcn.10008e70
push eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.10064ff0
push 0x1008aca0
mov edx, eax
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 4
call fcn.10008090
add esp, 8
mov ecx, ebx
push eax
call fcn.10001ac0
lea ecx, [ebp - 0x448]
call fcn.10001a00
lea ecx, [ebp - 0x460]
call fcn.10001a00
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 2
call fcn.10001a00
cmp word [ebp - 0x218], 0x20
lea edi, [ebp - 0x218]
jne 0x10064f39
jmp 0x10064f30
add edi, 2
cmp word [edi], 0x20
je 0x10064f30
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10064f40
sub ecx, edx
sar ecx, 1
je 0x10064fbd
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
call fcn.10008e70
mov esi, eax
push 0x1008aec0
mov edx, ebx
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 5
call fcn.1002bb20
push esi
mov edx, eax
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 6
call fcn.10058f30
add esp, 8
mov ecx, ebx
push eax
call fcn.10001ac0
lea ecx, [ebp - 0x478]
call fcn.10001a00
lea ecx, [ebp - 0x460]
call fcn.10001a00
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.10001a00
mov ecx, dword [ebp - 0x42c]
push edi
call fcn.10003960
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
mov bl, 1
jmp 0x10064dad