Function at 0x46fc50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc9c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x54c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 7
cmova eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fdff
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
cmp edi, esi
je 0x46fcde
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
mov ecx, edi
cmova eax, dword [ebp + 8]
cmp dword [edi + 0x14], 0xf
jbe 0x46fcbc
mov ecx, dword [edi]
push dword [ebp + 0x18]
mov edx, dword [edi + 0x10]
push eax
call fcn.00414900
add esp, 8
test al, al
jne 0x46fcd6
add edi, 0x18
cmp edi, esi
jne 0x46fca7
cmp edi, esi
jne 0x46fdff
call fcn.0046efc0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x46fd08
push 0x7c
call fcn.004c04db
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0046e9b0
mov byte [ebp - 4], 2
mov dword [esi + 4], eax
lea ecx, [ebp + 0x3c]
push ecx
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00471150
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46fd49
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x46fd49
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x46fd43
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x46fd47
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x46fdf2
xorps xmm0, xmm0
lea ecx, [ebp + 8]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp + 0x1c], 0xf
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x7fffffff
ja 0x46fe76
cmp eax, 0xf
ja 0x46fda6
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
add dword [edi + 8], 0x18
jmp 0x46fdff
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x46fdb7
mov eax, 0x7fffffff
jmp 0x46fdc1
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00403260
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov dword [esi], eax
lea ecx, [edx + 1]
mov dword [esi + 0x10], edx
push ecx
push dword [ebp - 0x14]
push eax
call fcn.004c4b90
add esp, 0x14
add dword [edi + 8], 0x18
jmp 0x46fdff
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [edi + 4]
call fcn.00412440
mov eax, dword [ebp + 0x1c]
cmp eax, 0xf
jbe 0x46fe31
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x46fe27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fe7b
push ecx
push edx
call fcn.004c04a1
add esp, 8
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
call fcn.004177f0
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x46fe63
mov edx, dword [ecx]
lea eax, [ebp + 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x5c
call fcn.00401570
call fcn.004cfc7c
int3