Function at 0x406960
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 0x5416d3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x57906c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
lea edx, [ebx + 0xc]
cmp dword [ebx + 0x20], 8
push dword [ebx + 0x1c]
cmovae edx, dword [ebx + 0xc]
call fcn.0040d6a0
add esp, 4
push eax
call fcn.0040a810
add esp, 4
lea eax, [ebx + 0xc]
cmp dword [ebx + 0x20], 8
cmovae eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4069fd
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x55faaf
mov byte [esi], al
call fcn.004092d0
jmp 0x406c81
cmp dword [ebx + 0x20], 8
lea edx, [ebx + 0xc]
lea ecx, [ebp - 0x44]
cmovae edx, dword [ebx + 0xc]
call fcn.00421200
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
cmp dword [ebx + 0x20], 8
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebx + 0xc]
call fcn.00421080
mov byte [ebp - 4], 2
lea edx, [ebx + 0xc]
cmp dword [ebx + 0x20], 8
lea ecx, [ebp - 0x5c]
cmovae edx, dword [ebx + 0xc]
call fcn.00421370
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov ecx, 0x59eacc
call fcn.00405e60
test al, al
je 0x406b4e
movups xmm0, xmmword [ebp - 0x2c]
mov edx, dword [ebp - 0x48]
mov eax, 0xf
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 0x2c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
cmp edx, 0x10
jb 0x406ac0
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406ab3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406caa
push edx
push ecx
call fcn.004c6786
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x406b05
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x406afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406caf
push edx
push ecx
call fcn.004c6786
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x406c6f
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cb4
jmp 0x406c65
lea edx, [ebp - 0x5c]
mov ecx, 0x59eac0
call fcn.00405e60
test al, al
je 0x406bc7
movups xmm0, xmmword [ebp - 0x5c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x406b05
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cb9
jmp 0x406afb
lea edx, [ebp - 0x44]
mov ecx, 0x58ff14
call fcn.00405e60
mov ecx, esi
test al, al
je 0x406c1c
lea eax, [ebp - 0x44]
push eax
call fcn.00407ba0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x406b7e
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406cbe
push edx
push ecx
call fcn.004c6786
add esp, 8
jmp 0x406b7e
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x55faaf
mov byte [esi], 0
call fcn.004092d0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x406b7e
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406c0d
jmp 0x406cb9
push edx
push ecx
call fcn.004c6786
add esp, 8
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
lea ecx, [ebx + 0xc]
call fcn.00408fb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c61ad
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
call fcn.0051f5dc
call fcn.0051f5dc
call fcn.0051f5dc
call fcn.0051f5dc
call fcn.0051f5dc
int3