Function at 0x10061610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10112040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x10115df4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10115de8]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10115de8]
push eax
call esi
mov edi, eax
test edi, edi
je 0x10061abd
mov edx, dword [0x10115da8]
mov ecx, dword fs:[0x2c]
mov eax, dword [0x10115fcc]
mov ebx, dword [ecx + edx*4]
cmp eax, dword [ebx + 4]
jle 0x100616cb
push 0x10115fcc
call fcn.100a090d
add esp, 4
cmp dword [0x10115fcc], 0xffffffff
jne 0x100616cb
mov edx, str.deadflag
mov dword [ebp - 4], 0
mov ecx, str.CBasePlayer
call fcn.1009c240
push 0x10115fcc
mov dword [0x10115fe4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x10115fe4]
cmp dword [edi + eax], 0
jne 0x10061abd
mov ecx, edi
call fcn.10025dd0
test al, al
jne 0x10061abd
push 0x4e
mov ecx, edi
call fcn.10023960
test al, al
jne 0x10061abd
push 0x1f
mov ecx, edi
call fcn.10023960
test al, al
jne 0x10061abd
push 0x13
mov ecx, edi
call fcn.10023960
test al, al
jne 0x10061abd
mov eax, dword [0x10117010]
cmp eax, dword [ebx + 4]
jle 0x1006176f
push 0x10117010
call fcn.100a090d
add esp, 4
cmp dword [0x10117010], 0xffffffff
jne 0x1006176f
mov dword [ebp - 4], 1
mov ecx, dword [0x10115ddc]
push str.tf_weapon_criticals
mov eax, dword [ecx]
call dword [eax + 0x34]
push 0x10117010
mov dword [0x10116ff0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x10116ff0]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 0
je 0x10061abd
mov eax, dword [0x10115de8]
mov ecx, dword [0x10115df4]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10115de8]
push eax
call esi
test eax, eax
je 0x10061ab6
mov ecx, eax
call fcn.10037a80
mov ecx, dword [0x10115de8]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x10]
mov ecx, dword [eax]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10115de8]
call edx
test eax, eax
je 0x10061ab6
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5f4]
mov ecx, eax
call edx
cmp eax, 7
je 0x10061abd
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
je 0x1006188d
mov ecx, esi
call fcn.100257d0
test al, al
je 0x10061abd
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x18
je 0x10061968
cmp eax, 0x5b
je 0x10061968
mov eax, dword [0x10115fe0]
cmp eax, dword [ebx + 4]
jle 0x1006187f
push 0x10115fe0
call fcn.100a090d
add esp, 4
cmp dword [0x10115fe0], 0xffffffff
jne 0x1006187f
mov edx, str.m_iItemDefinitionIndex
mov dword [ebp - 4], 2
mov ecx, str.CEconEntity
call fcn.1009c240
push 0x10115fe0
mov dword [0x10115fb0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x10115fb0]
cmp dword [eax + esi], 0x2da
je 0x1006189a
mov eax, dword [ebp - 0x18]
test byte [eax + 0x24], 1
je 0x10061abd
cmp byte [0x101164a2], 0
je 0x10061abd
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x10061a88
mov eax, dword [0x10116fe4]
cmp eax, dword [ebx + 4]
jle 0x1006191c
push 0x10116fe4
call fcn.100a090d
add esp, 4
cmp dword [0x10116fe4], 0xffffffff
jne 0x1006191c
mov dword [ebp - 4], 3
mov ecx, dword [0x10115ddc]
push str.tf_weapon_criticals_melee
mov eax, dword [ecx]
call dword [eax + 0x34]
push 0x10116fe4
mov dword [0x1011700c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x1011700c]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 0
je 0x10061abd
movsx eax, word [0x10115e74]
mov eax, dword [eax*4 + 0x10116050]
cmp eax, 1
je 0x10061987
cmp eax, 2
je 0x10061987
cmp byte [0x10112300], 0
je 0x10061abd
push 0
lea ecx, [ebp - 0x24]
call fcn.10061ae0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
jmp 0x10061abd
test byte [0x101164a4], 1
je 0x10061abd
mov eax, dword [ebp - 0x18]
test byte [eax + 0x24], 1
jne 0x10061abd
jmp 0x100618a7
mov edx, dword [0x101123e4]
test edx, edx
je 0x10061aa4
mov ecx, dword [0x10115de8]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x10061aa4
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
call dword [edx + 8]
test eax, eax
je 0x10061aa4
cmp dword [eax + 0x14], 0xf7
jne 0x10061aa4
mov ecx, dword [0x101164dc]
cmp ecx, dword [ebx + 4]
jle 0x10061a24
push 0x101164dc
call fcn.100a090d
mov ecx, dword [0x101164dc]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10061a24
mov edx, str.m_iTeamNum
mov dword [ebp - 4], 4
mov ecx, str.CBaseEntity
call fcn.1009c240
push 0x101164dc
mov dword [0x101164d4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
mov ecx, dword [0x101164dc]
add esp, 4
add esi, dword [0x101164d4]
cmp ecx, dword [ebx + 4]
jle 0x10061a77
push 0x101164dc
call fcn.100a090d
add esp, 4
cmp dword [0x101164dc], 0xffffffff
jne 0x10061a77
mov edx, str.m_iTeamNum
mov dword [ebp - 4], 5
mov ecx, str.CBaseEntity
call fcn.1009c240
push 0x101164dc
mov dword [0x101164d4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a08bc
add esp, 4
mov eax, dword [0x101164d4]
mov ecx, dword [esi]
cmp ecx, dword [edi + eax]
jne 0x10061aa4
jmp 0x10061946
movsx eax, word [0x10115ed0]
mov eax, dword [eax*4 + 0x10116050]
cmp eax, 1
je 0x10061aa4
cmp eax, 2
jne 0x10061946
push 1
lea ecx, [ebp - 0x24]
call fcn.10061ae0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
jmp 0x10061abd
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a04fe
mov esp, ebp
pop ebp
ret 4