Function at 0x100ec160
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015aa71
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x1022a800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0xc8], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
call eax
mov ecx, str.player_hurt
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100ec1d0
test dl, dl
je 0x100ec1cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100ec1d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100ec1b0
xor eax, eax
jmp 0x100ec1d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100ecb7d
cmp dword [0x101be07c], eax
je 0x100ecb7d
mov eax, dword [esi]
mov ecx, esi
push 0
push str.attacker
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x1022b62c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov ecx, dword [0x101be07c]
mov esi, eax
add ecx, 8
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
call edx
cmp eax, esi
jne 0x100ecb7d
mov ecx, dword [ebp - 0xc8]
push 0
push str.userid
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x1022b62c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov ecx, dword [0x1022b630]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x100ecb7d
mov edx, dword [0x101be07c]
cmp eax, edx
je 0x100ecb7d
mov ecx, dword [0x1022b9d8]
mov esi, dword [0x1022b9d0]
test cl, 1
jne 0x100ec290
or ecx, 1
mov eax, esi
mov dword [0x1022b9d8], ecx
mov dword [0x1022b9d4], eax
jmp 0x100ec295
mov eax, dword [0x1022b9d4]
mov edi, dword [ebp - 0xc4]
mov edi, dword [eax + edi]
mov dword [ebp - 0xbc], edi
mov edi, dword [ebp - 0xb8]
test cl, 1
jne 0x100ec2bf
or ecx, 1
mov eax, esi
mov dword [0x1022b9d8], ecx
mov dword [0x1022b9d4], eax
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [eax + edx]
je 0x100ecb7d
mov eax, dword [0x1023ccc4]
test al, 1
jne 0x100ec2ec
or eax, 1
push 0x10164890
mov dword [0x1023ccc4], eax
call fcn.100f7de6
add esp, 4
movd xmm0, dword [0x102338f0]
mov eax, 0x7fffffff
mov ecx, dword [0x10229294]
sub eax, ecx
mov dword [ebp - 0xa4], ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1016ab90]
movss dword [ebp - 0xbc], xmm0
cmp eax, 1
jb 0x100ecb9a
cmp dword [0x10229298], 0xf
mov eax, 0x10229284
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
cmova eax, dword [0x10229284]
mov dword [ebp - 0xb0], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ecx + 1]
mov dword [ebp - 4], 0
mov edx, 0xf
mov dword [ebp - 0xa8], eax
lea esi, [ebp - 0x40]
cmp eax, edx
jbe 0x100ec3b7
or eax, edx
cmp eax, 0x7fffffff
jbe 0x100ec37d
mov eax, 0x7fffffff
jmp 0x100ec387
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10045840
mov edx, dword [ebp - 0xac]
mov esi, eax
mov ecx, dword [ebp - 0xa4]
add esp, 8
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x40], esi
push ecx
push dword [ebp - 0xb0]
mov dword [ebp - 0x30], eax
push esi
mov dword [ebp - 0x2c], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xa4]
mov word [esi + eax], 0x5c
push 0x102338f4
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10045500
push str..wav
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.10045500
add esp, 0x24
lea ecx, [ebp - 0xa0]
call fcn.10047010
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x100ec44d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ec443
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ec443
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f7ad3
add esp, 8
mov eax, dword [0x102338ec]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test eax, eax
je 0x100ec872
cmp eax, 1
je 0x100ec85b
cmp dword [ebp - 0x44], 0xf
lea edx, [ebp - 0x58]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmova edx, dword [ebp - 0x58]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
mov ecx, edx
mov byte [ebp - 4], 6
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ec4a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100458a0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
cmova eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
cmp ecx, 0xf
jbe 0x100ec50b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ec501
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ec501
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f7ad3
add esp, 8
test esi, esi
jne 0x100ec85b
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmova eax, dword [ebp - 0x58]
mov ecx, 0x1022a400
push eax
call fcn.10049570
cmp dword [0x1022a410], esi
jbe 0x100ec872
push 0x1022a400
lea ecx, [ebp - 0x28]
call fcn.10046760
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 1
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x188]
push 0x40
push 0x20
push eax
mov byte [ebp - 4], 7
call fcn.100ea430
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x188], 0x10174ae4
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x18c], eax
push 2
push esi
push esi
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x188]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov esi, dword [eax + 8]
add esi, dword [eax]
push esi
mov dword [ebp - 0xac], esi
call fcn.100f83f2
add esp, 4
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x188]
push 0
push 0
push 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov eax, esi
lea ecx, [ebp - 0x188]
cdq
push edx
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0x178]
call fcn.1008c320
test eax, eax
jne 0x100ec61c
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x188]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x188]
call fcn.1008bfa0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x100ec661
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100ec657
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ec657
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f7ad3
add esp, 8
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x1023ccc0]
test al, 1
jne 0x100ec6a5
or eax, 1
mov dword [0x1023ccc0], eax
mov ecx, 0x1023cca0
mov byte [ebp - 4], 9
call fcn.100ea610
push 0x10164880
call fcn.100f7de6
mov eax, dword [ebp - 0xa8]
add esp, 4
mov byte [ebp - 4], 5
jmp 0x100ec6ab
mov eax, dword [ebp - 0xa4]
movzx eax, al
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp - 0xa7]
xor ecx, eax
movzx eax, byte [ebp - 0xa6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp - 0xa5]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x1023cca0
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.100ea020
cmp dword [eax + 4], 0
jne 0x100ec728
lea eax, [ebp - 0xa8]
mov ecx, 0x1023cca0
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.100ea110
push esi
mov ecx, dword [eax]
add ecx, 0xc
call fcn.100ed0b0
lea eax, [ebp - 0xa8]
mov ecx, 0x1023cca0
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.100ea110
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb0], ecx
movss xmm0, dword [ecx + 0xc]
ucomiss xmm0, dword [ebp - 0xbc]
lahf
test ah, 0x44
jnp 0x100ec849
push esi
push dword [ebp - 0xa8]
push dword [ebp - 0xa4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xb0]
add esp, 0xc
movss xmm1, dword [ebp - 0xbc]
xor esi, esi
movss dword [eax + 0xc], xmm1
mov eax, dword [ebp - 0xac]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x100ec849
mov ecx, dword [ebp - 0xa4]
add ecx, 2
cmp byte [ecx - 2], 0x64
jne 0x100ec7c7
cmp byte [ecx - 1], 0x61
jne 0x100ec7c7
cmp byte [ecx], 0x74
jne 0x100ec7c7
cmp byte [ecx + 1], 0x61
je 0x100ec7e2
inc esi
inc ecx
cmp esi, eax
jl 0x100ec7b0
push 5
push 0
push dword [ebp - 0xa4]
call dword [sym.imp.WINMM.dll_PlaySoundA]
jmp 0x100ec872
test esi, esi
je 0x100ec849
mov ecx, dword [ebp - 0xa4]
mov edx, 0
mov eax, dword [esi + ecx + 4]
lea ecx, [ecx + 8]
shr eax, 1
lea ecx, [ecx + esi]
mov dword [ebp - 0xb0], eax
je 0x100ec849
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa4]
dec esi
add eax, esi
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0xbc], eax
mov edi, eax
movsx eax, word [ecx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov word [ecx], ax
add ecx, 2
cmp ecx, edi
jae 0x100ec843
inc edx
cmp edx, esi
jb 0x100ec822
mov edi, dword [ebp - 0xb8]
push 5
push 0
push dword [ebp - 0xa4]
call dword [sym.imp.WINMM.dll_PlaySoundA]
jmp 0x100ec872
mov ecx, dword [0x1022b62c]
push 0
push str.play_buttons_arena_switch_press_02.wav
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp dword [0x102338c4], 0
jne 0x100ec8a1
cmp byte [0x102338d8], 0
jne 0x100ec8a1
mov eax, dword [edi + 0x31c]
cmp eax, dword [edi + 0x320]
je 0x100ecb75
mov dword [edi + 0x320], eax
jmp 0x100ecb75
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x1c], xmm0
movss xmm0, dword [0x101667dc]
mov dword [ebp - 0x14], eax
movss dword [ebp - 0xa4], xmm0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov esi, dword [edi + 0x310]
xor ecx, ecx
mov dword [ebp - 0xa8], ecx
mov ecx, dword [edi + 0x314]
movd xmm2, eax
sub ecx, esi
cvtdq2ps xmm2, xmm2
mov eax, 0x2e8ba2e9
imul ecx
divss xmm2, dword [0x101667cc]
sar edx, 3
mov eax, edx
shr eax, 0x1f
movss dword [ebp - 0xb8], xmm2
add eax, edx
je 0x100ecb75
xor eax, eax
mov dword [ebp - 0xac], eax
nop dword [eax]
nop dword [eax + eax]
movss xmm0, dword [esi + eax + 0x14]
add esi, eax
addss xmm0, dword [0x10166778]
comiss xmm2, xmm0
jbe 0x100ec97f
mov eax, dword [edi + 0x314]
lea ecx, [esi + 0x2c]
sub eax, ecx
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
movss xmm1, dword [ebp - 0xa4]
add esp, 0xc
add dword [edi + 0x314], 0xffffffd4
jmp 0x100eca7e
movss xmm0, dword [ebp - 0x1c]
sub esp, 0x10
subss xmm0, dword [esi + 0x18]
movsd xmm1, qword [0x10174968]
movsd qword [esp + 8], xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm0, dword [ebp - 0x18]
subss xmm0, dword [esi + 0x1c]
movsd xmm1, qword [0x10174968]
movsd qword [esp + 8], xmm1
fstp qword [ebp - 0xc0]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm0, dword [ebp - 0x14]
subss xmm0, dword [esi + 0x20]
movsd xmm1, qword [0x10174968]
movsd qword [esp + 8], xmm1
fstp qword [ebp - 0xb4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm0, qword [ebp - 0xb4]
add esp, 8
addsd xmm0, qword [ebp - 0xc0]
fstp qword [ebp - 0xd0]
addsd xmm0, qword [ebp - 0xd0]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movss xmm1, dword [ebp - 0xa4]
add esp, 8
fstp dword [ebp - 0xb0]
movss xmm2, dword [ebp - 0xb0]
comiss xmm1, xmm2
ja 0x100eca57
movss xmm0, dword [0x101667dc]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100eca86
movups xmm0, xmmword [esi]
movaps xmm1, xmm2
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [esi + 0x10]
movss dword [ebp - 0xa4], xmm1
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebp - 0x64], xmm0
movss xmm0, dword [0x101667dc]
mov ecx, dword [edi + 0x314]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x310]
sub ecx, esi
add dword [ebp - 0xac], 0x2c
inc dword [ebp - 0xa8]
movss xmm2, dword [ebp - 0xb8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xac]
jb 0x100ec940
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x100ecb75
lea ecx, [edi + 0x31c]
call fcn.100ea400
mov esi, eax
mov eax, dword [ebp - 0xc8]
push 0
push str.dmg_health
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
call edx
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [esi], eax
call edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x101667cc]
movss dword [esi + 8], xmm0
call edi
mov dword [esi + 0x10], 0x3f800000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x64]
divss xmm0, dword [0x101667cc]
movss dword [esi + 0xc], xmm0
movq xmm0, qword [ebp - 0x6c]
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], eax
mov eax, dword [0x1022b7d4]
test al, 1
jne 0x100ecb64
or eax, 1
mov dword [0x1022b7d4], eax
mov eax, dword [0x1022b7c0]
mov dword [0x1022b7d0], eax
jmp 0x100ecb69
mov eax, dword [0x1022b7d0]
mov edi, dword [ebp - 0xc4]
mov eax, dword [eax + edi]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x58]
call fcn.10047010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f7dfb
mov esp, ebp
pop ebp
ret 4
call fcn.10048960
int3