Function at 0x413160
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 0x5c7cf5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x6540c0]
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, dword [ebx + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4131ab
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4131bd
xor al, al
jmp 0x413384
cmp dword [esi + 0x14], 7
jbe 0x4131c5
mov esi, dword [esi]
push 0x647a10
push esi
call fcn.004a240c
mov esi, eax
add esp, 8
test esi, esi
jne 0x4131ef
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
jmp 0x413214
mov edx, esi
lea ecx, [ebp - 0x74]
call fcn.004242e0
push esi
call fcn.004a1c00
movups xmm0, xmmword [ebp - 0x74]
add esp, 4
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [ebp - 0x34], xmm0
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0040aa30
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402520
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
cmova ecx, edi
cmova esi, edi
cmova edx, edi
lea eax, [ecx + eax*2]
mov dword [ebp - 0x7c], eax
cmp esi, eax
je 0x41327b
sub edx, esi
mov edi, edx
movzx eax, word [esi]
push eax
call fcn.004a15b3
mov word [edi + esi], ax
add esp, 4
add esi, 2
cmp esi, dword [ebp - 0x7c]
jne 0x413260
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x4132b8
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4132ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133a4
push ecx
push edx
call fcn.00439938
mov edi, dword [ebp - 0x2c]
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 0xf
jbe 0x413303
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4132f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133a4
push ecx
push edx
call fcn.00439938
mov edi, dword [ebp - 0x2c]
add esp, 8
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp eax, 7
cmova ecx, edi
cmp dword [edx + 0x44], 7
lea esi, [edx + 0x30]
jbe 0x41331e
mov esi, dword [edx + 0x30]
mov edx, dword [edx + 0x40]
cmp edx, dword [ebp - 0x1c]
jne 0x41334d
test edx, edx
je 0x413344
sub esi, ecx
nop dword [eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x41334a
add ecx, 2
sub edx, 1
jne 0x413330
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x75], 1
jmp 0x413351
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x75], 0
cmp eax, 7
jbe 0x413381
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x413377
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4133a9
push ecx
push edi
call fcn.00439938
add esp, 8
mov al, byte [ebp - 0x75]
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.004398fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00494baa
call fcn.00494baa
int3