Function at 0x10099170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a76c5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100df040]
xor eax, ebp
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 dword [ebp - 0x28], eax
test eax, eax
je 0x100996be
mov ecx, eax
call fcn.1002a420
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x18], eax
sub ecx, 2
je 0x100991dd
sub ecx, 1
jne 0x100996be
mov ecx, dword [0x100e2f44]
mov esi, 1
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, esi
jle 0x100996be
mov ecx, dword [0x100e2f10]
mov eax, dword fs:[0x2c]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
mov ecx, dword [0x100e2f44]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je case.0x10099382.70
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne case.0x10099382.70
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call dword [eax + 8]
test eax, eax
je case.0x10099382.70
mov eax, dword [eax + 0x14]
cmp eax, 0x1f
jg 0x1009936d
je 0x100992fb
sub eax, 1
jne case.0x10099382.70
mov ecx, esi
call fcn.10098fe0
mov edi, eax
mov ecx, 0x100e3cdc
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.10099dc0
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x100992bf
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jl 0x100992bf
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xb
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x100992b0
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x100992bf
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.10098fe0
mov edi, eax
mov ecx, 0x100e3ce4
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.10099dc0
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne case.0x10099382.70
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jl case.0x10099382.70
mov dword [ebp - 0x20], 0xc
jmp 0x100996e5
mov ecx, dword [ebx]
mov eax, dword [0x100e3a6c]
cmp eax, dword [ecx + 4]
jle 0x1009934f
push 0x100e3a6c
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3a6c], 0xffffffff
jne 0x1009934f
mov edx, str.m_bDistributed
mov dword [ebp - 4], 3
mov ecx, str.CCurrencyPack
call fcn.1009b460
push 0x100e3a6c
mov dword [0x100e3a70], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e3a70]
cmp byte [eax + esi], 0
jne case.0x10099382.70
mov dword [ebp - 0x24], 0xe
lea eax, [ebp - 0x24]
jmp 0x100996e8
sub eax, 0x45
cmp eax, 0xc4
ja case.0x10099382.70
movzx eax, byte [eax + 0x1009971c]
jmp dword [eax*4 + 0x10099704]
mov edi, dword [ebx]
mov eax, dword [0x100e3124]
cmp eax, dword [edi + 4]
jle 0x100993dd
push 0x100e3124
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3124], 0xffffffff
jne 0x100993dd
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 [eax + esi], 0
je 0x10099478
mov eax, dword [0x100e3798]
cmp eax, dword [edi + 4]
jle 0x1009943e
push 0x100e3798
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3798], 0xffffffff
jne 0x1009943e
mov edx, str.m_iObserverMode
mov dword [ebp - 4], 1
mov ecx, str.CBasePlayer
call fcn.1009b460
push 0x100e3798
mov dword [0x100e3794], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e3794]
cmp dword [eax + esi], 0
je 0x10099478
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 3
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x10099469
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x10099478
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.1002a420
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x10099491
sub eax, 1
jne case.0x10099382.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x100994c0
mov dword [ecx], esi
add dword [eax + 4], 4
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100996e5
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100996e5
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
jmp case.0x10099382.70
mov ecx, esi
call fcn.1002a420
mov edi, dword [eax]
mov eax, edi
sub eax, 2
je 0x1009950a
sub eax, 1
jne case.0x10099382.70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009953b
mov dword [ecx], esi
add dword [eax + 4], 4
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 5
mov dword [ebp - 0x20], eax
jmp 0x100996e5
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], edi
sete al
add eax, 5
mov dword [ebp - 0x20], eax
jmp 0x100996e5
mov ecx, esi
call fcn.1002a420
mov ebx, dword [eax]
mov eax, ebx
sub eax, 2
je 0x10099576
sub eax, 1
jne 0x100996a1
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 8]
test eax, eax
je 0x1009964d
cmp dword [eax + 0x14], 0xd9
jne 0x1009964d
mov ecx, esi
call fcn.10025040
test al, al
je 0x1009964d
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x100e3988]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x100995fa
push 0x100e3988
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e3988], 0xffffffff
jne 0x100995fa
mov edx, str.m_hThrower
mov dword [ebp - 4], 2
mov ecx, str.CBaseGrenade
call fcn.1009b460
push 0x100e3988
mov dword [0x100e3980], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e2f44]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x100e3980]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x100e2f44]
call edx
cmp eax, dword [ebp - 0x28]
jne 0x1009964d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xa
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009963e
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009964d
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 7
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1009966d
mov dword [ecx], esi
add dword [eax + 4], 4
jmp 0x1009967c
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x100996d0
mov dword [ecx], esi
add dword [eax + 4], 4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [0x100e2f44]
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp esi, eax
jl 0x10099210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, eax
call fcn.10021870
jmp 0x100996a1
mov dword [ebp - 0x20], 0xd
lea eax, [ebp - 0x20]
push eax
call fcn.10099cd0
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x100994e0
mov dword [ecx], esi
add dword [eax + 4], 4
jmp case.0x10099382.70