Function at 0x4086f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509a72
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53307c]
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 0x522d9c
mov word [ecx], ax
call fcn.00405140
lea ecx, [ebp - 0x28]
call fcn.00408db0
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x408876
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 0x408876
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 8
push 0x522da8
push 0
push edi
push eax
call fcn.00406390
mov ecx, eax
add esp, 0x14
cmp ecx, 0xffffffff
je 0x408845
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.00405140
lea ecx, [ebp - 0x28]
call fcn.00405280
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 0x40882d
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
push 0x10
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 8]
push 0x522da8
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004e6f70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x60]
jmp 0x408845
push 8
push 0x522da8
mov byte [ebp - 0x60], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x60]
push 8
call fcn.00408280
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.004057f0
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 0x4089c2
mov eax, dword [0x536390]
test eax, eax
jne 0x4088a3
push 0x124
call fcn.0049e926
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040a1a0
mov byte [ebp - 4], 0
mov dword [0x536390], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0040a5c0
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 0x4088ec
cmp edx, 8
lea esi, [ebp - 0x40]
push 2
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 1]
push 0x522d98
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004e6f70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408904
push 1
push 0x522d98
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x5c]
push 1
call fcn.00408280
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 8
jb 0x40893e
cmp edx, 8
lea esi, [ebp - 0x40]
push 0x10
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 8]
push 0x522da8
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004e6f70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408956
push 8
push 0x522da8
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x5c]
push 8
call fcn.00408280
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 0x4089c2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4089b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089df
push edx
push ecx
call fcn.0049e956
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.0049e964
mov esp, ebp
pop ebp
ret
call fcn.004e9a8c
int3