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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x278
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
mov r15, rdx
xor edi, edi
mov dword [rbp + 0x1d0], edi
mov dword [rbp + 0x1c0], edi
cmp dword [0x180237ea4], edi
je 0x18014d204
mov rcx, qword [0x180229ac0]
mov rax, qword [rcx]
movd xmm1, dword [0x180237f24]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x1c0], 3
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x10]
lea rcx, [0x1802237f0]
call fcn.1800b1200
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov qword [rbp + 8], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp + 0x10], rcx
cmp rax, rcx
je 0x18014d1ec
mov ecx, dword [0x18022812c]
mov qword [rbp - 0x18], rcx
movss xmm9, dword [0x180200048]
movss xmm11, dword [0x180200128]
movss xmm10, dword [0x18020021c]
movss xmm8, dword [0x18020028c]
nop dword [rax]
mov r12, qword [rax]
mov qword [rsp + 0x58], r12
mov rcx, r12
call fcn.1801470b0
mov rcx, qword [0x180229a30]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x28], eax
lea rdx, [rbp - 0x28]
call r8
mov r13, rax
test rax, rax
je 0x18014c297
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x180229a48]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
je 0x18014c28e
test byte [0x180237fa4], 8
je 0x18014c19d
mov dword [rbp + 0x1c0], ebx
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0xb0]
lea rcx, [0x180223870]
call fcn.1800d5c90
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18014c237
test byte [0x180237fa4], 0x10
je 0x18014c23b
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x68], 0xf
mov eax, dword [str.Default]
mov dword [rbp - 0x80], eax
movzx eax, word [0x1801f1bf4]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x1801f1bf6]
mov byte [rbp - 0x7a], al
mov byte [rbp - 0x79], 0
or edi, 1
mov dword [rbp + 0x1d0], edi
mov dword [rbp + 0x1c0], edi
mov dword [rbp + 0x1d8], ebx
lea r8, [rbp + 0x1d8]
lea rdx, [rbp + 0xc0]
lea rcx, [0x1802238f0]
call fcn.1800b1440
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x14]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0xd0]
lea rcx, [0x180238310]
call fcn.18013ca40
mov rcx, qword [rax]
cmp ebx, dword [rcx + 0x34]
jle 0x18014c23b
xor bl, bl
jmp 0x18014c23d
mov bl, 1
test dil, 1
je 0x18014c255
and edi, 0xfffffffe
mov dword [rbp + 0x1d0], edi
lea rcx, [rbp - 0x80]
call fcn.180090ae0
test bl, bl
je 0x18014c2df
test byte [0x180237fa4], 1
jne 0x18014c280
mov rcx, r13
call fcn.1800a7440
mov ebx, dword [rax]
mov rcx, r15
call fcn.1800a7440
cmp ebx, dword [rax]
jne 0x18014d1d6
test byte [0x180237fa4], 2
jne 0x18014c2df
mov rcx, r13
jmp 0x18014c2c8
test byte [0x180237fa4], 4
jmp 0x18014c2d9
mov eax, dword [0x180237fa4]
test al, 1
jne 0x18014c2c1
mov rcx, r12
call fcn.1800a7440
mov ebx, dword [rax]
mov rcx, r15
call fcn.1800a7440
cmp ebx, dword [rax]
jne 0x18014d1d6
mov eax, dword [0x180237fa4]
test al, 2
jne 0x18014c2df
mov rcx, r12
call fcn.1800a7440
mov ebx, dword [rax]
mov rcx, r15
call fcn.1800a7440
cmp ebx, dword [rax]
je 0x18014d1d6
mov rcx, r12
call fcn.1800a7530
mov rcx, r12
call fcn.1800a7620
lea rcx, [r12 + 8]
mov rax, qword [rcx]
call qword [rax + 0x110]
mov rdi, rax
lea rax, [r12 + 0x10]
mov qword [rbp + 0x18], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x180229a48]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x18014c37d
mov rcx, qword [0x180229a48]
mov qword [rbp - 0xc], 0
mov dword [rbp - 0x10], 0
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [rax + 0x98]
mov dword [rbp - 8], 0
mov dword [rbp - 0x10], 0
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.1800bae60
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x48]
mov ecx, dword [rax]
mov dword [rdi + 0xc], ecx
mov ecx, dword [rax + 4]
mov dword [rdi + 0x1c], ecx
mov eax, dword [rax + 8]
mov dword [rdi + 0x2c], eax
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
lea r8, [rbp]
mov rdx, rdi
mov rcx, r12
call fcn.18017a2c0
test al, al
je 0x18014d1d0
movss xmm4, dword [rbp - 0x20]
subss xmm4, dword [rbp]
movaps xmm3, xmm4
mulss xmm3, xmm9
movaps xmm0, xmm3
addss xmm0, dword [rbp]
cvttss2si edx, xmm0
mov dword [rsp + 0x60], edx
cvttss2si ecx, dword [rbp - 0x44]
mov dword [rbp + 0x1d8], ecx
addss xmm3, xmm3
subss xmm4, xmm3
cvttss2si eax, xmm4
mov dword [rbp - 0x58], eax
movss xmm0, dword [rbp - 0x40]
subss xmm0, dword [rbp - 0x44]
cvttss2si esi, xmm0
cmp edx, dword [0x1802231d0]
jg 0x18014d1d0
add eax, edx
mov dword [rbp - 0x54], eax
js 0x18014d1d0
cmp ecx, dword [0x1802231d4]
jg 0x18014d1d0
lea edi, [rsi + rcx]
mov dword [rsp + 0x50], edi
test edi, edi
js 0x18014d1d0
xor ebx, ebx
mov dword [rbp - 0x48], ebx
xor r14d, r14d
mov dword [rbp - 0x38], ebx
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0xe0]
call fcn.180178c50
mov rax, qword [rax]
mov qword [rbp - 0x60], rax
add rax, 0x18
mov qword [rbp - 0x50], rax
mov r9, r12
test r13, r13
cmovne r9, r13
movzx eax, byte [0x180237b21]
mov byte [rsp + 0x20], al
mov r8, r15
lea rdx, [rbp - 0x24]
call fcn.180175150
mov rcx, r12
call fcn.1800b3780
mov r15d, dword [rax]
mov dword [rbp + 0x1c0], r15d
mov rcx, r12
call fcn.1800b3690
lea rcx, [rbp + 0x1c0]
cmp r15d, dword [rax]
cmovge rcx, rax
mov r12d, dword [rcx]
mov rcx, qword [rsp + 0x58]
call fcn.1800b3960
movzx eax, byte [rax]
mov byte [rbp + 0x1c0], al
test byte [0x180237ea4], 0x10
je 0x18014c4eb
mov dword [rsp + 0x64], 0xff000000
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, dword [rbp - 0x58]
mov r8d, dword [rbp + 0x1d8]
mov edx, dword [rsp + 0x60]
call fcn.180176290
movd xmm6, r12d
cvtdq2ps xmm6, xmm6
test byte [0x180237ea4], 2
je 0x18014c63b
movd xmm0, r15d
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm6
divss xmm2, xmm0
movzx edx, byte [0x180237aa8]
mov eax, dword [0x180237aac]
movzx ecx, al
sub ecx, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [rsp + 0x6c], cl
movzx edx, byte [0x180237aa9]
shr eax, 8
movzx ecx, al
sub ecx, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov byte [rsp + 0x6d], al
movzx ecx, byte [0x180237aaa]
movzx eax, byte [0x180237aae]
sub eax, ecx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov byte [rsp + 0x6e], al
movzx ecx, byte [0x180237aab]
movzx eax, byte [0x180237aaf]
sub eax, ecx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov byte [rsp + 0x6f], al
mov dword [rsp + 0x68], 0xff000000
mov edi, dword [rsp + 0x60]
movd xmm7, esi
cvtdq2ps xmm7, xmm7
movaps xmm0, xmm7
mulss xmm0, xmm2
cvttss2si ebx, xmm0
sub esi, ebx
add esi, dword [rbp + 0x1d8]
lea eax, [rbx + 2]
lea r8d, [rsi - 1]
lea edx, [rdi - 7]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 4
call fcn.180176210
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 2
mov r8d, esi
lea edx, [rdi - 6]
call fcn.180176210
mov ebx, 5
mov edi, dword [rsp + 0x50]
jmp 0x18014c642
movd xmm7, esi
cvtdq2ps xmm7, xmm7
test byte [0x180237ea4], 4
je 0x18014c6c0
mov dword [rsp + 0x50], 2
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movd xmm0, r15d
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
mulss xmm6, xmm7
subss xmm1, xmm6
subss xmm1, xmm11
cvttss2si r9d, xmm1
mov r8d, dword [rsp + 0x60]
sub r8d, ebx
sub r8d, 5
mov dword [rsp + 0x38], r12d
lea rax, [0x1801ad3bc]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r15, [0x18022dbb4]
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp - 0x50]
mov rdx, rbx
lea rcx, [0x180223190]
call fcn.180175e10
jmp 0x18014c6cb
mov rbx, qword [rbp - 0x50]
lea r15, [0x18022dbb4]
test byte [0x180237ea4], 1
je 0x18014c79b
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014c73e
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x18014c735
sub ecx, 2
je 0x18014c71a
cmp ecx, 1
jne 0x18014c73e
mov rcx, qword [rsp + 0x58]
call fcn.1801495e0
lea rcx, str.Teleporter_Entrance
cmp dword [rax], r14d
lea rax, str.Teleporter_Exit
cmovne rcx, rax
jmp 0x18014c745
lea rcx, str.Sentry
cmp byte [rbp + 0x1c0], r14b
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x18014c745
lea rcx, str.Dispenser
jmp 0x18014c745
lea rcx, str.Unknown
mov rax, qword [rbp - 0x60]
mov r14d, dword [rax + 0x20]
add r14d, 2
mov dword [rsp + 0x50], 1
mov r9d, dword [rbp + 0x1d8]
sub r9d, r14d
mov esi, dword [rbp - 0x58]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov r12d, dword [rsp + 0x60]
lea r8d, [r12 + rax]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
mov rdx, rbx
lea rcx, [0x180223190]
call fcn.180176030
jmp 0x18014c7a3
mov esi, dword [rbp - 0x58]
mov r12d, dword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
test byte [0x180237ea4], 8
je 0x18014c864
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x48]
mov rbx, rax
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
movss xmm0, dword [rbx + 4]
subss xmm0, dword [rax + 4]
movss xmm1, dword [rbx]
subss xmm1, dword [rax]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x18014c7fd
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x18014c805
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
divss xmm0, xmm10
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
cvttss2si ecx, xmm0
mov dword [rsp + 0x50], 1
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea r8d, [r12 + rax]
mov dword [rsp + 0x38], ecx
lea rcx, [0x1801fae30]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [0x18022dbb4]
mov qword [rsp + 0x20], rcx
mov r9d, edi
mov rdi, qword [rbp - 0x50]
mov rdx, rdi
lea rcx, [0x180223190]
call fcn.180176030
jmp 0x18014c868
mov rdi, qword [rbp - 0x50]
test byte [0x180237ea4], 0x20
je 0x18014c9ca
mov rcx, r15
call fcn.1801496d0
cmp byte [rax], 0
jne 0x18014c9ca
test r13, r13
je 0x18014c9ca
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0xa0], eax
mov rax, qword [0x180229a48]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [rbp + 0x20]
mov edx, eax
mov rcx, qword [0x180229a48]
call rbx
mov r15, qword [rbp - 0x60]
test al, al
je 0x18014c9ce
mov ebx, dword [r15 + 0x20]
add ebx, 2
add ebx, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x18014c920
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.180092e80
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xf0]
call fcn.1801798e0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x18014c955
mov rcx, qword [rax]
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x70], 0xff57cafe
mov r13d, dword [rbp + 0x1d8]
mov r9d, r13d
sub r9d, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea r8d, [r12 + rax]
mov qword [rsp + 0x38], rcx
lea rcx, [0x1801fad18]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov rdx, rdi
lea rcx, [0x180223190]
call fcn.180176030
nop
lea rcx, [rbp + 0xf0]
call fcn.1800f1bd0
nop
lea rcx, [rbp - 0x80]
call fcn.180090ae0
jmp 0x18014c9d5
mov r15, qword [rbp - 0x60]
mov r13d, dword [rbp + 0x1d8]
mov esi, 4
test byte [0x180237ea4], 0x40
je 0x18014cb35
cmp byte [rbp + 0x1c0], 0
jne 0x18014cb35
mov rax, qword [rbp - 0x18]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rsi + rax]
cmp dword [0x18022a030], ecx
jle 0x18014cabf
lea rcx, [0x18022a030]
call fcn.18017dd34
cmp dword [0x18022a030], 0xffffffff
jne 0x18014cabf
mov rcx, qword [0x180229a08]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014caab
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014ca53
xor edx, edx
test rcx, rcx
je 0x18014ca90
nop dword [rax]
nop dword [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014ca70
cmp r9d, 0xc262c48c
je 0x18014ca99
mov r10, qword [r10 + 0x20]
test r10, r10
jmp 0x18014ca40
lea r8, str.m_iHighestUpgradeLevel
mov rdx, qword [r10 + 0x18]
call fcn.18017d7d0
jmp 0x18014caad
xor eax, eax
mov dword [0x18022a020], eax
lea rcx, [0x18022a030]
call fcn.18017dcd4
movsxd rax, dword [0x18022a020]
mov r14, qword [rsp + 0x58]
mov ebx, dword [rax + r14]
mov rcx, r14
call fcn.1800b3a50
mov ecx, dword [rax]
mov dword [rbp + 0x1d8], 0
mov dword [rsp + 0x74], 0xff57cafe
mov edi, dword [rbp - 0x54]
lea r8d, [rdi + 4]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ecx
lea rax, str._d__d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov rdx, qword [rbp - 0x50]
lea rcx, [0x180223190]
call fcn.180176030
mov r12d, dword [r15 + 0x20]
jmp 0x18014cb41
mov r14, qword [rsp + 0x58]
mov r12d, dword [rbp - 0x48]
mov edi, dword [rbp - 0x54]
test byte [0x180237ea4], 0x80
je 0x18014d1c9
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rbp - 0x70], r15
mov rax, qword [rbp - 0x18]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
mov eax, dword [rsi + rbx]
cmp dword [0x18022a018], eax
jle 0x18014cc2f
lea rcx, [0x18022a018]
call fcn.18017dd34
cmp dword [0x18022a018], 0xffffffff
jne 0x18014cc2f
mov rcx, qword [0x180229a08]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014cc1b
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014cbc1
xor edx, edx
test rcx, rcx
je 0x18014cc00
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014cbe0
cmp r9d, 0xc262c48c
je 0x18014cc09
mov r10, qword [r10 + 0x20]
test r10, r10
jmp 0x18014cbae
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.18017d7d0
jmp 0x18014cc1d
xor eax, eax
mov dword [0x18022a004], eax
lea rcx, [0x18022a018]
call fcn.18017dcd4
movsxd rax, dword [0x18022a004]
movss xmm0, dword [rax + r14]
mulss xmm0, xmm8
comiss xmm8, xmm0
jbe 0x18014ccac
cvttss2si eax, xmm0
test eax, eax
je 0x18014ccac
mov dword [rbp + 0x1d8], 0
mov dword [rsp + 0x78], 0xff57cafe
cvtps2pd xmm0, xmm0
lea r9d, [r12 + r13]
lea r8d, [rdi + 4]
movsd qword [rsp + 0x38], xmm0
lea rax, str.BUILDING:__0.f__
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp - 0x50]
lea rcx, [0x180223190]
call fcn.180176030
mov rax, qword [rbp - 0x60]
add r12d, dword [rax + 0x20]
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x10]
test rax, rax
je 0x18014cda9
cmp dword [rax + 0x28], 0x58
jne 0x18014cda9
mov eax, dword [rsi + rbx]
cmp dword [0x18022a02c], eax
jle 0x18014cd80
lea rcx, [0x18022a02c]
call fcn.18017dd34
cmp dword [0x18022a02c], 0xffffffff
jne 0x18014cd80
mov rcx, qword [0x180229a08]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014cd6c
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
nop dword [rax + rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014cd20
xor edx, edx
test rcx, rcx
je 0x18014cd51
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014cd31
cmp r9d, 0x80133484
je 0x18014cd5a
mov r10, qword [r10 + 0x20]
test r10, r10
jmp 0x18014cd05
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.18017d7d0
jmp 0x18014cd6e
xor eax, eax
mov dword [0x18022a040], eax
lea rcx, [0x18022a02c]
call fcn.18017dcd4
movsxd rax, dword [0x18022a040]
cmp byte [rax + r14], 0
je 0x18014cda9
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.18014e3e0
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x58], r15
mov rcx, r14
call fcn.1800b3870
cmp byte [rax], 0
je 0x18014cde9
mov rbx, qword [rbp - 0x78]
cmp rbx, r15
je 0x18014cdd1
mov r8d, 6
lea rdx, str.SAPPED
jmp 0x18014cec4
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18014e3e0
jmp 0x18014cef9
mov eax, dword [rsi + rbx]
cmp dword [0x18022a034], eax
jle 0x18014cea0
lea rcx, [0x18022a034]
call fcn.18017dd34
cmp dword [0x18022a034], 0xffffffff
jne 0x18014cea0
mov rcx, qword [0x180229a08]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014ce8c
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
nop word [rax + rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014ce40
xor edx, edx
test rcx, rcx
je 0x18014ce71
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014ce51
cmp r9d, 0xc262c48c
je 0x18014ce7a
mov r10, qword [r10 + 0x20]
test r10, r10
jmp 0x18014ce24
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.18017d7d0
jmp 0x18014ce8e
xor eax, eax
mov dword [0x18022a050], eax
lea rcx, [0x18022a034]
call fcn.18017dcd4
movsxd rax, dword [0x18022a050]
cmp byte [rax + r14], 0
je 0x18014cf02
mov rbx, qword [rbp - 0x78]
cmp rbx, r15
je 0x18014cee6
mov r8d, 8
lea rdx, str.DISABLED
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rcx, rbx
call fcn.1801267b0
add rbx, 0x20
mov qword [rbp - 0x78], rbx
jmp 0x18014cf06
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18014e3e0
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x58], r15
mov rbx, qword [rbp - 0x78]
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x10]
test rax, rax
je 0x18014d0eb
cmp dword [rax + 0x28], 0x58
jne 0x18014d0eb
mov rax, qword [rbp - 0x18]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rsi + rax]
cmp dword [0x18022a008], ecx
jle 0x18014cfef
lea rcx, [0x18022a008]
call fcn.18017dd34
cmp dword [0x18022a008], 0xffffffff
jne 0x18014cfef
mov rcx, qword [0x180229a08]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014cfdb
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014cf83
xor edx, edx
test rcx, rcx
je 0x18014cfc0
nop dword [rax]
nop dword [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014cfa0
cmp r9d, 0xc262c48c
je 0x18014cfc9
mov r10, qword [r10 + 0x20]
test r10, r10
jmp 0x18014cf70
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.18017d7d0
jmp 0x18014cfdd
xor eax, eax
mov dword [0x18022a00c], eax
lea rcx, [0x18022a008]
call fcn.18017dcd4
movsxd rax, dword [0x18022a00c]
cmp byte [rax + r14], 0
jne 0x18014d0eb
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2c]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1800b3c40
cmp dword [rbp - 0x30], 0
jne 0x18014d082
cmp rbx, r15
je 0x18014d062
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov r8d, 7
lea rdx, str.NO_AMMO
mov rcx, rbx
call fcn.1801267b0
add rbx, 0x20
mov qword [rbp - 0x78], rbx
jmp 0x18014d082
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18014e3e0
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x58], r15
mov rbx, qword [rbp - 0x78]
cmp byte [rbp + 0x1c0], 0
jne 0x18014d0eb
cmp dword [rbp - 0x2c], 0
jne 0x18014d0eb
cmp rbx, r15
je 0x18014d0cb
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov r8d, 0xa
lea rdx, str.NO_ROCKETS
mov rcx, rbx
call fcn.1801267b0
add rbx, 0x20
mov qword [rbp - 0x78], rbx
jmp 0x18014d0eb
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18014e3e0
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x58], r15
mov rbx, qword [rbp - 0x78]
mov rsi, qword [rbp - 0x80]
mov qword [rbp + 0x1d8], rsi
cmp rsi, rbx
je 0x18014d178
mov rdi, rsi
mov dword [rbp + 0x1c0], 0
mov dword [rsp + 0x7c], 0xff57cafe
mov r14d, dword [rsp + 0x60]
add r14d, r13d
mov rsi, qword [rbp - 0x50]
mov r15, qword [rbp - 0x60]
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x18014d12d
mov rax, qword [rdi]
lea r9d, [r12 + r13]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 2]
mov rdx, rsi
lea rcx, [0x180223190]
call fcn.180176030
add r12d, dword [r15 + 0x20]
add rdi, 0x20
cmp rdi, rbx
jne 0x18014d120
mov rsi, qword [rbp + 0x1d8]
mov r15, qword [rsp + 0x58]
test rsi, rsi
je 0x18014d1c9
mov rdi, rsi
cmp rsi, rbx
je 0x18014d196
mov rcx, rdi
call fcn.1800f1bd0
add rdi, 0x20
cmp rdi, rbx
jne 0x18014d185
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x18014d1be
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014d23a
mov rdx, r15
mov rcx, rsi
call fcn.18017dba4
mov r15, qword [rbp + 0x1c8]
mov edi, dword [rbp + 0x1d0]
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 8], rax
cmp rax, qword [rbp + 0x10]
jne 0x18014c110
mov rcx, qword [0x180229ac0]
mov rax, qword [rcx]
movss xmm1, dword [0x1802000e0]
call qword [rax + 0x360]
lea r11, [rsp + 0x278]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3