Function at 0x49f670
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 0x51348c
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x3488
call fcn.004d4440
mov eax, dword [0x567040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x3498]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x64], esi
mov dword [eax], 1
mov dword [ebp - 0x60], edi
call fcn.004215a0
call fcn.0041cf40
lea eax, [ebp - 0x3498]
push eax
push edi
push esi
call fcn.004218b0
test al, al
je 0x49f9b0
cmp dword [ebp - 0x3490], 0x64
jl 0x49f9b0
mov eax, dword [ebp - 0x882]
cmp eax, 2
jne 0x49f92b
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push edi
push esi
call fcn.004863a0
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f760
xor esi, esi
jmp 0x49f8ea
sub esp, 0x18
mov edx, esi
mov ecx, esp
mov dword [ebp - 0x60], esp
call fcn.004155e0
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004155e0
sub esp, 0x18
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x64], esp
mov ecx, eax
mov dword [ebp - 0x6c], esi
push 0xd
push str._accelbox_exe
call fcn.00416a40
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 - 0x44]
push eax
call fcn.0047bda0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004565b0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00414ec0
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.004167e0
sub esp, 0x18
mov byte [ebp - 4], 8
mov esi, esp
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x18], 7
mov edi, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
cmp edi, 0x7ffffffe
ja 0x49f9d2
cmp edi, 7
ja 0x49f857
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
jmp 0x49f8a2
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x49f86a
mov eax, bind
jmp 0x49f874
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.00416e50
mov ecx, eax
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x14], eax
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x60]
mov dword [esi], ecx
push ecx
call fcn.004d8330
add esp, 0x14
mov ecx, 1
mov byte [ebp - 4], 7
call fcn.00418c70
add esp, 0x30
mov dword [ebp - 0x60], eax
test eax, eax
je 0x49f8dd
mov ecx, dword [ebp - 0x68]
add ecx, 0x440
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x49f8d3
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x49f8dd
lea eax, [ebp - 0x60]
push eax
push edx
call fcn.0041c5b0
lea ecx, [ebp - 0x44]
mov esi, 1
call fcn.00414ec0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x49f924
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x49f91a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f9d7
push ecx
push edx
call fcn.004d3ab1
add esp, 8
mov eax, esi
jmp 0x49f9b2
cmp eax, 3
jne 0x49f9a9
call fcn.0047b6c0
mov esi, eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x49f962
push 0x7c
call fcn.004d3aeb
mov dword [ebp - 0x6c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.0047b0c0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], ecx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
add eax, 0x248
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.004a22c0
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x49f9a9
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x49f9a9
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x49f9a3
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov eax, 1
jmp 0x49f9b2
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 1
jmp 0x49f9b2
xor eax, eax
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.004d3a9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00401610
call fcn.004e2ffc
int3