Function at 0x18014d4a0
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 - 0x178]
sub rsp, 0x238
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
mov rdi, rdx
xor r11d, r11d
mov r15d, r11d
mov dword [rbp + 0x190], r11d
mov dword [rbp + 0x180], r11d
cmp dword [0x180239ee4], r11d
je 0x18014e770
mov rcx, qword [0x18022bb08]
mov rax, qword [rcx]
movd xmm1, dword [0x180239f64]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x180], 3
lea r8, [rbp + 0x180]
lea rdx, [rbp - 0x10]
lea rcx, [0x180225850]
call fcn.1800b0d70
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
mov qword [rbp + 0x10], rdx
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x18], rax
cmp rdx, rax
je 0x18014e758
movss xmm7, dword [0x180202298]
movss xmm8, dword [0x180202368]
movss xmm9, dword [0x18020244c]
movss xmm6, dword [0x1802024bc]
nop dword [rax + rax]
mov r12, qword [rdx]
mov qword [rbp - 0x60], r12
mov rcx, r12
call fcn.1801483b0
mov rcx, qword [0x18022ba78]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x38], eax
lea rdx, [rbp - 0x38]
call r8
mov r13, rax
mov qword [rbp - 0x18], rax
test rax, rax
je 0x18014d710
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x18022ba90]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
je 0x18014d707
test byte [0x180239fe4], 8
je 0x18014d610
mov dword [rbp + 0x180], ebx
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0xb0]
lea rcx, [0x1802258d0]
call fcn.1800d57b0
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18014d6ae
test byte [0x180239fe4], 0x10
je 0x18014d6b2
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x40], 0xf
mov rax, qword [str.Default]
mov dword [rbp - 0x58], eax
movzx eax, word [0x1801f3b54]
mov word [rbp - 0x54], ax
movzx eax, byte [0x1801f3b56]
mov byte [rbp - 0x52], al
mov byte [rbp - 0x51], 0
or r15d, 1
mov dword [rbp + 0x190], r15d
mov dword [rbp + 0x180], r15d
mov dword [rbp + 0x198], ebx
lea r8, [rbp + 0x198]
lea rdx, [rbp + 0xc0]
lea rcx, [0x180225950]
call fcn.1800b0fb0
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x14]
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0xd0]
lea rcx, [0x18023a350]
call fcn.18013dcc0
mov rcx, qword [rax]
cmp ebx, dword [rcx + 0x34]
jle 0x18014d6b2
xor bl, bl
jmp 0x18014d6b4
mov bl, 1
test r15b, 1
je 0x18014d6ce
and r15d, 0xfffffffe
mov dword [rbp + 0x190], r15d
lea rcx, [rbp - 0x58]
call fcn.18008fd00
test bl, bl
je 0x18014d758
test byte [0x180239fe4], 1
jne 0x18014d6f9
mov rcx, r13
call fcn.1800a6d90
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800a6d90
cmp ebx, dword [rax]
jne 0x18014e742
test byte [0x180239fe4], 2
jne 0x18014d758
mov rcx, r13
jmp 0x18014d741
test byte [0x180239fe4], 4
jmp 0x18014d752
mov eax, dword [0x180239fe4]
test al, 1
jne 0x18014d73a
mov rcx, r12
call fcn.1800a6d90
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800a6d90
cmp ebx, dword [rax]
jne 0x18014e742
mov eax, dword [0x180239fe4]
test al, 2
jne 0x18014d758
mov rcx, r12
call fcn.1800a6d90
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800a6d90
cmp ebx, dword [rax]
je 0x18014e742
mov rcx, r12
call fcn.1800a6e90
mov rcx, r12
call fcn.1800a6f90
lea rcx, [r12 + 8]
mov rax, qword [rcx]
call qword [rax + 0x110]
mov rsi, rax
mov rcx, qword [0x18022ba90]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
mov ebx, eax
mov rdx, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rdx + 0x48]
cmp eax, ebx
jne 0x18014d7f1
mov rcx, qword [0x18022ba90]
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, rsi
lea rcx, [rbp - 0x10]
call fcn.1800bad50
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x48]
mov ecx, dword [rax]
mov dword [rsi + 0xc], ecx
mov ecx, dword [rax + 4]
mov dword [rsi + 0x1c], ecx
mov eax, dword [rax + 8]
mov dword [rsi + 0x2c], eax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, r12
call fcn.18017bd10
test al, al
je 0x18014e73b
movss xmm4, dword [rbp - 0x34]
subss xmm4, dword [rbp - 0x30]
movaps xmm3, xmm4
mulss xmm3, xmm7
movaps xmm0, xmm3
addss xmm0, dword [rbp - 0x30]
cvttss2si eax, xmm0
mov dword [rbp + 0x198], eax
cvttss2si ecx, dword [rbp - 0x2c]
mov dword [rsp + 0x54], ecx
addss xmm3, xmm3
subss xmm4, xmm3
cvttss2si esi, xmm4
mov dword [rsp + 0x50], esi
movss xmm0, dword [rbp - 0x28]
subss xmm0, dword [rbp - 0x2c]
cvttss2si edi, xmm0
mov dword [rbp - 0x64], edi
cmp eax, dword [0x180225230]
jg 0x18014e73b
add eax, esi
js 0x18014e73b
cmp ecx, dword [0x180225234]
jg 0x18014e73b
lea r14d, [rdi + rcx]
test r14d, r14d
js 0x18014e73b
xor eax, eax
mov ebx, eax
mov dword [rbp - 0x68], eax
mov r15d, eax
mov dword [rbp], eax
lea r8, [rbp]
lea rdx, [rbp + 0xe0]
call fcn.18017a750
mov rcx, qword [rax]
add rcx, 0x18
mov qword [rbp + 8], rcx
mov r9, r12
test r13, r13
cmovne r9, r13
movzx eax, byte [0x180239b61]
mov byte [rsp + 0x20], al
mov r8, qword [rbp + 0x188]
lea rdx, [rbp - 0x24]
call fcn.180177140
mov rcx, r12
call fcn.1800b33b0
mov r12d, dword [rax]
mov dword [rbp + 0x180], r12d
mov rcx, qword [rbp - 0x60]
call fcn.1800b32b0
lea rcx, [rbp + 0x180]
cmp r12d, dword [rax]
cmovge rcx, rax
mov r13d, dword [rcx]
mov rcx, qword [rbp - 0x60]
call fcn.1800b35b0
movzx eax, byte [rax]
mov byte [rbp + 0x180], al
test byte [0x180239ee4], 0x10
je 0x18014d95e
mov dword [rsp + 0x58], 0xff000000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, esi
mov r8d, dword [rsp + 0x54]
mov edx, dword [rbp + 0x198]
call fcn.180178280
test byte [0x180239ee4], 2
je 0x18014daa9
movd xmm2, r13d
cvtdq2ps xmm2, xmm2
movd xmm0, r12d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movzx edx, byte [0x180239ae8]
mov eax, dword [0x180239aec]
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 + 0x60], cl
movzx edx, byte [0x180239ae9]
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 + 0x61], al
movzx ecx, byte [0x180239aea]
movzx eax, byte [0x180239aee]
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 + 0x62], al
movzx ecx, byte [0x180239aeb]
movzx eax, byte [0x180239aef]
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 + 0x63], al
mov dword [rsp + 0x5c], 0xff000000
mov esi, dword [rbp + 0x198]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si ebx, xmm0
sub edi, ebx
add edi, dword [rsp + 0x54]
lea eax, [rbx + 2]
lea r8d, [rdi - 1]
lea edx, [rsi - 7]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 4
call fcn.180178200
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 2
mov r8d, edi
lea edx, [rsi - 6]
call fcn.180178200
mov ebx, 5
mov edi, dword [rbp - 0x64]
mov esi, dword [rsp + 0x50]
test byte [0x180239ee4], 4
je 0x18014db3d
mov dword [rsp + 0x50], 2
movd xmm3, r14d
cvtdq2ps xmm3, xmm3
movd xmm2, r13d
cvtdq2ps xmm2, xmm2
movd xmm0, r12d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm2, xmm1
subss xmm3, xmm2
subss xmm3, xmm8
cvttss2si r9d, xmm3
mov r8d, dword [rbp + 0x198]
sub r8d, ebx
sub r8d, 5
mov dword [rsp + 0x38], r13d
lea rax, [0x1801af31c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rbx, [0x18022fbf4]
mov qword [rsp + 0x20], rbx
mov r13, qword [rbp + 8]
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180177e00
jmp 0x18014db48
mov r13, qword [rbp + 8]
lea rbx, [0x18022fbf4]
mov r14, qword [rbp - 0x60]
test byte [0x180239ee4], 1
je 0x18014dc14
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014dbbd
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x18014dbb4
sub ecx, 2
je 0x18014db99
cmp ecx, 1
jne 0x18014dbbd
mov rcx, r14
call fcn.18014a900
lea rcx, str.Teleporter_Entrance
cmp dword [rax], r15d
lea rax, str.Teleporter_Exit
cmovne rcx, rax
jmp 0x18014dbc4
lea rcx, str.Sentry
cmp byte [rbp + 0x180], r15b
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x18014dbc4
lea rcx, str.Dispenser
jmp 0x18014dbc4
lea rcx, str.Unknown
mov r15d, dword [r13 + 8]
add r15d, 2
mov dword [rsp + 0x50], 1
mov r12d, dword [rsp + 0x54]
mov r9d, r12d
sub r9d, r15d
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbp + 0x198]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov r8d, eax
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
jmp 0x18014dc19
mov r12d, dword [rsp + 0x54]
test byte [0x180239ee4], 8
je 0x18014dcdb
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
mov rbx, rax
mov rax, qword [rbp + 0x188]
mov rdx, qword [rax]
mov rcx, rax
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 0x18014dc71
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x18014dc79
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
divss xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
cvttss2si ecx, xmm0
mov dword [rsp + 0x50], 1
lea r9d, [rdi + r12]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov edi, dword [rbp + 0x198]
lea r8d, [rdi + rax]
mov dword [rsp + 0x38], ecx
lea rcx, [0x1801fcfb0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [0x18022fbf4]
mov qword [rsp + 0x20], rcx
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
jmp 0x18014dce1
mov edi, dword [rbp + 0x198]
test byte [0x180239ee4], 0x20
je 0x18014df0a
mov rcx, r14
call fcn.18014aa00
cmp byte [rax], 0
jne 0x18014df0a
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x18014df0a
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 [0x18022ba90]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
lea rcx, [rdx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [rbp + 0x20]
mov edx, eax
mov rcx, qword [0x18022ba90]
call rbx
test al, al
je 0x18014df0a
mov edi, dword [r13 + 8]
add r15d, 2
add edi, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r15b
jne 0x18014dd94
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x58]
call fcn.180091dd0
nop
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r8, qword [rbp - 0x58]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov r8, rbx
lea rcx, [rsp + 0x78]
call fcn.18017d530
mov r15d, dword [rbp + 0x190]
or r15d, 2
mov dword [rbp + 0x190], r15d
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r8, qword [rbp - 0x58]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x64], 0xff57cafe
mov r9d, r12d
sub r9d, edi
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov edi, dword [rbp + 0x198]
lea r8d, [rdi + rax]
mov qword [rsp + 0x38], rcx
lea rcx, [0x1801fcfd0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x18014deec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18014dee7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014e79c
call fcn.18017f74c
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], bx
lea rcx, [rbp - 0x58]
call fcn.18008fd00
jmp 0x18014df13
xor ebx, ebx
mov r15d, dword [rbp + 0x190]
test byte [0x180239ee4], 0x40
je 0x18014e072
cmp byte [rbp + 0x180], 0
jne 0x18014e072
mov ecx, 4
mov eax, dword [0x18022a150]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022c070], ecx
jle 0x18014dff1
lea rcx, [0x18022c070]
call fcn.18017f7fc
cmp dword [0x18022c070], 0xffffffff
jne 0x18014dff1
mov rcx, qword [0x18022ba50]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014dfdd
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014df93
mov rdx, rbx
test rcx, rcx
je 0x18014dfd4
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014dfb0
cmp r9d, 0xc262c48c
je 0x18014e05d
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014df82
mov eax, ebx
mov dword [0x18022c060], eax
lea rcx, [0x18022c070]
call fcn.18017f790
movsxd rax, dword [0x18022c060]
mov ebx, dword [rax + r14]
mov rcx, r14
call fcn.1800b36b0
mov ecx, dword [rax]
xor r11d, r11d
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x68], 0xff57cafe
lea r8d, [rdi + 4]
add r8d, esi
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ecx
lea rax, str._d__d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
mov r12d, dword [r13 + 8]
jmp 0x18014e076
lea r8, str.m_iHighestUpgradeLevel
mov rdx, qword [r10 + 0x18]
call fcn.18017f390
jmp 0x18014dfdf
mov r12d, dword [rbp - 0x68]
test byte [0x180239ee4], 0x80
je 0x18014e73b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor edx, edx
mov r15d, edx
mov qword [rbp - 0x78], rdx
mov eax, 4
mov ebx, eax
mov edi, eax
mov eax, dword [0x18022a150]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rbx + rax]
cmp dword [0x18022c058], ecx
jle 0x18014e169
lea rcx, [0x18022c058]
call fcn.18017f7fc
mov edi, ebx
cmp dword [0x18022c058], 0xffffffff
jne 0x18014e167
mov rcx, qword [0x18022ba50]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014e152
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014e104
mov rdx, r11
test rcx, rcx
je 0x18014e144
nop word [rax + rax]
movsx eax, byte [r8 + rdx]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014e120
cmp r9d, 0xc262c48c
je 0x18014e30f
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e0f3
mov edi, 4
mov eax, r11d
mov dword [0x18022c044], eax
lea rcx, [0x18022c058]
call fcn.18017f790
xor edx, edx
movsxd rax, dword [0x18022c044]
movss xmm0, dword [rax + r14]
mulss xmm0, xmm6
comiss xmm6, xmm0
jbe 0x18014e1e5
cvttss2si eax, xmm0
test eax, eax
je 0x18014e1e5
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x6c], 0xff57cafe
cvtps2pd xmm0, xmm0
mov r9d, dword [rsp + 0x54]
add r9d, r12d
mov r8d, dword [rbp + 0x198]
add r8d, 4
add r8d, esi
movsd qword [rsp + 0x38], xmm0
lea rax, str.BUILDING:__0.f__
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
add r12d, dword [r13 + 8]
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, dword [0x18022a150]
mov rbx, qword gs:[0x58]
test rax, rax
je 0x18014e2e7
cmp dword [rax + 0x28], 0x58
jne 0x18014e2e7
mov rax, qword [rbx + rsi*8]
mov ecx, dword [rdi + rax]
cmp dword [0x18022c06c], ecx
jle 0x18014e2c2
lea rcx, [0x18022c06c]
call fcn.18017f7fc
cmp dword [0x18022c06c], 0xffffffff
jne 0x18014e2c2
mov rcx, qword [0x18022ba50]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014e2ad
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014e266
mov rdx, r11
test rcx, rcx
je 0x18014e2a4
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014e280
cmp r9d, 0x80133484
je 0x18014e329
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e255
mov eax, r11d
mov dword [0x18022c080], eax
lea rcx, [0x18022c06c]
call fcn.18017f790
movsxd rax, dword [0x18022c080]
cmp byte [rax + r14], 0
je 0x18014e2e7
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18014f900
mov r15, qword [rbp - 0x78]
mov rcx, r14
call fcn.1800b34b0
cmp byte [rax], 0
je 0x18014e359
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014e33e
xor edi, edi
lea r8d, [rdi + 6]
lea rdx, str.SAPPED
jmp 0x18014e447
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.18017f390
mov edi, 4
jmp 0x18014e155
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.18017f390
jmp 0x18014e2b0
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014f900
xor edi, edi
jmp 0x18014e47b
mov ecx, 4
mov rax, qword [rbx + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022c074], ecx
jle 0x18014e421
lea rcx, [0x18022c074]
call fcn.18017f7fc
cmp dword [0x18022c074], 0xffffffff
jne 0x18014e421
mov rcx, qword [0x18022ba50]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor edi, edi
test rax, rax
je 0x18014e3f9
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], dil
jne 0x18014e3b2
mov rdx, rdi
test rcx, rcx
je 0x18014e3f0
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 0x18014e3d0
cmp r9d, 0xc262c48c
je 0x18014e40f
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e3a1
mov eax, edi
mov dword [0x18022c090], eax
lea rcx, [0x18022c074]
call fcn.18017f790
jmp 0x18014e423
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.18017f390
jmp 0x18014e3fb
xor edi, edi
movsxd rax, dword [0x18022c090]
cmp byte [rax + r14], 0
je 0x18014e47f
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014e467
mov r8d, 8
lea rdx, str.DISABLED
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], rdi
mov rcx, rbx
call fcn.180127710
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e483
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014f900
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
lea rcx, [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014e657
cmp dword [rax + 0x28], 0x58
jne 0x18014e657
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022c048], ecx
jle 0x18014e561
lea rcx, [0x18022c048]
call fcn.18017f7fc
cmp dword [0x18022c048], 0xffffffff
jne 0x18014e561
mov rcx, qword [0x18022ba50]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014e54d
nop
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014e501
mov rdx, rdi
test rcx, rcx
je 0x18014e544
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 0x18014e520
cmp r9d, 0xc262c48c
je 0x18014e5c9
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e4f0
mov eax, edi
mov dword [0x18022c04c], eax
lea rcx, [0x18022c048]
call fcn.18017f790
movsxd rax, dword [0x18022c04c]
cmp byte [rax + r14], 0
jne 0x18014e657
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1c]
lea r8, [rbp - 0x64]
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.1800b38b0
cmp dword [rbp - 0x20], 0
jne 0x18014e5fa
cmp rbx, r15
je 0x18014e5de
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 7
lea rdx, str.NO_AMMO
mov rcx, rbx
call fcn.180127710
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e5fa
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.18017f390
jmp 0x18014e54f
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014f900
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
cmp byte [rbp + 0x180], 0
jne 0x18014e657
cmp dword [rbp - 0x1c], 0
jne 0x18014e657
cmp rbx, r15
je 0x18014e63b
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0xa
lea rdx, str.NO_ROCKETS
mov rcx, rbx
call fcn.180127710
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e657
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014f900
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 0x18], rsi
cmp rsi, rbx
je 0x18014e6e0
mov rdi, rsi
xor r11d, r11d
mov dword [rbp + 0x180], r11d
mov dword [rsp + 0x70], 0xff57cafe
mov esi, dword [rsp + 0x54]
mov r14d, dword [rbp + 0x198]
add r14d, esi
nop dword [rax + rax]
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18014e69d
mov rax, qword [rdi]
lea r9d, [r12 + rsi]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 2]
mov rdx, r13
lea rcx, [0x1802251f0]
call fcn.180178020
add r12d, dword [r13 + 8]
add rdi, 0x20
cmp rdi, rbx
jne 0x18014e690
mov rsi, qword [rbp - 0x18]
test rsi, rsi
je 0x18014e734
mov rdi, rsi
cmp rsi, rbx
je 0x18014e701
nop dword [rax]
mov rcx, rdi
call fcn.1800f21a0
add rdi, 0x20
cmp rdi, rbx
jne 0x18014e6f0
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x18014e729
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014e7a3
mov rdx, r15
mov rcx, rsi
call fcn.18017f74c
mov r15d, dword [rbp + 0x190]
mov rdi, qword [rbp + 0x188]
mov rdx, qword [rbp + 0x10]
add rdx, 8
mov qword [rbp + 0x10], rdx
cmp rdx, qword [rbp + 0x18]
jne 0x18014d580
mov rcx, qword [0x18022bb08]
mov rax, qword [rcx]
movss xmm1, dword [0x180202328]
call qword [rax + 0x360]
lea r11, [rsp + 0x238]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
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]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3