Function at 0x649d70
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7094e9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
mov eax, 1
mov dword [ebp - 0x4c], eax
call fcn.00649c30
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x649e4f
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x649e14
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042fe00
cmp dword [ebp - 0x18], 8
mov eax, 3
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x45], 1
test eax, eax
jne 0x649e53
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x4c]
test al, 2
je 0x649e68
and eax, 0xfffffffd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.0042fd70
cmp byte [ebp - 0x45], 0
je 0x649f18
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.006111a0
add esp, 4
test al, al
je 0x649f0c
cmp dword [ebp - 0x1c], 0x26
jb 0x649f0c
xor eax, eax
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x64]
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x26
push eax
mov dword [ebp - 0x50], 7
call fcn.0042fe00
or dword [ebp - 0x4c], 4
lea eax, [ebp - 0x64]
cmp esi, eax
je 0x649f04
mov ecx, esi
call fcn.0042fd70
movups xmm0, xmmword [ebp - 0x64]
xor eax, eax
mov word [ebp - 0x64], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
lea ecx, [ebp - 0x64]
call fcn.0042fd70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0042fd70
cmp dword [esi + 0x10], 0
jne 0x649fe0
mov ecx, esi
call fcn.00612d20
test al, al
jne 0x649f3b
push 0x26
push str.WDEFAULT_D7CA_4F31_B4C0_15DB86C98250
mov ecx, esi
call fcn.0042fe00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x649f45
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x649f60
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0042fe00
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x649fa1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042fe00
push 1
push 0
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00610e80
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0042fd70
lea ecx, [ebp - 0x64]
call fcn.0042fd70
lea ecx, [ebp - 0x44]
call fcn.0042fd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret