Function at 0x101015a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
mov ecx, 0x1029a4a0
lea eax, [ebp - 0x34]
push eax
call fcn.10050670
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x34]
setae bh
cmovae ecx, edx
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x10101606
test al, al
je 0x10101602
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x10101606
add esi, 2
add ecx, 2
test al, al
jne 0x101015e6
xor eax, eax
jmp 0x1010160b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010161b
cmp dword [0x101cf098], eax
je 0x1010161b
xor bl, bl
jmp 0x1010161d
mov bl, 1
test bh, bh
je 0x1010164f
mov ecx, dword [ebp - 0x20]
mov eax, edx
inc ecx
cmp ecx, 0x1000
jb 0x10101645
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10101645
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10138f1a
add esp, 8
test bl, bl
jne 0x10101f46
mov ebx, dword [ebp - 0x94]
mov ecx, 0x1029a4b8
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x34]
push eax
call fcn.1004f340
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
mov ecx, ebx
push eax
call esi
mov ecx, dword [0x1029bb40]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov edx, dword [ebp - 0x20]
mov esi, eax
cmp edx, 0x10
jb 0x101016c8
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101016be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101016be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov ecx, dword [0x101cf098]
add ecx, 8
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp eax, esi
jne 0x10101f46
mov eax, dword [ebx]
mov ecx, 0x1029a4d0
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x34]
push eax
call fcn.1005c450
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
mov ecx, ebx
push eax
call esi
mov ecx, dword [0x1029bb40]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.10044260
mov ecx, dword [0x1029bb44]
push esi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebx, eax
mov dword [ebp - 0x9c], ebx
test ebx, ebx
je 0x10101f46
mov edx, dword [0x101cf098]
cmp ebx, edx
je 0x10101f46
mov ecx, dword [0x1029e1f8]
mov esi, dword [0x1029e1f0]
test cl, 1
jne 0x10101768
or ecx, 1
mov eax, esi
mov dword [0x1029e1f8], ecx
mov dword [0x1029e1f4], eax
jmp 0x1010176d
mov eax, dword [0x1029e1f4]
mov ebx, dword [eax + ebx]
test cl, 1
jne 0x10101785
or ecx, 1
mov eax, esi
mov dword [0x1029e1f8], ecx
mov dword [0x1029e1f4], eax
cmp ebx, dword [eax + edx]
je 0x10101f46
mov eax, dword [0x102ade3c]
test al, 1
jne 0x101017ca
or eax, 1
mov dword [0x102ade24], 0
push 0x1019c9d0
mov dword [0x102ade3c], eax
mov dword [0x102ade38], 0xf
mov dword [0x102ade34], 0
call fcn.1013922d
add esp, 4
movd xmm0, dword [0x1028e9b4]
lea eax, [ebp - 0x4c]
cvtdq2ps xmm0, xmm0
push eax
mov ecx, 0x1029a4e8
mulss xmm0, dword [0x101a2c80]
movss dword [ebp - 0x98], xmm0
call fcn.1004eb10
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
mov ecx, dword [0x102a3768]
cmovae eax, dword [ebp - 0x4c]
mov dword [ebp - 0x8c], eax
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x80], ecx
cmp eax, 1
jb 0x10101f59
cmp dword [0x102a376c], 0x10
lea ebx, [ebp - 0x1c]
mov eax, 0x102a3758
mov dword [ebp - 0x1c], 0
cmovae eax, dword [0x102a3758]
mov esi, 0xf
mov dword [ebp - 0x84], eax
lea eax, [ecx + 1]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x88], eax
cmp eax, esi
jbe 0x10101898
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10101874
mov esi, 0x7fffffff
jmp 0x1010187e
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10045a70
mov ecx, dword [ebp - 0x80]
mov ebx, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], ebx
push ecx
push dword [ebp - 0x84]
mov dword [ebp - 0xc], eax
push ebx
mov dword [ebp - 8], esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
push 0x1028e9b8
mov word [ebx + eax], 0x5c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10042a80
push dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10042a80
add esp, 0x24
lea ecx, [ebp - 0x64]
call fcn.10044260
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10101917
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1010190d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1010190d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.10044260
mov eax, dword [0x1028e9b0]
test eax, eax
je 0x10101cc4
cmp eax, 1
je 0x10101c93
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x34]
mov ecx, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10101970
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.100464c0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov edx, dword [ebp - 8]
add esp, 8
test eax, eax
setne bl
cmp edx, 0x10
jb 0x101019d7
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101019cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101019cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
test bl, bl
jne 0x10101c93
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
mov ecx, 0x102ade24
push eax
call fcn.100464c0
cmp dword [0x102ade34], 0
jbe 0x10101cc4
push 0x102ade24
lea ecx, [ebp - 0x4c]
call fcn.10043d50
push 1
push 0x40
push 0x20
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x154]
call fcn.10085f20
push 2
push 0
push 0
lea ecx, [ebp - 0x154]
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 - 0x64]
push eax
lea ecx, [ebp - 0x154]
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 ebx, dword [eax + 8]
add ebx, dword [eax]
push ebx
mov dword [ebp - 0x88], ebx
call fcn.10139b85
add esp, 4
lea ecx, [ebp - 0x154]
mov esi, eax
mov dword [ebp - 0x8c], esi
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, ebx
lea ecx, [ebp - 0x154]
cdq
push edx
push eax
push esi
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 - 0x144]
call fcn.100866f0
test eax, eax
jne 0x10101ab2
push eax
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x154]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x154]
call fcn.100863d0
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x10101af3
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10101ae9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10101ae9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov eax, dword [0x102ade20]
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], edx
test al, 1
jne 0x10101b2d
or eax, 1
mov ecx, 0x102ade00
mov dword [0x102ade20], eax
call fcn.10059e10
push 0x1019c9c0
call fcn.1013922d
mov edx, dword [ebp - 0x84]
add esp, 4
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp - 0x82]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp - 0x81]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x102ade00
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10059950
cmp dword [eax + 4], 0
jne 0x10101ba6
lea eax, [ebp - 0x84]
mov ecx, 0x102ade00
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10059bd0
push ebx
mov ecx, dword [eax]
add ecx, 0xc
call fcn.1005a9a0
lea eax, [ebp - 0x84]
mov ecx, 0x102ade00
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10059bd0
mov esi, dword [eax]
movss xmm0, dword [esi + 0x18]
ucomiss xmm0, dword [ebp - 0x98]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x80], ebx
lahf
test ah, 0x44
jnp 0x10101c86
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x88]
add esp, 0xc
movss xmm1, dword [ebp - 0x98]
cdq
sub eax, edx
movss dword [esi + 0x18], xmm1
sar eax, 1
xor esi, esi
test eax, eax
jle 0x10101c86
lea ecx, [ebx + 2]
cmp byte [ecx - 2], 0x64
jne 0x10101c29
cmp byte [ecx - 1], 0x61
jne 0x10101c29
cmp byte [ecx], 0x74
jne 0x10101c29
cmp byte [ecx + 1], 0x61
je 0x10101c3f
inc esi
inc ecx
cmp esi, eax
jl 0x10101c12
push 5
push 0
push ebx
call dword [sym.imp.WINMM.dll_PlaySoundA]
jmp 0x10101cc4
test esi, esi
je 0x10101c86
mov eax, dword [ebp - 0x80]
mov edx, 0
mov ebx, dword [esi + ebx + 4]
shr ebx, 1
lea ecx, [eax + 8]
lea ecx, [ecx + esi]
je 0x10101c83
mov esi, dword [ebp - 0x88]
dec esi
add esi, 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, esi
jae 0x10101c83
inc edx
cmp edx, ebx
jb 0x10101c62
mov ebx, dword [ebp - 0x80]
push 5
push 0
push ebx
call dword [sym.imp.WINMM.dll_PlaySoundA]
jmp 0x10101cc4
mov ecx, dword [ebp - 0x94]
push 0
push 0x101aba5c
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [0x1029bb38]
cmp eax, 1
mov eax, dword [ecx]
je 0x10101cb9
push str.buttons_arena_switch_press_02.wav
jmp 0x10101cbe
push str.physics_metal_soda_can_impact_hard1.wav
call dword [eax + 0x148]
cmp dword [0x1028e988], 0
jne 0x10101cf3
cmp byte [0x1028e99c], 0
jne 0x10101cf3
mov eax, dword [edi + 0x31c]
cmp eax, dword [edi + 0x320]
je 0x10101f3e
mov dword [edi + 0x320], eax
jmp 0x10101f3e
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x10], xmm0
movss xmm0, dword [0x1019e890]
mov dword [ebp - 8], eax
movss dword [ebp - 0x80], 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 - 0x88], ecx
mov ecx, dword [edi + 0x314]
movd xmm2, eax
sub ecx, esi
mov eax, 0x2e8ba2e9
imul ecx
cvtdq2ps xmm2, xmm2
sar edx, 3
mulss xmm2, dword [0x1019e7c8]
mov eax, edx
shr eax, 0x1f
movss dword [ebp - 0x8c], xmm2
add eax, edx
je 0x10101f3e
xor ebx, ebx
nop dword [eax + eax]
movss xmm0, dword [esi + ebx + 0x14]
lea edx, [esi + ebx]
addss xmm0, dword [0x1019e834]
comiss xmm2, xmm0
jbe 0x10101dba
mov eax, dword [edi + 0x314]
lea ecx, [edx + 0x2c]
sub eax, ecx
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memmove
movss xmm1, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 0x314], 0xffffffd4
jmp 0x10101e38
movss xmm0, dword [ebp - 0xc]
subss xmm0, dword [edx + 0x1c]
cvtps2pd xmm2, xmm0
movss xmm0, dword [ebp - 0x10]
subss xmm0, dword [edx + 0x18]
mulsd xmm2, xmm2
cvtps2pd xmm1, xmm0
movss xmm0, dword [ebp - 8]
subss xmm0, dword [edx + 0x20]
mulsd xmm1, xmm1
cvtps2pd xmm0, xmm0
addsd xmm1, xmm2
mulsd xmm0, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
sqrtsd xmm0, xmm1
movss xmm1, dword [ebp - 0x80]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x10101e17
ucomiss xmm1, dword [0x1019e890]
lahf
test ah, 0x44
jp 0x10101e38
movaps xmm1, xmm0
movups xmm0, xmmword [edx]
movss dword [ebp - 0x80], xmm1
movups xmmword [ebp - 0x78], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [edx + 0x20]
movq qword [ebp - 0x58], xmm0
mov ecx, dword [edi + 0x314]
mov eax, 0x2e8ba2e9
mov esi, dword [edi + 0x310]
add ebx, 0x2c
inc dword [ebp - 0x88]
sub ecx, esi
movss xmm2, dword [ebp - 0x8c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x88], eax
jb 0x10101d80
ucomiss xmm1, dword [0x1019e890]
lahf
test ah, 0x44
jnp 0x10101f3e
lea ecx, [edi + 0x31c]
call fcn.100ff620
mov ebx, dword [ebp - 0x94]
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x18]
mov ecx, 0x1029a4f8
call fcn.10050590
cmp dword [ebp - 0x38], 0x10
lea edx, [ebp - 0x4c]
push 0
cmovae edx, dword [ebp - 0x4c]
mov ecx, ebx
push edx
call esi
lea ecx, [ebp - 0x4c]
mov dword [edi], eax
call fcn.10044260
mov esi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
call esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1019e7c8]
movss dword [edi + 8], xmm0
call esi
mov dword [edi + 0x10], 0x3f800000
movd xmm0, eax
mov eax, dword [ebp - 0x58]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1019e7c8]
movss dword [edi + 0xc], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [edi + 0x18], xmm0
mov dword [edi + 0x20], eax
mov eax, dword [0x1029bcf4]
test al, 1
jne 0x10101f2d
or eax, 1
mov dword [0x1029bcf4], eax
mov eax, dword [0x1029bce0]
mov dword [0x1029bcf0], eax
jmp 0x10101f32
mov eax, dword [0x1029bcf0]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [eax + ecx]
mov dword [edi + 4], eax
lea ecx, [ebp - 0x34]
call fcn.10044260
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10139242
mov esp, ebp
pop ebp
ret 4
call fcn.10045990
int3