Function at 0x648360
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 0x7076b9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x82d084]
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.00648220
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x64843f
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 0x648404
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 0x648443
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x4c]
test al, 2
je 0x648458
and eax, 0xfffffffd
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.0042fd70
cmp byte [ebp - 0x45], 0
je 0x648508
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.0060f9a0
add esp, 4
test al, al
je 0x6484fc
cmp dword [ebp - 0x1c], 0x26
jb 0x6484fc
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 0x6484f4
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 0x6485d0
mov ecx, esi
call fcn.00611520
test al, al
jne 0x64852b
push 0x26
push str.WDEFAULT_D7CA_4F31_B4C0_15DB86C98250
mov ecx, esi
call fcn.0042fe00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x648535
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 0x648550
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 0x648591
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.0060f680
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.0067ba01
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret