Function at 0x40ad10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bab2
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esi
xor eax, eax
mov dword [ebp - 0x60], esi
push 5
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x536348
mov word [ecx], ax
call fcn.00403ab0
lea ecx, [ebp - 0x28]
call fcn.0040b280
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40ae96
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ae96
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
push 8
push 0x536354
push 0
call fcn.00402f40
mov ecx, eax
add esp, 0xc
cmp ecx, 0xffffffff
je 0x40ae65
xor eax, eax
mov dword [ebp - 0x48], 0
cmp edi, ecx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 7
cmovb ecx, edi
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.00403ab0
lea ecx, [ebp - 0x28]
call fcn.00403ca0
movups xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x18], xmm0
cmp eax, 8
jb 0x40ae4d
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
push 0x10
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 8]
push 0x536354
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004f4a40
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x60]
jmp 0x40ae65
push 8
push 0x536354
mov byte [ebp - 0x60], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x60]
push 8
call fcn.00408630
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040a140
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
jmp 0x40afe2
mov eax, dword [0x54a4c0]
test eax, eax
jne 0x40aec3
push 0x124
call fcn.004f2e7d
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ebb0
mov byte [ebp - 4], 0
mov dword [0x54a4c0], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0040efb0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40af0c
cmp edx, 8
lea esi, [ebp - 0x40]
push 2
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 1]
push 0x536230
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004f4a40
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40af24
push 1
push 0x536230
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x5c]
push 1
call fcn.00408630
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 8
jb 0x40af5e
cmp edx, 8
lea esi, [ebp - 0x40]
push 0x10
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 8]
push 0x536354
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004f4a40
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40af76
push 8
push 0x536354
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x5c]
push 8
call fcn.00408630
mov esi, dword [ebp - 0x60]
xor eax, eax
movups xmm0, xmmword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov word [ebp - 0x40], ax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
cmp edx, 8
jb 0x40afe2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40afd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40afff
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
int3