Function at 0x407db0
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, ecx
mov eax, dword [0x509ecc]
mov dword [esp + 0x38], edi
cmp eax, dword [edi + 4]
jle 0x407e32
push 0x509ecc
call fcn.0040fcde
add esp, 4
cmp dword [0x509ecc], 0xffffffff
jne 0x407e32
mov eax, dword [0x415120]
mov esi, dword [0x41511c]
mov dword [esp + 0xc], eax
cmp esi, eax
je 0x407e1e
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x4b95e85
je 0x407fe5
add esi, 4
cmp esi, dword [esp + 0xc]
jne 0x407e03
xor eax, eax
push 0x509ecc
mov dword [0x509ee0], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x509ed4]
cmp eax, dword [edi + 4]
jle 0x407e97
push 0x509ed4
call fcn.0040fcde
add esp, 4
cmp dword [0x509ed4], 0xffffffff
jne 0x407e97
mov eax, dword [0x415120]
mov esi, dword [0x41511c]
mov dword [esp + 0xc], eax
cmp esi, eax
je 0x407e83
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0x27bc933a
je 0x407fec
add esi, 4
cmp esi, dword [esp + 0xc]
jne 0x407e68
xor eax, eax
push 0x509ed4
mov dword [0x509ee4], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x509edc]
cmp eax, dword [edi + 4]
jle 0x407f75
push 0x509edc
call fcn.0040fcde
add esp, 4
cmp dword [0x509edc], 0xffffffff
jne 0x407f75
mov edi, 0x811c9dc5
xor edx, edx
nop dword [eax]
movzx eax, byte [edx + str.aim_strength]
xor eax, edi
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 0x412515]
xor ecx, eax
movzx eax, byte [edx + 0x412516]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412517]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412518]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412519]
imul ecx, ecx, 0x1000193
add edx, 6
xor ecx, eax
imul edi, ecx, 0x1000193
cmp edx, 0xc
jb 0x407ed0
mov eax, dword [0x415120]
mov esi, dword [0x41511c]
mov dword [esp + 0xc], eax
cmp esi, eax
je 0x407f5d
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, edi
je 0x407ff3
add esi, 4
cmp esi, dword [esp + 0xc]
jne 0x407f45
xor eax, eax
push 0x509edc
mov dword [0x509ed8], eax
call fcn.0040fc94
mov edi, dword [esp + 0x3c]
add esp, 4
mov eax, dword [0x509ee0]
cmp byte [eax + 4], 0
je 0x4087f8
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x38]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x44], 0
call fcn.0040ca50
mov eax, dword [0x415928]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], esi
cmp eax, dword [edi + 4]
jle 0x408019
push 0x415928
call fcn.0040fcde
add esp, 4
cmp dword [0x415928], 0xffffffff
jne 0x408019
mov edi, dword [0x4156d4]
mov edx, str.DT_BasePlayer
mov ecx, edi
call fcn.00403f70
test eax, eax
jne 0x407ffa
jmp 0x408007
mov eax, dword [esi]
jmp 0x407e20
mov eax, dword [esi]
jmp 0x407e85
mov eax, dword [esi]
jmp 0x407f5f
push eax
mov edx, str.m_iHealth
mov ecx, edi
call fcn.004041d0
push 0x415928
mov dword [0x415920], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x415920]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [0x4156d4]
add eax, esi
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x2c], 0
call fcn.0040ca50
cmp dword [esp + 0x1c], 1
jl 0x40804e
test esi, esi
jne 0x4080d2
mov eax, dword [0x4156e4]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x30], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 0x10
push 0
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.0040c900
mov eax, dword [0x4156e8]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x30], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 0x10
push 0
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.0040c900
lea ecx, [esp + 0xc]
call fcn.00404610
and eax, 0xfff
lea ecx, [esp + 0x60]
lea edx, [eax - 1]
call fcn.00404470
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x64]
call fcn.00404320
mov eax, dword [esp + 0xac]
cmp eax, 0xe8
jb 0x408116
cmp eax, 0x111
jbe 0x4081ac
cmp eax, 1
je 0x4081ac
cmp eax, 0x2e
je 0x4081ac
mov eax, dword [0x4156e4]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x30], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 0x10
push 0
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.0040c900
mov eax, dword [0x4156e8]
lea edx, [esp + 0x50]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x60], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x54]
push 0x10
push 0
push edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
call fcn.0040c900
mov eax, dword [0x509ee4]
xor edi, edi
mov dword [esp + 0x48], 0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm0
movaps xmm2, xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x1c], xmm2
nop dword [eax]
nop word [eax + eax]
mov edx, edi
lea ecx, [esp + 0x94]
call fcn.00404470
push ecx
mov ecx, ebx
mov esi, dword [eax]
mov eax, esp
mov dword [esp + 0x14], esi
mov dword [eax], esi
call fcn.00407b10
test al, al
jne 0x408675
mov ecx, dword [esp + 0x38]
mov eax, dword [0x415900]
cmp eax, dword [ecx + 4]
jle 0x408269
push 0x415900
call fcn.0040fcde
add esp, 4
cmp dword [0x415900], 0xffffffff
jne 0x408269
mov eax, dword [0x4156d4]
mov edx, str.DT_BasePlayer
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.00403f70
test eax, eax
je 0x408257
mov ecx, dword [esp + 0xc]
mov edx, str.m_vecOrigin
push eax
call fcn.004041d0
push 0x415900
mov dword [0x415904], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x415904]
lea edx, [esp + 0x70]
add eax, dword [esp + 0x34]
push ecx
mov ecx, dword [0x4156d4]
push 0xc
push 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
mov ecx, dword [esp + 0x38]
mov eax, dword [0x41591c]
cmp eax, dword [ecx + 4]
jle 0x408308
push 0x41591c
call fcn.0040fcde
add esp, 4
cmp dword [0x41591c], 0xffffffff
jne 0x408308
mov eax, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.00403f70
test eax, eax
je 0x4082f6
mov ecx, dword [esp + 0xc]
mov edx, str.m_vecViewOffset_0_
push eax
call fcn.004041d0
push 0x41591c
mov dword [0x415908], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x415908]
lea edx, [esp + 0x64]
add eax, dword [esp + 0x34]
push ecx
mov ecx, dword [0x4156d4]
push 0xc
push 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
movss xmm0, dword [esp + 0x64]
lea edx, [esp + 0x7c]
addss xmm0, dword [esp + 0x70]
mov eax, dword [0x415700]
push ecx
mov ecx, dword [ebx]
add eax, 0x4d90
push 0xc
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x70]
addss xmm0, dword [esp + 0x7c]
push 0
push eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x7c]
addss xmm0, dword [esp + 0x88]
mov dword [esp + 0x8c], 0
movss dword [esp + 0x54], xmm0
call fcn.0040ca50
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x64]
call fcn.00404320
lea ecx, [esp + 0x10]
cmp dword [eax + 0x14], 0xe9
jne 0x408451
call fcn.00407a70
push ecx
mov ecx, dword [0x4156d4]
lea edx, [esp + 0x1c]
push 4
add eax, 0x12c
mov dword [esp + 0x20], 0
push 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
movss xmm0, dword [esp + 0x18]
lea ecx, [esp + 0x10]
movss dword [esp + 0x3c], xmm0
call fcn.00407a70
push ecx
mov ecx, dword [0x4156d4]
lea edx, [esp + 0x18]
push 4
add eax, 0x13c
mov dword [esp + 0x1c], 0
push 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
movss xmm0, dword [esp + 0x14]
lea ecx, [esp + 0x10]
movss dword [esp + 0x40], xmm0
call fcn.00407a70
add eax, 0x14c
jmp 0x4084cd
call fcn.00407a70
push ecx
mov ecx, dword [0x4156d4]
lea edx, [esp + 0x18]
push 4
add eax, 0x18c
mov dword [esp + 0x1c], 0
push 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
movss xmm0, dword [esp + 0x14]
lea ecx, [esp + 0x10]
movss dword [esp + 0x3c], xmm0
call fcn.00407a70
push ecx
mov ecx, dword [0x4156d4]
lea edx, [esp + 0x1c]
push 4
add eax, 0x19c
mov dword [esp + 0x20], 0
push 0
mov ecx, dword [ecx]
push eax
call fcn.0040ca50
movss xmm0, dword [esp + 0x18]
lea ecx, [esp + 0x10]
movss dword [esp + 0x40], xmm0
call fcn.00407a70
add eax, 0x1ac
push ecx
mov ecx, dword [0x4156d4]
lea edx, [esp + 0x14]
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x20], 0
call fcn.0040ca50
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x20]
subss xmm0, dword [esp + 0x30]
movss xmm1, dword [esp + 0x3c]
lea ecx, [esp + 0x88]
subss xmm1, dword [esp + 0xc]
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [esp + 0x44]
movss dword [esp + 0x18], xmm0
subss xmm2, xmm3
mulss xmm0, xmm0
push eax
movss dword [esp + 0x14], xmm1
mulss xmm1, xmm1
mov dword [esp + 0x94], 0
movss dword [esp + 0x18], xmm2
fld dword [esp + 0x18]
addss xmm0, xmm1
movss dword [esp + 0x48], xmm2
sqrtss xmm0, xmm0
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fpatan
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fld dword [esp + 0x14]
fpatan
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x412c8c]
fstp dword [esp + 0x18]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x412c8c]
movss dword [esp + 0x90], xmm0
call fcn.00403db0
movss xmm1, dword [esp + 0xc]
movss xmm0, dword [esp + 0x30]
subss xmm0, dword [esp + 0x40]
subss xmm1, dword [esp + 0x3c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
movss xmm1, dword [esp + 0x44]
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x7c]
subss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x412c10]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss xmm2, dword [esp + 0x30]
xorps xmm1, xmm1
sqrtss xmm1, xmm2
mulss xmm0, xmm1
andps xmm0, xmmword [0x412ce0]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x80]
subss xmm0, dword [esp + 0x24]
mulss xmm0, dword [0x412c10]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss xmm1, dword [esp + 0x30]
movaps xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
mulss xmm2, xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
andps xmm2, xmmword [0x412ce0]
mulss xmm2, xmm2
addss xmm2, xmm0
comiss xmm2, dword [esp + 0x1c]
ja 0x408675
mov eax, esi
movss dword [esp + 0x1c], xmm2
mov dword [esp + 0x48], eax
jmp 0x408679
mov eax, dword [esp + 0x48]
inc edi
cmp edi, 0x40
jbe 0x4081e0
test eax, eax
jne 0x40870f
mov eax, dword [0x4156e4]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x30], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 0x10
push 0
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.0040c900
mov eax, dword [0x4156e8]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx]
mov esi, eax
push 0x10
lea edi, [eax + 0x24]
xorps xmm0, xmm0
push 0
push edi
xor esi, 0x3cb43958
movups xmmword [esp + 0x30], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 0x10
push 0
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call fcn.0040c900
mov eax, dword [0x509ed8]
movss xmm2, dword [esp + 0x1c]
divss xmm2, dword [esp + 0x4c]
push ecx
mov eax, dword [eax + 4]
sub eax, 0x64
mov ecx, dword [ebx]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0x54]
push 0x10
push 0
movss xmm1, dword [0x412c14]
minss xmm2, dword [0x412c54]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x4156e4]
lea edi, [eax + 0x24]
mulss xmm0, dword [0x412c0c]
push edi
addss xmm0, dword [0x412c08]
subss xmm1, xmm0
mulss xmm1, xmm2
mulss xmm2, xmm2
mulss xmm1, xmm2
addss xmm1, xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x60], xmm0
movss dword [esp + 0x1c], xmm1
mov esi, dword [esp + 0x1c]
xor esi, eax
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x54]
push 0x10
push 0
push edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
call fcn.0040c900
mov eax, dword [0x4156e8]
lea edx, [esp + 0x50]
movss xmm0, dword [esp + 0xc]
push ecx
mov ecx, dword [ebx]
push 0x10
movss dword [esp + 0x54], xmm0
lea edi, [eax + 0x24]
mov esi, dword [esp + 0x54]
xorps xmm0, xmm0
push 0
push edi
xor esi, eax
movups xmmword [esp + 0x60], xmm0
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x54]
push 0x10
push 0
push edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
call fcn.0040c900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret