Function at 0x418650
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 0x4fbc19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov edx, 0x53caa4
cmp dword [0x53cab8], 8
cmovae edx, dword [0x53caa4]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x90], esp
mov ecx, edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4186e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov edx, 0x53ca8c
cmp dword [0x53caa0], 8
cmovae edx, dword [0x53ca8c]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418730
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000001
call fcn.00415f10
test al, al
je 0x41885f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41885f
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
cmp dword [0x53cad0], 8
mov eax, 0x53cabc
push dword [0x53cacc]
cmovae eax, dword [0x53cabc]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0x13
call fcn.0041a5b0
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x88]
mov byte [ebp - 0x54], 0
push eax
cmp dword [0x53cd94], esi
je 0x418849
mov ecx, esi
mov dword [ebp - 0x8c], esi
call fcn.0041a300
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x50]
mov al, byte [ebp - 0x54]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x418854
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0x88]
call fcn.004136b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x418895
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41888b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4188b5
push edx
push ecx
call fcn.0048e9ad
add esp, 8
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.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004c5929
int3