Function at 0x10049b10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ac40b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb0
mov eax, dword [0x10249010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x90], edi
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1004aa63
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, eax
test ecx, ecx
je 0x1004aa63
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
mov dword [ebp - 0xb0], esi
test esi, esi
je 0x1004aa63
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x20], 0
je 0x1004aa63
lea ecx, [esi + 8]
xor edx, edx
test ecx, ecx
mov eax, ecx
cmove eax, edx
mov dword [ebp - 0x94], eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004aa63
mov eax, dword [ebp - 0x9c]
lea ecx, [edi + 0x74]
push dword [ebp - 0x98]
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x68], xmm0
mov eax, dword [eax + 0x18]
mov dword [edi + 0x70], eax
lea eax, [ebp - 0x88]
push eax
call fcn.10048c40
lea eax, [edi + 0x30]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x10049c2c
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x30]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.1004c2d0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10049c50
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebp - 0x98]
push str.models_player
mov eax, dword [eax + 0x20]
add eax, 4
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x1004a839
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x278]
call eax
test al, al
je 0x1004aa63
mov al, byte [esi + 0x25f]
test al, al
jne 0x1004aa63
cmp dword [esi + 0x100], 0
je 0x1004aa63
mov eax, dword [ebp - 0x94]
lea ecx, [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x1004aa63
mov eax, dword [0x1039ea44]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x1039eb2c]
mov dword [ebp - 0x98], ecx
cmp eax, dword [ecx + 4]
jle 0x10049d28
push 0x1039eb2c
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eb2c], 0xffffffff
jne 0x10049d22
push ecx
push 0x5a84b801
mov byte [ebp - 4], 2
mov ecx, dword [0x1039f394]
push 0x22558ba9
call fcn.100bc2f0
push 0x1039eb2c
mov dword [0x1039eb34], eax
mov byte [ebp - 4], 0
call fcn.10151ac3
add esp, 4
mov ecx, dword [ebp - 0x98]
mov eax, dword [0x1039eb34]
mov al, byte [eax + esi]
test al, al
jne 0x1004aa63
mov eax, dword [0x1039f500]
mov eax, dword [eax + 8]
mov dword [ebp - 0x9c], eax
cmp esi, eax
jne 0x10049fcb
mov eax, dword [0x1039f244]
cmp byte [eax + 0x16fd], 0
je 0x10049def
mov eax, dword [0x1039eb28]
cmp eax, dword [ecx + 4]
jle 0x10049db3
push 0x1039eb28
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eb28], 0xffffffff
jne 0x10049db3
push ecx
push 0x41bce941
mov byte [ebp - 4], 3
mov ecx, dword [0x1039f394]
push 0x22558ba9
call fcn.100bc2f0
push 0x1039eb28
mov dword [0x1039eb24], eax
mov byte [ebp - 4], 0
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039eb24]
mov ecx, dword [ebp - 0x9c]
cmp byte [ecx + eax], 0
je 0x10049def
mov eax, dword [0x1039f244]
mov ecx, dword [0x1039eb18]
push ecx
movd xmm0, dword [eax + 0x16fe]
mov edx, dword [ecx]
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mulss xmm0, dword [0x10232cbc]
movss dword [esp], xmm0
call eax
mov eax, dword [0x1039f500]
movss xmm0, dword [eax + 0xc]
lea esi, [eax + 0xc]
comiss xmm0, dword [eax + 0x10]
lea ecx, [eax + 0x10]
cmova esi, ecx
mov ecx, dword [0x1039eb18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xb0], eax
call dword [ebp - 0xb0]
mov ecx, dword [0x1039eb18]
fstp dword [ebp - 0xb0]
movss xmm0, dword [ebp - 0xb0]
mulss xmm0, dword [esi]
mov eax, dword [ecx]
push ecx
movss dword [esp], xmm0
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x1039f244]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x134d
push 0
push 0
push eax
mov ecx, edi
call fcn.100494d0
mov byte [ebp - 0x89], al
lea ecx, [ebp - 0x9c]
mov eax, dword [0x1039f518]
lea esi, [ebp - 0x94]
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0x3f800000
mov dword [ebp - 0xb0], 0
movss xmm1, dword [eax + 0x219140]
lea eax, [ebp - 0xb0]
mulss xmm1, dword [0x10232d00]
comiss xmm1, xmm0
movss xmm0, dword [0x10232db8]
movss dword [ebp - 0x9c], xmm1
cmovae eax, ecx
comiss xmm0, xmm1
cmovae esi, eax
mov eax, dword [0x1039f500]
xor edx, edx
mov ecx, dword [eax + 8]
add ecx, 4
mov eax, ecx
cmove eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x1039f518]
add ecx, 0x216150
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
movss xmm3, dword [eax + 8]
mov eax, 0x80
nop dword [eax + eax]
movaps xmm0, xmm1
addss xmm0, dword [ecx - 0x10]
movss dword [ecx - 0x10], xmm0
movaps xmm0, xmm2
addss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
addss xmm0, dword [ecx + 0x10]
movss dword [ecx + 0x10], xmm0
add ecx, 0x30
sub eax, 1
jne 0x10049f00
mov eax, dword [0x1039f518]
movss xmm0, dword [esi]
add eax, 0x216134
push ecx
movss dword [esp], xmm0
mov ecx, edi
push eax
mov eax, dword [0x1039f244]
push 0
add eax, 0x13ce
push eax
call fcn.100494d0
mov eax, dword [0x1039f500]
xor edx, edx
mov ecx, dword [eax + 8]
add ecx, 4
mov eax, ecx
cmove eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x1039f518]
add ecx, 0x216150
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
movss xmm3, dword [eax + 8]
mov eax, 0x80
nop
movss xmm0, dword [ecx - 0x10]
subss xmm0, xmm1
movss dword [ecx - 0x10], xmm0
movss xmm0, dword [ecx]
subss xmm0, xmm2
movss dword [ecx], xmm0
movss xmm0, dword [ecx + 0x10]
subss xmm0, xmm3
movss dword [ecx + 0x10], xmm0
add ecx, 0x30
sub eax, 1
jne 0x10049f90
mov al, byte [ebp - 0x89]
jmp 0x1004aa6b
mov ecx, esi
call fcn.10052cc0
test al, al
jne 0x1004a8bd
mov edx, dword [ebp - 0x98]
mov eax, dword [0x103a0db4]
cmp eax, dword [edx + 4]
jle 0x1004a025
push 0x103a0db4
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0db4], 0xffffffff
jne 0x1004a01f
mov edx, 0x80
mov ecx, 0x1039f5a8
call fcn.10033ba0
push 0x103a0db4
call fcn.10151ac3
add esp, 4
mov edx, dword [ebp - 0x98]
mov eax, dword [0x1039f244]
cmp byte [eax + 0x82], 0
je 0x1004a2c3
mov eax, dword [0x1039f500]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004a2c3
cmp byte [ecx + 0x25f], 0
jne 0x1004a2c3
cmp dword [ecx + 0x100], 0
je 0x1004a2c3
mov eax, dword [0x103a0dec]
cmp eax, dword [edx + 4]
jle 0x1004a0f2
push 0x103a0dec
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0dec], 0xffffffff
jne 0x1004a0f2
mov eax, dword [0x1039ead8]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x1004a0d7
mov edx, dword [edi + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a0a0
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x1004a0d0
movsx eax, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul ecx, ecx, 0xf1546419
sub esi, 1
jne 0x1004a0b5
cmp ecx, 0xbc340f3b
je 0x1004a0d9
mov edi, dword [edi + 4]
test edi, edi
jne 0x1004a094
xor edi, edi
push 0x103a0dec
mov dword [0x103a0e1c], edi
call fcn.10151ac3
mov esi, dword [ebp - 0xb0]
add esp, 4
mov ecx, dword [0x103a0e1c]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
je 0x1004a2c3
mov eax, dword [0x1039f244]
cmp byte [eax + 0x144f], 0
je 0x1004a2c3
mov ecx, dword [0x1039f518]
push esi
call fcn.100ec6a0
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x1004a2c3
cmp byte [edi + 0x21], 0
je 0x1004a2c3
lea eax, [ebp - 0x68]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x89]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x68]
call fcn.1004c6b0
mov byte [ebp - 4], 5
cmp byte [edi + 0x21], 0
je 0x1004a1e5
mov ecx, dword [edi + 4]
mov eax, 0x7b1d9b4f
sub ecx, dword [edi]
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
mov dword [ebp - 0xa4], eax
js 0x1004a1e5
mov ecx, dword [edi + 4]
mov eax, 0x7b1d9b4f
sub ecx, dword [edi]
imul ecx
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0xa4]
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor edx, edx
div ecx
lea ecx, [ebp - 0x68]
imul eax, edx, 0x8514
add eax, dword [edi]
push eax
mov dword [ebp - 0xa0], eax
call fcn.10033620
test al, al
je 0x1004a1dc
mov eax, dword [ebp - 0xa0]
cmp dword [eax], edi
je 0x1004a324
sub dword [ebp - 0xa4], 1
jns 0x1004a190
mov byte [ebp - 4], 0
mov dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x68]
call fcn.10015210
cmp byte [edi + 0x21], 0
je 0x1004a2c3
mov ecx, dword [edi + 4]
mov eax, 0x7b1d9b4f
sub ecx, dword [edi]
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xa4], eax
lea ecx, [eax - 1]
mov dword [ebp - 0xa8], ecx
test ecx, ecx
js 0x1004a2c3
mov esi, dword [edi + 0xc]
add esi, ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], esi
xor edx, edx
mov eax, esi
div dword [ebp - 0xa4]
lea eax, [esi + 1]
imul edi, edx, 0x8514
xor edx, edx
div dword [ebp - 0xa4]
add edi, dword [ecx]
imul esi, edx, 0x8514
add esi, dword [ecx]
cmp dword [edi + 4], 0
mov dword [ebp - 0x9c], esi
je 0x1004a2a5
cmp dword [esi + 4], 0
je 0x1004a2a5
cmp dword [edi], ecx
jne 0x1004a2a5
cmp dword [esi], ecx
jne 0x1004a2a5
cmp byte [edi + 0x3bc], 0
jne 0x1004a32d
cmp byte [esi + 0x3a1], 0
je 0x1004a2a5
cmp byte [edi + 0x3a1], 0
je 0x1004a32d
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x94]
dec eax
dec esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], esi
test eax, eax
jns 0x1004a243
mov esi, dword [ebp - 0x90]
mov eax, dword [0x1039f244]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x12cc
push 0
push 1
push eax
mov ecx, esi
call fcn.100494d0
push ecx
mov ecx, dword [0x1039f244]
mov dword [esp], 0x3f800000
add ecx, 0x124b
push 0
push 0
push ecx
mov ecx, esi
mov byte [ebp - 0x89], al
call fcn.100494d0
test al, al
jne 0x1004a31d
cmp byte [ebp - 0x89], al
je 0x1004aa63
mov al, 1
jmp 0x1004aa65
mov byte [ebp - 4], 0
jmp 0x1004a1f3
test esi, esi
je 0x1004a2c3
test edi, edi
je 0x1004a2c3
cmp byte [esi + 0x39e], 0
jne 0x1004a2c3
cmp byte [edi + 0x39e], 0
jne 0x1004a2c3
movss xmm3, dword [esi + 0x3c0]
xorps xmm4, xmm4
ucomiss xmm3, xmm4
lahf
test ah, 0x44
mov eax, dword [0x1039ea98]
jp 0x1004a38a
mov eax, dword [eax]
mov dword [esi + 0x3c0], eax
mov eax, dword [ebp - 0xa0]
mov dword [esi + 0x3c4], 0
mov eax, dword [eax + 0x3cc]
mov dword [esi + 0x3c8], eax
jmp 0x1004a3ec
movss xmm1, dword [eax]
lea ecx, [ebp - 0x94]
movss xmm0, dword [esi + 0x3c8]
subss xmm1, xmm3
movss xmm2, dword [0x1023308c]
subss xmm0, xmm3
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], 0x7f7fffff
mov dword [ebp - 0x94], 0
subss xmm1, xmm0
comiss xmm1, xmm4
movss dword [ebp - 0xa8], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xa0]
comiss xmm2, xmm1
cmovae eax, ecx
mov eax, dword [eax]
mov dword [esi + 0x3c4], eax
mov eax, dword [esi + 0x3b8]
lea ecx, [ebp - 0xb9]
sub eax, dword [edi + 0x3b8]
cdq
xor eax, edx
mov dword [ebp - 0xa0], 0
sub eax, edx
movd xmm0, eax
mov eax, dword [0x1039ea98]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
movss dword [ebp - 0x94], xmm0
movss dword [ebp - 0xa4], xmm0
call fcn.10048d50
movss xmm1, dword [ebp - 0x94]
xorps xmm2, xmm2
movss xmm4, dword [0x10232db8]
mov dword [ebp - 0xb4], 0x3f800000
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xb8], 0
push 0x1800
push dword [edi + 0x8478]
mov ecx, dword [ecx + 0x2c]
xor ecx, eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], ecx
lea ecx, [ebp - 0xa0]
movss xmm0, dword [ebp - 0xa8]
mulss xmm0, dword [esi + 0x3c4]
lea esi, [ebp - 0xb4]
push 0x1039f5a8
comiss xmm0, xmm2
movss dword [ebp - 0xa8], xmm0
cmovae ecx, eax
lea eax, [ebp - 0xa4]
comiss xmm1, xmm0
cmovae eax, ecx
lea ecx, [ebp - 0xa8]
movss xmm0, dword [eax]
lea eax, [ebp - 0xb8]
divss xmm0, xmm1
movaps xmm1, xmm4
subss xmm1, xmm0
comiss xmm1, xmm2
movss dword [ebp - 0xa8], xmm1
cmovae eax, ecx
comiss xmm4, xmm1
movaps xmm1, xmm4
cmovae esi, eax
mov eax, dword [ebp - 0x9c]
movss xmm3, dword [esi]
subss xmm1, xmm3
movaps xmm0, xmm3
mulss xmm0, dword [edi + 0x384]
movaps xmm2, xmm1
mulss xmm2, dword [eax + 0x384]
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [edi + 0x388]
movss dword [ebp - 0xa0], xmm2
movaps xmm2, xmm1
mulss xmm2, dword [eax + 0x388]
mulss xmm1, dword [eax + 0x38c]
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [edi + 0x38c]
addss xmm1, xmm0
movss dword [ebp - 0xa4], xmm2
movss dword [ebp - 0xac], xmm1
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x1039ea98]
add esp, 0xc
movss xmm1, dword [ebp - 0x94]
movss xmm0, dword [eax + 0x20]
addss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004a690
mov ecx, dword [ebp - 0x98]
mov eax, dword [0x103a0db0]
cmp eax, dword [ecx + 4]
jle 0x1004a5b4
push 0x103a0db0
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0db0], 0xffffffff
jne 0x1004a5b4
push 0x103a0db0
call fcn.10151ac3
add esp, 4
movss xmm3, dword [esi]
mov ecx, 0x103a0dac
mov esi, dword [ebp - 0x9c]
movss xmm2, dword [edi + 0x368]
movss xmm1, dword [esi + 0x368]
call fcn.10048df0
movss xmm1, dword [esi + 0x368]
movss xmm4, dword [0x1023311c]
comiss xmm4, xmm1
movss xmm2, dword [0x10233010]
jbe 0x1004a5fe
addss xmm1, xmm2
comiss xmm4, xmm1
ja 0x1004a5f5
movss xmm3, dword [0x10232fa8]
comiss xmm1, xmm3
jbe 0x1004a619
nop dword [eax + eax]
subss xmm1, xmm2
comiss xmm1, xmm3
ja 0x1004a610
subss xmm0, xmm1
comiss xmm4, xmm0
jbe 0x1004a62b
addss xmm0, xmm2
comiss xmm4, xmm0
ja 0x1004a622
comiss xmm0, xmm3
jbe 0x1004a639
subss xmm0, xmm2
comiss xmm0, xmm3
ja 0x1004a630
xorps xmm0, xmmword [0x10233610]
movss dword [ebp - 0xb4], xmm0
call fcn.10015090
comiss xmm0, dword [0x10232e6c]
jbe 0x1004a690
mov eax, dword [edi + 0x384]
sub esp, 0xc
mov ecx, dword [edi + 0x8478]
mov esi, esp
movss xmm2, dword [ebp - 0xb4]
mov edx, 0x1039f5a8
mov dword [esi], eax
mov eax, dword [edi + 0x388]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38c]
mov dword [esi + 8], eax
call fcn.100a94a0
add esp, 0xc
movss xmm0, dword [ebp - 0xa0]
xor eax, eax
subss xmm0, dword [edi + 0x384]
movss xmm2, dword [ebp - 0xa4]
movss xmm1, dword [ebp - 0xac]
subss xmm2, dword [edi + 0x388]
subss xmm1, dword [edi + 0x38c]
movss dword [ebp - 0xa0], xmm0
nop word [eax + eax]
addss xmm0, dword [eax + 0x1039f5b4]
movss dword [eax + 0x1039f5b4], xmm0
movaps xmm0, xmm2
addss xmm0, dword [eax + 0x1039f5c4]
movss dword [eax + 0x1039f5c4], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x1039f5d4]
movss dword [eax + 0x1039f5d4], xmm0
add eax, 0x30
movss xmm0, dword [ebp - 0xa0]
cmp eax, 0x1800
jb 0x1004a6d0
mov edi, dword [ebp - 0xb0]
mov ecx, edi
mov eax, dword [0x1039f480]
push str.head_0
mov dword [ebp - 0x94], 0x3f800000
mov dword [ebp - 0x9c], 0
call eax
mov esi, dword [edi + 0x2914]
mov ecx, edi
push str.head_0
lea eax, [eax + eax*2]
shl eax, 4
movss xmm0, dword [eax + 0x1039f5b4]
movss dword [ebp - 0xac], xmm0
movss xmm0, dword [eax + 0x1039f5c4]
movss dword [ebp - 0xb4], xmm0
movss xmm0, dword [eax + 0x1039f5d4]
mov eax, dword [0x1039f480]
movss dword [ebp - 0xb8], xmm0
call eax
movss xmm1, dword [ebp - 0xac]
movss xmm2, dword [ebp - 0xb4]
movss xmm0, dword [ebp - 0xb8]
lea eax, [eax + eax*2]
add eax, eax
subss xmm2, dword [esi + eax*8 + 0x1c]
subss xmm1, dword [esi + eax*8 + 0xc]
subss xmm0, dword [esi + eax*8 + 0x2c]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm0, xmm2
call fcn.1002f5d0
mulss xmm0, dword [0x10232cbc]
lea eax, [ebp - 0xac]
mov esi, dword [ebp - 0x90]
lea ecx, [ebp - 0x9c]
xorps xmm1, xmm1
comiss xmm0, xmm1
movss xmm1, dword [0x10232db8]
movss dword [ebp - 0xac], xmm0
cmovae ecx, eax
lea eax, [ebp - 0x94]
comiss xmm1, xmm0
push ecx
cmovae eax, ecx
mov ecx, esi
movss xmm0, dword [eax]
mov eax, dword [0x1039f244]
movss dword [esp], xmm0
add eax, 0x144f
push 0x1039f5a8
push 1
push eax
call fcn.100494d0
jmp 0x1004a2c9
mov eax, dword [ebp - 0x98]
push str.arms
mov eax, dword [eax + 0x20]
add eax, 4
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x1004a87b
mov eax, dword [0x1039f244]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x1551
push 0
push 0
push eax
mov ecx, edi
call fcn.100494d0
jmp 0x1004aa65
mov eax, dword [ebp - 0x98]
push str.models_weapons_v_
mov eax, dword [eax + 0x20]
add eax, 4
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x1004a8bd
mov eax, dword [0x1039f244]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x15d2
push 0
push 0
push eax
mov ecx, edi
call fcn.100494d0
jmp 0x1004aa65
mov eax, dword [0x1039ea44]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [0x1039eb38]
cmp eax, dword [edi + 4]
jle 0x1004a91f
push 0x1039eb38
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eb38], 0xffffffff
jne 0x1004a91f
push ecx
push 0x354c38f0
mov byte [ebp - 4], 6
mov ecx, dword [0x1039f394]
push 0xaf3beedc
call fcn.100bc2f0
push 0x1039eb38
mov dword [0x1039eb30], eax
mov byte [ebp - 4], 0
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x1039eafc]
mov eax, dword [0x1039eb30]
mov edx, dword [ecx]
push dword [eax + esi]
mov edx, dword [edx + 0x10]
call edx
test eax, eax
je 0x1004aa63
mov ecx, dword [0x1039f500]
mov esi, dword [ecx + 8]
cmp eax, esi
jne 0x1004aa63
mov eax, dword [0x1039f244]
cmp byte [eax + 0x16fd], 0
je 0x1004a9e8
mov eax, dword [0x1039eb28]
cmp eax, dword [edi + 4]
jle 0x1004a9b2
push 0x1039eb28
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eb28], 0xffffffff
jne 0x1004a9b2
push ecx
push 0x41bce941
mov byte [ebp - 4], 7
mov ecx, dword [0x1039f394]
push 0x22558ba9
call fcn.100bc2f0
push 0x1039eb28
mov dword [0x1039eb24], eax
mov byte [ebp - 4], 0
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039eb24]
cmp byte [esi + eax], 0
je 0x1004a9e8
mov eax, dword [0x1039f244]
mov ecx, dword [0x1039eb18]
push ecx
movd xmm0, dword [eax + 0x16fe]
mov edx, dword [ecx]
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mulss xmm0, dword [0x10232cbc]
movss dword [esp], xmm0
call eax
mov eax, dword [0x1039f500]
mov ecx, dword [0x1039eb18]
lea esi, [eax + 0x10]
lea edi, [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xac], eax
call dword [ebp - 0xac]
movss xmm0, dword [edi]
comiss xmm0, dword [esi]
mov ecx, dword [0x1039eb18]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
fstp dword [ebp - 0xac]
movss xmm0, dword [ebp - 0xac]
cmova edi, esi
mulss xmm0, dword [edi]
movss dword [esp], xmm0
call eax
mov eax, dword [0x1039f244]
push ecx
mov ecx, dword [ebp - 0x90]
add eax, 0x1653
mov dword [esp], 0x3f800000
push 0
push 0
push eax
call fcn.100494d0
test al, al
je 0x1004aa63
mov al, 1
jmp 0x1004aa65
xor al, al
mov byte [ebp - 0x89], al
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x1004aa89
mov esi, dword [ecx]
lea eax, [ebx + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x89]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015164c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30