Function at 0x1004afe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3e29
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100e2f44]
mov ecx, dword [0x100e2f50]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x100e2f44]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1004b2bf
mov edx, dword [0x100e2f10]
mov ecx, dword fs:[0x2c]
mov eax, dword [0x100e3124]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ecx + 4]
jle 0x1004b098
push 0x100e3124
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3124], 0xffffffff
jne 0x1004b098
mov edx, str.deadflag
mov dword [ebp - 4], 0
mov ecx, str.CBasePlayer
call fcn.1009b460
push 0x100e3124
mov dword [0x100e313c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e313c]
cmp dword [ebx + eax], 0
jne 0x1004b2bf
push 0x4d
mov ecx, ebx
call fcn.10023210
test al, al
jne 0x1004b2bf
push 0x52
mov ecx, ebx
call fcn.10023210
test al, al
jne 0x1004b2bf
xor eax, eax
cmp byte [0x100df0a4], al
sete al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10028b10
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x18], ecx
cmp edi, ecx
je 0x1004b18d
mov esi, dword [edi]
test esi, esi
je 0x1004b182
cmp esi, ebx
je 0x1004b182
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x100e3124]
mov dword [ebp - 0x14], esi
cmp eax, dword [edx + 4]
jle 0x1004b15d
push 0x100e3124
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3124], 0xffffffff
jne 0x1004b15a
mov edx, str.deadflag
mov dword [ebp - 4], 1
mov ecx, str.CBasePlayer
call fcn.1009b460
push 0x100e3124
mov dword [0x100e313c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x100e313c]
cmp dword [eax + esi], 0
je 0x1004b182
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004bd30
mov ecx, dword [eax]
add ecx, 0xc
call fcn.10023fc0
mov ecx, dword [ebp - 0x18]
add edi, 4
cmp edi, ecx
jne 0x1004b0f0
mov ecx, dword [0x100e1b58]
mov dword [ebp - 0x24], ecx
mov esi, dword [ecx]
mov dword [ebp - 0x14], esi
cmp esi, ecx
je 0x1004b2d2
lea eax, [esi + 0xc]
mov esi, eax
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
vmovss xmm1, dword [0x100d54d0]
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
cmp edi, eax
je 0x1004b2ac
test ebx, ebx
je 0x1004b1ce
mov eax, dword [ebx]
jmp 0x1004b1d0
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1004b271
mov edx, dword [ebp - 0x1c]
vmovss xmm0, dword [eax + 0x1804]
mov eax, dword [0x100e35f0]
vmovss dword [ebp - 0x20], xmm0
cmp eax, dword [edx + 4]
jle 0x1004b256
push 0x100e35f0
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e35f0], 0xffffffff
jne 0x1004b24b
mov edx, str.m_flSimulationTime
mov dword [ebp - 4], 2
mov ecx, str.CBaseEntity
call fcn.1009b460
push 0x100e35f0
mov dword [0x100e35cc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov ecx, dword [ebp - 0x18]
vmovss xmm1, dword [0x100d54d0]
mov eax, dword [0x100e35cc]
vmovss xmm0, dword [eax + ecx]
vsubss xmm0, xmm0, dword [ebp - 0x20]
vcomiss xmm1, xmm0
jbe 0x1004b271
inc edi
jmp 0x1004b1b8
sub esp, 0xc
lea eax, [edi + 1]
mov ecx, esp
sub esp, 0xc
mov dword [ecx + 8], eax
mov eax, esp
mov dword [ecx + 4], 0
mov dword [ecx], ebx
mov ecx, esi
mov dword [eax + 4], 0
mov dword [eax], ebx
mov dword [eax + 8], edi
lea eax, [ebp - 0x34]
push eax
call fcn.1004b780
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
jmp 0x1004b1b0
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x24]
jne 0x1004b1a3
jmp 0x1004b2d2
cmp dword [0x100e1b5c], 0
je 0x1004b2d2
mov ecx, 0x100e1b54
call fcn.1004b720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009f72e
mov esp, ebp
pop ebp
ret