Function at 0x1004a070
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 0x101a65db
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb0
mov eax, dword [0x10242040]
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 - 0x94], ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1004afe5
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, eax
test ecx, ecx
je 0x1004afe5
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
mov dword [ebp - 0xb0], esi
test esi, esi
je 0x1004afe5
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x20], 0
je 0x1004afe5
lea ecx, [esi + 8]
xor edx, edx
test ecx, ecx
mov eax, ecx
cmove eax, edx
mov dword [ebp - 0x98], eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004afe5
mov eax, dword [ebp - 0x94]
lea ecx, [edi + 0x74]
push dword [ebp - 0x9c]
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.10049130
lea eax, [edi + 0x30]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x1004a18c
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.1004c840
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1004a1b0
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 - 0x9c]
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 0x1004adbb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x278]
call eax
test al, al
je 0x1004afe5
mov al, byte [esi + 0x25f]
test al, al
jne 0x1004afe5
cmp dword [esi + 0x100], 0
je 0x1004afe5
mov eax, dword [ebp - 0x98]
lea ecx, [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x1004afe5
mov eax, dword [0x103357d4]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x103358b8]
mov dword [ebp - 0x9c], ecx
cmp eax, dword [ecx + 4]
jle 0x1004a288
push 0x103358b8
call fcn.1014be59
add esp, 4
cmp dword [0x103358b8], 0xffffffff
jne 0x1004a282
push ecx
push 0x5a84b801
mov byte [ebp - 4], 2
mov ecx, dword [0x10336104]
push 0x22558ba9
call fcn.100bb3f0
push 0x103358b8
mov dword [0x103358c0], eax
mov byte [ebp - 4], 0
call fcn.1014be08
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov eax, dword [0x103358c0]
mov al, byte [eax + esi]
test al, al
jne 0x1004afe5
mov eax, dword [0x10336270]
mov eax, dword [eax + 8]
mov dword [ebp - 0x94], eax
cmp esi, eax
jne 0x1004a52b
mov eax, dword [0x10335fb8]
cmp byte [eax + 0x1671], 0
je 0x1004a34f
mov eax, dword [0x103358b4]
cmp eax, dword [ecx + 4]
jle 0x1004a313
push 0x103358b4
call fcn.1014be59
add esp, 4
cmp dword [0x103358b4], 0xffffffff
jne 0x1004a313
push ecx
push 0x41bce941
mov byte [ebp - 4], 3
mov ecx, dword [0x10336104]
push 0x22558ba9
call fcn.100bb3f0
push 0x103358b4
mov dword [0x103358b0], eax
mov byte [ebp - 4], 0
call fcn.1014be08
add esp, 4
mov eax, dword [0x103358b0]
mov ecx, dword [ebp - 0x94]
cmp byte [ecx + eax], 0
je 0x1004a34f
mov eax, dword [0x10335fb8]
mov ecx, dword [0x103358ac]
push ecx
movd xmm0, dword [eax + 0x1672]
mov edx, dword [ecx]
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mulss xmm0, dword [0x1022c61c]
movss dword [esp], xmm0
call eax
mov eax, dword [0x10336270]
movss xmm0, dword [eax + 0xc]
lea esi, [eax + 0xc]
comiss xmm0, dword [eax + 0x10]
lea ecx, [eax + 0x10]
cmova esi, ecx
mov ecx, dword [0x103358ac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xb0], eax
call dword [ebp - 0xb0]
mov ecx, dword [0x103358ac]
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 [0x10335fb8]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x12c1
push 0
push 0
push eax
mov ecx, edi
call fcn.10049a30
mov byte [ebp - 0x89], al
lea ecx, [ebp - 0x94]
mov eax, dword [0x10336288]
lea esi, [ebp - 0x98]
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0x3f800000
mov dword [ebp - 0xb0], 0
movss xmm1, dword [eax + 0x219140]
lea eax, [ebp - 0xb0]
mulss xmm1, dword [0x1022c660]
comiss xmm1, xmm0
movss xmm0, dword [0x1022c720]
movss dword [ebp - 0x94], xmm1
cmovae eax, ecx
comiss xmm0, xmm1
cmovae esi, eax
mov eax, dword [0x10336270]
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 [0x10336288]
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 0x1004a460
mov eax, dword [0x10336288]
movss xmm0, dword [esi]
add eax, 0x216134
push ecx
movss dword [esp], xmm0
mov ecx, edi
push eax
mov eax, dword [0x10335fb8]
push 0
add eax, 0x1342
push eax
call fcn.10049a30
mov eax, dword [0x10336270]
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 [0x10336288]
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 0x1004a4f0
mov al, byte [ebp - 0x89]
jmp 0x1004afed
mov ecx, esi
call fcn.10052f50
test al, al
jne 0x1004ae3f
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x10337b24]
cmp eax, dword [edx + 4]
jle 0x1004a585
push 0x10337b24
call fcn.1014be59
add esp, 4
cmp dword [0x10337b24], 0xffffffff
jne 0x1004a57f
mov edx, 0x80
mov ecx, 0x10336318
call fcn.10034520
push 0x10337b24
call fcn.1014be08
add esp, 4
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x10335fb8]
cmp byte [eax + 0x81], 0
je 0x1004ad5a
mov eax, dword [0x10336270]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004ad5a
cmp byte [ecx + 0x25f], 0
jne 0x1004ad5a
cmp dword [ecx + 0x100], 0
je 0x1004ad5a
mov eax, dword [0x10337b5c]
cmp eax, dword [edx + 4]
jle 0x1004a652
push 0x10337b5c
call fcn.1014be59
add esp, 4
cmp dword [0x10337b5c], 0xffffffff
jne 0x1004a652
mov eax, dword [0x10335868]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x1004a637
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 0x1004a600
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x1004a630
movsx eax, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul ecx, ecx, 0xf1546419
sub esi, 1
jne 0x1004a615
cmp ecx, 0xbc340f3b
je 0x1004a639
mov edi, dword [edi + 4]
test edi, edi
jne 0x1004a5f4
xor edi, edi
push 0x10337b5c
mov dword [0x10337b8c], edi
call fcn.1014be08
mov esi, dword [ebp - 0xb0]
add esp, 4
mov ecx, dword [0x10337b8c]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
je 0x1004ad5a
mov eax, dword [0x10335fb8]
cmp byte [eax + 0x13c3], 0
je 0x1004ad5a
mov ecx, dword [0x10336288]
push esi
call fcn.100e9450
mov edi, eax
mov dword [ebp - 0xa0], edi
test edi, edi
je 0x1004ad5a
cmp byte [edi + 0x21], 0
je 0x1004ad5a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x89]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x68]
call fcn.1004cc20
mov byte [ebp - 4], 5
cmp byte [edi + 0x21], 0
je 0x1004a745
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 - 0xb4], eax
js 0x1004a745
mov ecx, dword [edi + 4]
mov eax, 0x7b1d9b4f
sub ecx, dword [edi]
imul ecx
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0xb4]
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 - 0xa8], eax
call fcn.10034000
test al, al
je 0x1004a73c
mov eax, dword [ebp - 0xa8]
cmp dword [eax], edi
je 0x1004a823
sub dword [ebp - 0xb4], 1
jns 0x1004a6f0
mov byte [ebp - 4], 0
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x68]
call fcn.10015370
cmp byte [edi + 0x21], 0
je 0x1004ad5a
mov ecx, dword [edi + 4]
mov eax, 0x7b1d9b4f
sub ecx, dword [edi]
imul ecx
sar edx, 0xe
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x94], esi
lea ecx, [esi - 1]
mov dword [ebp - 0xac], ecx
test ecx, ecx
js 0x1004ad5a
mov edi, dword [edi + 0xc]
add edi, ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x98], edi
xor edx, edx
mov eax, edi
div esi
lea eax, [edi + 1]
imul esi, edx, 0x8514
xor edx, edx
div dword [ebp - 0x94]
add esi, dword [ecx]
imul edi, edx, 0x8514
mov dword [ebp - 0xb4], esi
add edi, dword [ecx]
cmp dword [esi + 4], 0
je 0x1004a7f9
cmp dword [edi + 4], 0
je 0x1004a7f9
cmp dword [esi], ecx
jne 0x1004a7f9
cmp dword [edi], ecx
jne 0x1004a7f9
cmp byte [esi + 0x3bc], 0
jne 0x1004a82c
cmp byte [edi + 0x3a1], 0
je 0x1004a7f9
cmp byte [esi + 0x3a1], 0
je 0x1004a82c
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0x98]
dec eax
dec edi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x98], edi
test eax, eax
js 0x1004ad5a
mov esi, dword [ebp - 0x94]
jmp 0x1004a7a3
mov byte [ebp - 4], 0
jmp 0x1004a753
test edi, edi
je 0x1004ad5a
test esi, esi
je 0x1004ad5a
cmp byte [edi + 0x39e], 0
jne 0x1004ad5a
cmp byte [esi + 0x39e], 0
jne 0x1004ad5a
movss xmm3, dword [edi + 0x3c0]
xorps xmm4, xmm4
ucomiss xmm3, xmm4
lahf
test ah, 0x44
mov eax, dword [0x10335828]
jp 0x1004a895
mov eax, dword [eax]
mov dword [edi + 0x3c0], eax
mov eax, dword [ebp - 0xa8]
mov dword [edi + 0x3c4], 0
mov eax, dword [eax + 0x3cc]
mov dword [edi + 0x3c8], eax
jmp 0x1004a8f7
movss xmm1, dword [eax]
lea ecx, [ebp - 0xa0]
movss xmm0, dword [edi + 0x3c8]
subss xmm1, xmm3
movss xmm2, dword [0x1022c9e4]
subss xmm0, xmm3
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0x7f7fffff
mov dword [ebp - 0xa0], 0
subss xmm1, xmm0
comiss xmm1, xmm4
movss dword [ebp - 0x94], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x98]
comiss xmm2, xmm1
cmovae eax, ecx
mov eax, dword [eax]
mov dword [edi + 0x3c4], eax
mov eax, dword [edi + 0x3b8]
lea ecx, [ebp - 0xb9]
sub eax, dword [esi + 0x3b8]
cdq
xor eax, edx
mov dword [ebp - 0x98], 0
sub eax, edx
movd xmm0, eax
mov eax, dword [0x10335828]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
movss dword [ebp - 0x94], xmm0
movss dword [ebp - 0xac], xmm0
call fcn.100492c0
movss xmm1, dword [ebp - 0x94]
lea esi, [ebp - 0xb8]
xorps xmm2, xmm2
movss xmm4, dword [0x1022c720]
mov dword [ebp - 0xb8], 0x3f800000
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xa8], 0
push 0x1800
mov ecx, dword [ecx + 0x2c]
xor ecx, eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x98]
movss xmm0, dword [ebp - 0xa0]
mulss xmm0, dword [edi + 0x3c4]
comiss xmm0, xmm2
movss dword [ebp - 0xa0], xmm0
cmovae ecx, eax
lea eax, [ebp - 0xac]
comiss xmm1, xmm0
cmovae eax, ecx
lea ecx, [ebp - 0xa0]
movss xmm0, dword [eax]
lea eax, [ebp - 0xa8]
divss xmm0, xmm1
movaps xmm1, xmm4
subss xmm1, xmm0
comiss xmm1, xmm2
movss dword [ebp - 0xa0], xmm1
cmovae eax, ecx
comiss xmm4, xmm1
movaps xmm1, xmm4
cmovae esi, eax
mov eax, dword [ebp - 0xb4]
movss xmm3, dword [esi]
subss xmm1, xmm3
movaps xmm0, xmm3
mulss xmm0, dword [eax + 0x384]
push dword [eax + 0x8478]
movaps xmm2, xmm1
mulss xmm2, dword [edi + 0x384]
push 0x10336318
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [eax + 0x388]
movss dword [ebp - 0xac], xmm2
movaps xmm2, xmm1
mulss xmm2, dword [edi + 0x388]
mulss xmm1, dword [edi + 0x38c]
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [eax + 0x38c]
addss xmm1, xmm0
movss dword [ebp - 0x98], xmm2
movss dword [ebp - 0xa4], xmm1
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x10335828]
add esp, 0xc
movss xmm1, dword [ebp - 0x94]
movss xmm0, dword [eax + 0x20]
mov eax, dword [ebp - 0xb4]
addss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004abb6
mov ecx, dword [ebp - 0x9c]
mov eax, dword [0x10337b20]
cmp eax, dword [ecx + 4]
jle 0x1004aac5
push 0x10337b20
call fcn.1014be59
add esp, 4
cmp dword [0x10337b20], 0xffffffff
jne 0x1004aac5
push 0x10337b20
call fcn.1014be08
add esp, 4
movss xmm3, dword [esi]
mov ecx, 0x10337b1c
mov esi, dword [ebp - 0xb4]
movss xmm1, dword [edi + 0x368]
movss xmm2, dword [esi + 0x368]
call fcn.10049360
movss xmm1, dword [edi + 0x368]
mov edi, esi
movss xmm4, dword [0x1022ca74]
comiss xmm4, xmm1
mov dword [ebp - 0xa8], edi
movss xmm2, dword [0x1022c970]
jbe 0x1004ab1d
mov dword [ebp - 0xa8], esi
addss xmm1, xmm2
comiss xmm4, xmm1
ja 0x1004ab14
movss xmm3, dword [0x1022c908]
comiss xmm1, xmm3
jbe 0x1004ab39
nop word [eax + eax]
subss xmm1, xmm2
comiss xmm1, xmm3
ja 0x1004ab30
subss xmm0, xmm1
comiss xmm4, xmm0
jbe 0x1004ab4b
addss xmm0, xmm2
comiss xmm4, xmm0
ja 0x1004ab42
comiss xmm0, xmm3
jbe 0x1004ab59
subss xmm0, xmm2
comiss xmm0, xmm3
ja 0x1004ab50
xorps xmm0, xmmword [0x1022cc60]
movss dword [ebp - 0xb8], xmm0
call fcn.100151f0
comiss xmm0, dword [0x1022c7cc]
jbe 0x1004abb0
mov eax, dword [edi + 0x384]
sub esp, 0xc
mov ecx, dword [edi + 0x8478]
mov esi, esp
movss xmm2, dword [ebp - 0xb8]
mov edx, 0x10336318
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.100a9830
add esp, 0xc
mov eax, dword [ebp - 0xa8]
movss xmm0, dword [ebp - 0xac]
mov ecx, 0x10336324
subss xmm0, dword [eax + 0x384]
movss xmm2, dword [ebp - 0x98]
mov edx, 0x10336344
movss xmm1, dword [ebp - 0xa4]
subss xmm2, dword [eax + 0x388]
subss xmm1, dword [eax + 0x38c]
movss dword [ebp - 0xac], xmm0
xor eax, eax
nop word [eax + eax]
addss xmm0, dword [ecx + eax]
movss dword [ecx + eax], xmm0
movaps xmm0, xmm2
addss xmm0, dword [eax + 0x10336334]
movss dword [eax + 0x10336334], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edx + eax]
movss dword [edx + eax], xmm0
add eax, 0x30
movss xmm0, dword [ebp - 0xac]
cmp eax, 0x1800
jb 0x1004ac00
mov edi, dword [ebp - 0xb0]
mov ecx, edi
mov eax, dword [0x103361f0]
push str.head_0
mov dword [ebp - 0x98], 0x3f800000
mov dword [ebp - 0x94], 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 + 0x10336324]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [eax + 0x10336334]
movss dword [ebp - 0xb8], xmm0
movss xmm0, dword [eax + 0x10336344]
mov eax, dword [0x103361f0]
movss dword [ebp - 0xa0], xmm0
call eax
movss xmm1, dword [ebp - 0xa4]
movss xmm2, dword [ebp - 0xb8]
movss xmm0, dword [ebp - 0xa0]
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.1002ffd0
mulss xmm0, dword [0x1022c61c]
lea eax, [ebp - 0xa4]
mov esi, dword [ebp - 0x90]
lea ecx, [ebp - 0x94]
xorps xmm1, xmm1
comiss xmm0, xmm1
movss xmm1, dword [0x1022c720]
movss dword [ebp - 0xa4], xmm0
cmovae ecx, eax
lea eax, [ebp - 0x98]
comiss xmm1, xmm0
push ecx
cmovae eax, ecx
mov ecx, esi
movss xmm0, dword [eax]
mov eax, dword [0x10335fb8]
movss dword [esp], xmm0
add eax, 0x13c3
push 0x10336318
push 1
push eax
call fcn.10049a30
jmp 0x1004ad60
mov esi, dword [ebp - 0x90]
mov eax, dword [0x10335fb8]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x1240
push 0
push 1
push eax
mov ecx, esi
call fcn.10049a30
push ecx
mov ecx, dword [0x10335fb8]
mov dword [esp], 0x3f800000
add ecx, 0x11bf
push 0
push 0
push ecx
mov ecx, esi
mov byte [ebp - 0x89], al
call fcn.10049a30
test al, al
jne 0x1004adb4
cmp byte [ebp - 0x89], al
je 0x1004afe5
mov al, 1
jmp 0x1004afe7
mov eax, dword [ebp - 0x9c]
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 0x1004adfd
mov eax, dword [0x10335fb8]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x14c5
push 0
push 0
push eax
mov ecx, edi
call fcn.10049a30
jmp 0x1004afe7
mov eax, dword [ebp - 0x9c]
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 0x1004ae3f
mov eax, dword [0x10335fb8]
push ecx
mov dword [esp], 0x3f800000
add eax, 0x1546
push 0
push 0
push eax
mov ecx, edi
call fcn.10049a30
jmp 0x1004afe7
mov eax, dword [0x103357d4]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [0x103358c4]
cmp eax, dword [edi + 4]
jle 0x1004aea1
push 0x103358c4
call fcn.1014be59
add esp, 4
cmp dword [0x103358c4], 0xffffffff
jne 0x1004aea1
push ecx
push 0x354c38f0
mov byte [ebp - 4], 6
mov ecx, dword [0x10336104]
push 0xaf3beedc
call fcn.100bb3f0
push 0x103358c4
mov dword [0x103358bc], eax
mov byte [ebp - 4], 0
call fcn.1014be08
add esp, 4
mov ecx, dword [0x10335888]
mov eax, dword [0x103358bc]
mov edx, dword [ecx]
push dword [eax + esi]
mov edx, dword [edx + 0x10]
call edx
test eax, eax
je 0x1004afe5
mov ecx, dword [0x10336270]
mov esi, dword [ecx + 8]
cmp eax, esi
jne 0x1004afe5
mov eax, dword [0x10335fb8]
cmp byte [eax + 0x1671], 0
je 0x1004af6a
mov eax, dword [0x103358b4]
cmp eax, dword [edi + 4]
jle 0x1004af34
push 0x103358b4
call fcn.1014be59
add esp, 4
cmp dword [0x103358b4], 0xffffffff
jne 0x1004af34
push ecx
push 0x41bce941
mov byte [ebp - 4], 7
mov ecx, dword [0x10336104]
push 0x22558ba9
call fcn.100bb3f0
push 0x103358b4
mov dword [0x103358b0], eax
mov byte [ebp - 4], 0
call fcn.1014be08
add esp, 4
mov eax, dword [0x103358b0]
cmp byte [esi + eax], 0
je 0x1004af6a
mov eax, dword [0x10335fb8]
mov ecx, dword [0x103358ac]
push ecx
movd xmm0, dword [eax + 0x1672]
mov edx, dword [ecx]
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mulss xmm0, dword [0x1022c61c]
movss dword [esp], xmm0
call eax
mov eax, dword [0x10336270]
mov ecx, dword [0x103358ac]
lea esi, [eax + 0x10]
lea edi, [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xa4], eax
call dword [ebp - 0xa4]
movss xmm0, dword [edi]
comiss xmm0, dword [esi]
mov ecx, dword [0x103358ac]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
fstp dword [ebp - 0xa4]
movss xmm0, dword [ebp - 0xa4]
cmova edi, esi
mulss xmm0, dword [edi]
movss dword [esp], xmm0
call eax
mov eax, dword [0x10335fb8]
push ecx
mov ecx, dword [ebp - 0x90]
add eax, 0x15c7
mov dword [esp], 0x3f800000
push 0
push 0
push eax
call fcn.10049a30
test al, al
je 0x1004afe5
mov al, 1
jmp 0x1004afe7
xor al, al
mov byte [ebp - 0x89], al
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x1004b00b
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.1014ba4f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30