Function at 0x1007d41b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x100b9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x1007db86
cmp dword [0x100b92e0], 0
je 0x1007db86
mov ebx, dword [eax + 8]
mov eax, dword [0x10117cb0]
test al, 1
jne 0x1007d23f
or eax, 1
mov dword [0x10117cb0], eax
mov edx, 0x990704d7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b8]
call fcn.10040e60
push 0xda7d68cb
mov edx, eax
mov ecx, 0x10117cb4
call fcn.10041260
push 0x100a56a0
call fcn.1009b7b5
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x10117cb4]
call eax
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
test ebx, ebx
je 0x1007d2b8
test ecx, ecx
je 0x1007d2b8
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1007d2b8
nop dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1007d2a9
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007d280
xor edx, edx
test ecx, ecx
je 0x1007d2a9
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007d290
cmp edi, 0xd791104e
je 0x1007d2ba
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x1007d2b8
mov ecx, dword [ebp - 0x1a4]
jmp 0x1007d260
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x1007d2c4.2
jmp dword [eax*4 + 0x1007dba4]
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edx, eax
jmp 0x1007d302
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov edx, eax
jmp 0x1007d302
movss xmm0, dword [ebx + 0xc]
call fcn.10023390
cvttss2si edx, xmm0
jmp 0x1007d302
xor edx, edx
jmp 0x1007d302
mov edx, dword [ebx + 0xc]
mov ecx, dword [0x10112028]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ebx, dword [ebp - 0x1a8]
mov ecx, dword [0x10117cb0]
mov dword [ebp - 0x1ac], eax
mov ebx, dword [ebx + 8]
test cl, 1
jne 0x1007d369
or ecx, 1
mov dword [0x10117cb0], ecx
mov edx, 0x990704d7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b8]
call fcn.10040e60
push 0xda7d68cb
mov edx, eax
mov ecx, 0x10117cb4
call fcn.10041260
push 0x100a56a0
call fcn.1009b7b5
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x10117cb4]
call eax
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
test ebx, ebx
je 0x1007d3d8
test ecx, ecx
je 0x1007d3d8
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1007d3d8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1007d3c9
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007d3a3
xor edx, edx
test ecx, ecx
je 0x1007d3c9
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007d3b0
cmp edi, 0x11ab48ff
je 0x1007d3da
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x1007d3d8
mov ecx, dword [ebp - 0x1a4]
jmp 0x1007d387
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x1007d3e4.2
jmp dword [eax*4 + 0x1007dbc0]
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edx, eax
jmp 0x1007d422
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov edx, eax
jmp 0x1007d422
movss xmm0, dword [ebx + 0xc]
call fcn.10023390
cvttss2si edx, xmm0
jmp 0x1007d422
xor edx, edx
jmp 0x1007d422
mov edx, dword [ebx + 0xc]
mov ecx, dword [0x10112028]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [ebp - 0x1ac]
mov ebx, eax
mov dword [ebp - 0x1b0], ebx
lea ecx, [esi - 1]
cmp ecx, 0x3f
ja 0x1007db50
lea ecx, [ebx - 1]
cmp ecx, 0x3f
ja 0x1007db50
mov ecx, dword [0x10112028]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp esi, eax
jne 0x1007db50
mov ecx, dword [0x10112028]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp ebx, eax
je 0x1007db50
mov eax, dword [ebp - 0x1a8]
mov ebx, dword [eax + 8]
mov eax, dword [0x10117cb0]
test al, 1
jne 0x1007d4cd
or eax, 1
mov dword [0x10117cb0], eax
mov edx, 0x990704d7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.10040e60
push 0xda7d68cb
mov edx, eax
mov ecx, 0x10117cb4
call fcn.10041260
push 0x100a56a0
call fcn.1009b7b5
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x10117cb4]
call eax
mov ecx, eax
mov dword [ebp - 0x1ac], ecx
test ebx, ebx
je 0x1007d548
test ecx, ecx
je 0x1007d548
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1007d548
nop dword [eax + eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1007d539
mov edi, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007d510
xor edx, edx
test ecx, ecx
je 0x1007d539
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007d520
cmp edi, 0x2a7e565d
je 0x1007d54a
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x1007d548
mov ecx, dword [ebp - 0x1ac]
jmp 0x1007d4f0
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x1007d554.2
jmp dword [eax*4 + 0x1007dbdc]
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov ebx, eax
jmp 0x1007d5a0
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [ebp - 0x1a4], eax
mov ebx, eax
jmp 0x1007d5a6
movss xmm0, dword [ebx + 0xc]
call fcn.10023390
cvttss2si ebx, xmm0
jmp 0x1007d5a0
mov dword [ebp - 0x1a4], 0
jmp 0x1007d5af
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x1a4], ebx
cmp ebx, 0xa
je 0x1007db50
mov ecx, dword [0x1011202c]
mov esi, dword [ebp - 0x1b0]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x1007db50
mov ecx, dword [0x10112028]
lea edx, [ebp - 0x1a0]
push edx
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x1007db50
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007d603
sub ecx, edx
lea eax, [ebp - 0x190]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10021da0
push 0x18
push 0
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.100406e0
push eax
lea ecx, [ebp - 0x48]
call fcn.100381f0
mov edx, dword [ebp - 0x1b0]
cmp edx, 0x10
jb 0x1007d678
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007d66e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007d66e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009b7cf
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
cmp edx, 0x10
jb 0x1007d6cd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007d6c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007d6c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009b7cf
add esp, 8
mov eax, dword [ebp - 0x1a8]
mov ebx, dword [eax + 8]
mov eax, dword [0x10117cb0]
test al, 1
jne 0x1007d71a
or eax, 1
mov dword [0x10117cb0], eax
mov edx, 0x990704d7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.10040e60
push 0xda7d68cb
mov edx, eax
mov ecx, 0x10117cb4
call fcn.10041260
push 0x100a56a0
call fcn.1009b7b5
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x10117cb4]
call eax
mov ecx, eax
mov dword [ebp - 0x1b0], ecx
test ebx, ebx
je 0x1007d789
test ecx, ecx
je 0x1007d789
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1007d789
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1007d77a
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007d754
xor edx, edx
test ecx, ecx
je 0x1007d77a
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007d761
cmp edi, 0xa0d9523e
je 0x1007d78b
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x1007d789
mov ecx, dword [ebp - 0x1b0]
jmp 0x1007d738
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x1007d795.2
jmp dword [eax*4 + 0x1007dbf8]
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
jmp 0x1007d7cf
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
jmp 0x1007d7cf
movss xmm0, dword [ebx + 0xc]
call fcn.10023390
cvttss2si eax, xmm0
jmp 0x1007d7cf
xor eax, eax
jmp 0x1007d7cf
mov eax, dword [ebx + 0xc]
movd xmm0, eax
mov eax, dword [ebp - 0x1a8]
cvtdq2ps xmm0, xmm0
mov ebx, dword [eax + 8]
mov eax, dword [0x10117cb0]
movss dword [ebp - 0x14], xmm0
test al, 1
jne 0x1007d828
or eax, 1
mov dword [0x10117cb0], eax
mov edx, 0x990704d7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.10040e60
push 0xda7d68cb
mov edx, eax
mov ecx, 0x10117cb4
call fcn.10041260
push 0x100a56a0
call fcn.1009b7b5
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x10117cb4]
call eax
mov ecx, eax
mov dword [ebp - 0x1b0], ecx
test ebx, ebx
je 0x1007d898
test ecx, ecx
je 0x1007d898
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1007d898
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov eax, dword [ebx]
and eax, 0xffffff
push eax
call edx
mov esi, eax
test esi, esi
je 0x1007d889
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007d862
xor edx, edx
test ecx, ecx
je 0x1007d889
nop
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007d870
cmp edi, 0x6b98ed8f
je 0x1007d89a
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x1007d898
mov ecx, dword [ebp - 0x1b0]
jmp 0x1007d846
xor ebx, ebx
movsx eax, byte [ebx + 0x10]
dec eax
cmp eax, 6
ja case.0x1007d8a4.2
jmp dword [eax*4 + 0x1007dc14]
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov ecx, eax
jmp 0x1007d8e2
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ecx, eax
jmp 0x1007d8e2
movss xmm0, dword [ebx + 0xc]
call fcn.10023390
cvttss2si ecx, xmm0
jmp 0x1007d8e2
xor ecx, ecx
jmp 0x1007d8e2
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x30], ecx
cmp edx, 1
jne 0x1007d908
cvttss2si eax, dword [ebp - 0x14]
cmp eax, ecx
jl 0x1007d8ff
inc dword [0x100cd4c4]
mov byte [0x100cd4c8], 1
jmp 0x1007d90f
mov byte [0x100cd4c8], 0
cmp byte [0x100c06fc], 0
je 0x1007d970
mov eax, dword [0x10112084]
mov ecx, dword [0x1011207c]
mov dword [0x10117bcc], 0x3f800000
push ecx
movss xmm0, dword [eax + 0x10]
movss dword [0x10117bc4], xmm0
addss xmm0, dword [0x100ad748]
mov dword [esp], 0
push 0
push 0x64
push ecx
movss dword [0x10117bc8], xmm0
mov eax, dword [ecx]
mov dword [esp], 0x3f800000
push str.buttons_arena_switch_press_02.wav
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [ebp - 0x1a4]
mov eax, dword [0x100cb6d4]
mov ecx, dword [0x100cb6d8]
cmp eax, ecx
je 0x1007dab2
cmp dword [eax], 0
je 0x1007d98f
add eax, 4
cmp eax, ecx
jne 0x1007d983
cmp eax, ecx
je 0x1007dab2
lea ecx, [ebp - 0x30]
push ecx
lea eax, [edx + edx*2]
mov edx, str.hit__s_in_the__s_for__i_damage___i_health_remaining__n
lea ecx, [ebp - 0x14]
push ecx
lea eax, [eax*8 + 0x100cd370]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10046430
mov byte [ebp - 4], 7
mov esi, dword [0x100a7dc0]
push 0x34
call fcn.1009b356
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x1b0], ebx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c]
lea edi, [ebx + 0xc]
mov dword [ebx + 4], 1
push eax
mov ecx, edi
mov dword [ebx + 8], 1
mov dword [ebx], 0x100a82b8
call fcn.10027510
xorps xmm0, xmm0
mov dword [edi + 0x18], esi
movlpd qword [ebp - 0x1b4], xmm0
mov dword [edi + 0x1c], 0x40a00000
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b0], ebx
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 9
push eax
call fcn.100273e0
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x1b0]
test esi, esi
je 0x1007da5d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1007da5d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1007da5d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10027510
push 0x100b92e0
call fcn.1002f8f0
mov edx, dword [ebp - 0x18]
add esp, 0x1c
cmp edx, 0x10
jb 0x1007dab2
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007daa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007daa8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009b7cf
add esp, 8
mov esi, dword [0x100cd48c]
mov edi, dword [0x100cd490]
cmp esi, edi
je 0x1007dae9
mov edx, dword [0x10112290]
mov eax, dword [0x100b92e0]
add edx, 0xffffffc1
mov ecx, dword [esi + 0x18]
xor edx, 0x7e88121d
cmp ecx, dword [edx + eax]
jne 0x1007dae2
mov byte [esi + 0x1d], 1
add esi, 0x20
cmp esi, edi
jne 0x1007dac2
mov ecx, dword [0x100cd484]
xor edx, edx
mov esi, dword [0x100cd488]
movss xmm1, dword [0x100ad940]
add esi, ecx
cmp ecx, esi
je 0x1007db50
mov edi, dword [0x100cd480]
mov ebx, dword [0x100cd47c]
dec edi
mov eax, ecx
and eax, edi
mov eax, dword [ebx + eax*4]
cmp byte [eax + 0x3e], 0
jne 0x1007db43
mov ebx, dword [0x10112084]
movss xmm0, dword [ebx]
subss xmm0, dword [eax + 8]
call fcn.1001a710
comiss xmm1, xmm0
mov ebx, dword [0x100cd47c]
jb 0x1007db43
movaps xmm1, xmm0
mov edx, eax
inc ecx
cmp ecx, esi
jne 0x1007db12
test edx, edx
je 0x1007db50
mov byte [edx + 0x3e], 1
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x1007db86
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007db7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007db7c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1009b7cf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009b337
mov esp, ebp
pop ebp
ret 4