Function at 0x4a05b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51399d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x567040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edi
push esi
call fcn.004870f0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a07a7
sub esp, 0x18
mov edx, esi
mov ecx, esp
mov dword [ebp - 0x5c], esp
call fcn.004156b0
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004156b0
sub esp, 0x18
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x60], esp
mov ecx, eax
mov dword [ebp - 0x70], esi
push 0xd
push str._accelbox_bat
call fcn.00416b10
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
call fcn.0047c800
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00456570
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00414f90
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x70], esp
push eax
call fcn.004168b0
sub esp, 0x18
mov byte [ebp - 4], 8
mov esi, esp
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x14], 7
mov edi, dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
cmp edi, 0x7ffffffe
ja 0x4a07fa
cmp edi, 7
ja 0x4a0731
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
jmp 0x4a077a
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4a0744
mov eax, 0x7ffffffe
jmp 0x4a074e
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.00416f20
mov ecx, dword [ebp - 0x60]
mov dword [esi + 0x14], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [ebp - 0x5c]
mov dword [esi], eax
push eax
mov dword [esi + 0x10], edi
call fcn.004d88b0
add esp, 0x14
xor edx, edx
mov byte [ebp - 4], 7
lea ecx, [edx + 1]
call fcn.00418710
add esp, 0x30
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push 0x8b5
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x40]
call fcn.00414f90
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4a07dd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a07d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a07ff
push ecx
push edx
call fcn.004d4041
add esp, 8
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.004d402e
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401610
call fcn.004e399c
int3