Function at 0x100a9800
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
mov dword [ebp - 8], ebx
mov eax, dword [edi]
call dword [eax + 4]
mov edx, str.player_hurt
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x100a9840
test cl, cl
je 0x100a983c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x100a9840
add eax, 2
add edx, 2
test cl, cl
jne 0x100a9820
xor eax, eax
jmp 0x100a9845
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100a9cf6
cmp dword [0x101e0948], eax
je 0x100a9cf6
mov eax, dword [edi]
mov ecx, edi
push 0
push str.attacker
call dword [eax + 0x18]
mov ecx, dword [0x101e1d90]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov ecx, dword [0x101e0948]
mov esi, eax
add ecx, 8
mov edx, dword [ecx]
call dword [edx + 0x28]
cmp eax, esi
jne 0x100a9cf6
mov eax, dword [edi]
mov ecx, edi
push 0
push str.userid
call dword [eax + 0x18]
mov ecx, dword [0x101e1d90]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov ecx, dword [0x101e1d1c]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x100a9cf6
cmp esi, dword [0x101e0948]
je 0x100a9cf6
mov ecx, dword fs:[0x2c]
mov edx, dword [0x101e14f0]
mov eax, dword [ecx + edx*4]
mov ecx, dword [0x101e29d4]
mov dword [ebp - 0x10], eax
cmp ecx, dword [eax + 4]
jle 0x100a9924
push 0x101e29d4
call fcn.100b5535
mov ecx, dword [0x101e29d4]
add esp, 4
cmp ecx, 0xffffffff
jne 0x100a9924
mov eax, dword [0x101e28cc]
push 0x101e29d4
mov dword [0x101e29bc], eax
call fcn.100b54eb
mov ecx, dword [0x101e29d4]
add esp, 4
mov eax, dword [0x101e29bc]
mov edi, dword [0x101e0948]
mov esi, dword [eax + esi]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax + 4]
jle 0x100a996a
push 0x101e29d4
call fcn.100b5535
add esp, 4
cmp dword [0x101e29d4], 0xffffffff
jne 0x100a996a
mov eax, dword [0x101e28cc]
push 0x101e29d4
mov dword [0x101e29bc], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e29bc]
cmp esi, dword [edi + eax]
je 0x100a9cf6
mov eax, dword [0x101dd824]
test eax, eax
je 0x100a9a72
sub eax, 1
je 0x100a9a5f
sub eax, 1
jne 0x100a9a72
mov eax, dword [0x101e47e4]
test eax, eax
jne 0x100a9a52
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ecx + ebx + 0x78]
add ecx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
je 0x100a9a28
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x100a9a28
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edx*4]
add ecx, ebx
mov esi, dword [ecx - 4]
sub ecx, 4
add esi, ebx
mov dword [ebp - 0x18], ecx
dec edx
mov edi, 0x82996505
mov dword [ebp - 0xc], edx
mov bl, byte [esi]
inc esi
test bl, bl
je 0x100a9a21
movsx edx, bl
lea esi, [esi + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [esi - 1]
cmova ecx, edx
xor ecx, edi
imul edi, ecx, 0x1000193
test bl, bl
jne 0x100a99f0
cmp edi, 0xbf252839
je 0x100a9a2c
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [eax + 0x18]
test edx, edx
jne 0x100a99d5
mov eax, dword [eax]
jmp 0x100a99b0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [0x101e47e4], eax
push 5
push 0
push str.RIFFZK
call eax
jmp 0x100a9a72
mov ecx, dword [0x101e1d94]
push str.buttons_arena_switch_press_02.wav
mov eax, dword [ecx]
call dword [eax + 0x148]
cmp dword [0x101dd7fc], 0
jne 0x100a9aa5
cmp byte [0x101dd810], 0
jne 0x100a9aa5
mov eax, dword [ebx + 0x31c]
cmp eax, dword [ebx + 0x320]
je 0x100a9cf6
mov dword [ebx + 0x320], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
movss xmm0, dword [0x1016d830]
mov dword [ebp - 0x24], eax
movss dword [ebp - 0xc], xmm0
call fcn.1011b211
xor ebx, ebx
movd xmm2, eax
mov eax, dword [ebp - 8]
cvtdq2ps xmm2, xmm2
mov ecx, dword [eax + 0x314]
mov esi, dword [eax + 0x310]
sub ecx, esi
mov eax, 0x2e8ba2e9
mulss xmm2, dword [0x1016d46c]
imul ecx
movss dword [ebp - 0x20], xmm2
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100a9cf6
xor edi, edi
movss xmm0, dword [edi + esi + 0x14]
lea edx, [edi + esi]
addss xmm0, dword [0x1016d610]
comiss xmm2, xmm0
jbe 0x100a9b66
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x314]
lea ecx, [edx + 0x2c]
sub eax, ecx
push eax
push ecx
push edx
call fcn.1010e300
mov eax, dword [ebp - 8]
add esp, 0xc
movss xmm1, dword [ebp - 0xc]
add dword [eax + 0x314], 0xffffffd4
jmp 0x100a9be7
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [edx + 0x1c]
cvtps2pd xmm2, xmm0
movss xmm0, dword [ebp - 0x2c]
subss xmm0, dword [edx + 0x18]
mulsd xmm2, xmm2
cvtps2pd xmm1, xmm0
movss xmm0, dword [ebp - 0x24]
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 - 0xc]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x100a9bc3
ucomiss xmm1, dword [0x1016d830]
lahf
test ah, 0x44
jp 0x100a9be4
movaps xmm1, xmm0
movups xmm0, xmmword [edx]
movss dword [ebp - 0xc], xmm1
movups xmmword [ebp - 0x58], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [edx + 0x20]
movq qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x314]
inc ebx
mov esi, dword [eax + 0x310]
add edi, 0x2c
movss xmm2, dword [ebp - 0x20]
sub ecx, esi
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100a9b23
ucomiss xmm1, dword [0x1016d830]
lahf
test ah, 0x44
jnp 0x100a9cf6
mov ecx, dword [ebp - 8]
add ecx, 0x31c
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x100a9c49
call fcn.100ab4b0
mov esi, dword [ecx + 4]
lea eax, [esi + 0x2c]
mov dword [ecx + 4], eax
jmp 0x100a9c51
push edx
call fcn.100ab520
mov esi, eax
mov ecx, dword [ebp + 8]
push 0
push str.dmg_health
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [esi], eax
call fcn.1011b211
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1016d46c]
movss dword [esi + 8], xmm0
call fcn.1011b211
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], 0x3f800000
movd xmm0, eax
mov eax, dword [ebp - 0x38]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1016d46c]
movss dword [esi + 0xc], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], eax
mov eax, dword [0x101e26ec]
cmp eax, dword [ecx + 4]
jle 0x100a9ce8
push 0x101e26ec
call fcn.100b5535
add esp, 4
cmp dword [0x101e26ec], 0xffffffff
jne 0x100a9ce8
mov eax, dword [0x101e2700]
push 0x101e26ec
mov dword [0x101e26f0], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e26f0]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4