Function at 0x10028010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e6e5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10085040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10085fe8]
mov ecx, dword [0x10085fec]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10085fe8]
push eax
call esi
test eax, eax
je 0x10028340
mov dword [0x10085388], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x378]
test eax, eax
je 0x10028076
mov dword [0x1008538c], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10085f50]
mov esi, dword [0x10085388]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x100865c0]
mov dword [ebp - 0x20], edi
cmp eax, dword [edi + 4]
jle 0x100280e0
push 0x100865c0
call fcn.1002b2a6
add esp, 4
cmp dword [0x100865c0], 0xffffffff
jne 0x100280e0
push str.m_iObserverMode
push str.CBasePlayer
mov dword [ebp - 4], 0
call fcn.10027eb0
push 0x100865c0
mov dword [0x100865c4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1002b255
add esp, 4
mov eax, dword [0x100865c4]
mov eax, dword [eax + esi]
sub eax, 4
je 0x100280f2
sub eax, 1
jne 0x1002816f
mov eax, dword [0x100865c8]
mov esi, dword [0x10085388]
cmp eax, dword [edi + 4]
jle 0x1002814a
push 0x100865c8
call fcn.1002b2a6
add esp, 4
cmp dword [0x100865c8], 0xffffffff
jne 0x1002814a
push str.m_hObserverTarget
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.10027eb0
push 0x100865c8
mov dword [0x100865cc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1002b255
add esp, 4
mov ecx, dword [0x10085fe8]
mov edx, dword [0x100865cc]
add edx, esi
push ecx
mov eax, dword [ecx]
mov edx, dword [edx]
mov esi, dword [eax + 0x10]
mov eax, esp
mov dword [eax], edx
call esi
test eax, eax
je 0x1002816f
mov dword [0x10085390], eax
mov ecx, dword [0x10085fe8]
mov ebx, 1
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jle 0x10028340
mov ecx, dword [0x10085fe8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x1002832c
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x1002832c
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call dword [eax + 8]
test eax, eax
je 0x1002832c
mov eax, dword [eax + 0x14]
cmp eax, 0x1b
je 0x100281e8
cmp eax, 0x51
jne 0x1002832c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 3
push eax
lea eax, [ebp - 0x2c]
jmp 0x10028302
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x10085394
push eax
call fcn.10015320
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
add ecx, 0xc
cmp eax, dword [ecx + 8]
je 0x10028216
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x10028223
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.10011af0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
mov ecx, dword [0x10086074]
cmp ecx, dword [edi + 4]
jle 0x10028281
push 0x10086074
call fcn.1002b2a6
mov ecx, dword [0x10086074]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10028281
push str.m_iTeamNum
push str.CBaseEntity
mov dword [ebp - 4], 2
call fcn.10027eb0
push 0x10086074
mov dword [0x10086058], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1002b255
mov ecx, dword [0x10086074]
add esp, 4
mov eax, dword [0x10086058]
mov edx, dword [0x10085388]
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
cmp ecx, dword [edi + 4]
jle 0x100282e7
push 0x10086074
call fcn.1002b2a6
add esp, 4
cmp dword [0x10086074], 0xffffffff
jne 0x100282e1
push str.m_iTeamNum
push str.CBaseEntity
mov dword [ebp - 4], 3
call fcn.10027eb0
push 0x10086074
mov dword [0x10086058], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1002b255
add esp, 4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [0x10086058]
sub ecx, dword [eax + edx]
lea eax, [ebp - 0x24]
neg ecx
push eax
sbb ecx, ecx
lea eax, [ebp - 0x3c]
add ecx, 2
mov dword [ebp - 0x24], ecx
push eax
mov ecx, 0x10085394
call fcn.10015320
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
add ecx, 0xc
cmp eax, dword [ecx + 8]
je 0x10028322
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x1002832c
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.10011af0
mov ecx, dword [0x10085fe8]
inc ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp ebx, eax
jl 0x10028187
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret