Function at 0x10016520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x10103040]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 0x10175a17
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
call fcn.100b6430
test edi, edi
je 0x10016942
mov eax, dword [0x1016e614]
mov ecx, edi
mov eax, dword [eax]
mov esi, dword [eax + 8]
call fcn.1000ddd0
mov ecx, dword [0x1016e614]
movsx eax, word [eax]
push eax
call esi
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x10016942
push 0x54
lea eax, [esp + 0x7c]
push 0
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
lea ecx, [esp + 0x78]
call fcn.10007a10
mov eax, dword [0x1016ebd4]
mov esi, dword [esp + 0x20]
mov ecx, dword [0x10103ed8]
mov dword [esp + 0x70], vtable.CTraceFilter.0
mov eax, dword [eax]
mov dword [esp + 0x74], eax
movd xmm0, dword [edi + 0xf0]
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
push str.ff_damage_reduction_bullets
mov dword [esp + 0x20], 4
movss dword [esi], xmm0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
movq qword [esp + 0x34], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x10c]
mov eax, dword [eax + 0x44]
movss dword [esp + 0x1c], xmm0
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10103ed8]
push str.ff_damage_bullet_penetration
fstp dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
movss xmm0, dword [esi]
comiss xmm0, dword [0x100fabf8]
fstp dword [esp + 0x48]
jb 0x10016942
nop word [eax + eax]
movss xmm1, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
subss xmm1, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
movaps xmm0, xmm1
movss dword [esp + 0x18], xmm1
mulss xmm0, dword [eax]
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [eax + 4]
addss xmm0, dword [esp + 0x34]
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [eax + 8]
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x60], xmm0
call fcn.10007870
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xd8]
call fcn.100078e0
mov ecx, dword [0x10103f00]
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x74]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xd8]
push 0x4600400b
push edx
call dword [eax + 0x14]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x30]
movss xmm1, dword [0x100facf4]
mov ecx, dword [esp + 0x44]
movss xmm0, dword [eax]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x78]
mulss xmm0, xmm1
push eax
sub esp, 8
lea eax, [esp + 0x70]
addss xmm0, dword [esp + 0x34]
push eax
movss dword [esp + 0x7c], xmm0
call fcn.10015530
mov ecx, dword [0x10104028]
add esp, 0x10
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
movsx eax, word [esp + 0xb8]
push eax
call edx
movss xmm0, dword [eax + 0x58]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xa4]
ucomiss xmm0, dword [0x100fabf8]
lahf
test ah, 0x44
jnp 0x10016942
mulss xmm0, dword [esp + 0x18]
addss xmm0, dword [esp + 0x14]
movaps xmm1, xmm0
movss xmm0, dword [edi + 0x110]
movss dword [esp + 0x14], xmm1
divss xmm1, dword [0x100fad5c]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
call sub.ucrtbased.dll__libm_sse2_pow_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esi]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [esp + 0x18]
jbe 0x1001681b
movss xmm0, dword [edi + 0x100]
ucomiss xmm0, dword [0x100faaf8]
lahf
test ah, 0x44
jp 0x10016942
movss xmm0, dword [0x100fab74]
comiss xmm0, dword [esp + 0x28]
ja 0x10016942
mov eax, dword [esp + 0xbc]
cmp eax, 0xa
je 0x10016843
mov byte [esp + 0x13], 1
test eax, eax
jne 0x10016848
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x278]
call eax
mov edi, dword [esp + 0xc4]
mov byte [esp + 0x12], al
test edi, edi
jne 0x1001686c
xor cl, cl
jmp 0x100168d1
mov eax, dword [0x1016ebd4]
mov ecx, dword [eax]
call fcn.10007b60
mov ecx, edi
mov esi, eax
call fcn.10007b60
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x100168aa
mov ecx, dword [0x10103ed8]
push str.mp_teammates_are_enemies
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x34]
call eax
test eax, eax
jne 0x100168aa
mov cl, 1
jmp 0x100168c9
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10103ec8]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
call edx
cmp esi, eax
sete cl
mov al, byte [esp + 0x12]
mov esi, dword [esp + 0x20]
cmp byte [esp + 0x13], 0
je 0x100168e0
test al, al
je 0x100168e0
test cl, cl
je 0x10016958
cmp dword [esp + 0x1c], 0
jle 0x10016942
movss xmm0, dword [esp + 0x48]
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x24]
sub esp, 8
mov edi, dword [esp + 0x34]
mov ecx, edi
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp], xmm0
push esi
push eax
push edx
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x90]
call fcn.100161e0
add esp, 0x18
test al, al
je 0x10016942
mov eax, dword [esp + 0x50]
mov byte [eax], 0
movss xmm0, dword [esi]
comiss xmm0, dword [0x100fabf8]
jae 0x10016670
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.100b3fd0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc4]
lea edx, [esp + 0x78]
push esi
push dword [esp + 0x30]
call fcn.10015ac0
mov ecx, dword [esp + 0x5c]
add esp, 8
mov eax, dword [esp + 0xc8]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.100b3fd0
mov esp, ebp
pop ebp
ret