Function at 0x18014d760
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 - 0x188]
sub rsp, 0x248
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
mov r13, rdx
xor r12d, r12d
mov edi, r12d
mov dword [rbp + 0x1a0], r12d
mov dword [rbp + 0x190], r12d
cmp dword [0x18023b0d4], r12d
je 0x18014ea22
mov rcx, qword [0x18022cb88]
mov rax, qword [rcx]
movd xmm1, dword [0x18023b154]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x190], 3
lea r8, [rbp + 0x190]
lea rdx, [rbp]
lea rcx, [0x180226880]
call fcn.1800b0c50
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
mov qword [rbp + 0x18], rdx
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x20], rax
cmp rdx, rax
je 0x18014ea0a
movss xmm7, dword [0x180203440]
movss xmm9, dword [0x180203510]
movss xmm8, dword [0x180203600]
movss xmm6, dword [0x180203670]
nop dword [rax + rax]
mov r14, qword [rdx]
mov qword [rbp - 0x10], r14
mov rcx, r14
call fcn.180148650
mov rcx, qword [0x18022caf8]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x24], eax
lea rdx, [rbp - 0x24]
call r8
mov rsi, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x18014d9cb
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x18022cb10]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
je 0x18014d9c2
test byte [0x18023b1d4], 8
je 0x18014d8d0
mov dword [rbp + 0x190], ebx
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0xc0]
lea rcx, [0x180226900]
call fcn.1800d4c80
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18014d96b
test byte [0x18023b1d4], 0x10
je 0x18014d96f
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 [0x1801f4b84]
mov word [rbp - 0x54], ax
movzx eax, byte [0x1801f4b86]
mov byte [rbp - 0x52], al
mov byte [rbp - 0x51], 0
or edi, 1
mov dword [rbp + 0x1a0], edi
mov dword [rbp + 0x190], edi
mov dword [rbp + 0x1a8], ebx
lea r8, [rbp + 0x1a8]
lea rdx, [rbp + 0xd0]
lea rcx, [0x180226980]
call fcn.1800b0e90
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x14]
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0xe0]
lea rcx, [0x18023b540]
call fcn.18013db20
mov rcx, qword [rax]
cmp ebx, dword [rcx + 0x34]
jle 0x18014d96f
xor bl, bl
jmp 0x18014d971
mov bl, 1
test dil, 1
je 0x18014d989
and edi, 0xfffffffe
mov dword [rbp + 0x1a0], edi
lea rcx, [rbp - 0x58]
call fcn.18008f640
test bl, bl
je 0x18014da13
test byte [0x18023b1d4], 1
jne 0x18014d9b4
mov rcx, rsi
call fcn.1800a6680
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a6680
cmp ebx, dword [rax]
jne 0x18014e9f4
test byte [0x18023b1d4], 2
jne 0x18014da13
mov rcx, rsi
jmp 0x18014d9fc
test byte [0x18023b1d4], 4
jmp 0x18014da0d
mov eax, dword [0x18023b1d4]
test al, 1
jne 0x18014d9f5
mov rcx, r14
call fcn.1800a6680
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a6680
cmp ebx, dword [rax]
jne 0x18014e9f4
mov eax, dword [0x18023b1d4]
test al, 2
jne 0x18014da13
mov rcx, r14
call fcn.1800a6680
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a6680
cmp ebx, dword [rax]
je 0x18014e9f4
mov rcx, r14
call fcn.1800a6780
mov rcx, r14
call fcn.1800a6880
lea rcx, [r14 + 8]
mov rax, qword [rcx]
call qword [rax + 0x110]
mov rdi, rax
lea rcx, [r14 + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x18022cb10]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x18014daa7
mov rcx, qword [0x18022cb10]
mov qword [rbp + 4], 0
mov dword [rbp], 0
mov rax, qword [rcx]
lea rdx, [rbp]
call qword [rax + 0x98]
mov dword [rbp + 8], 0
mov dword [rbp], 0
mov rdx, rdi
lea rcx, [rbp]
call fcn.1800baca0
mov rax, qword [r14]
mov rcx, r14
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 + 0x14]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
lea r8, [rbp + 0x10]
mov rdx, rdi
mov rcx, r14
call fcn.18017bdd0
test al, al
je 0x18014e9ee
movss xmm4, dword [rbp - 0x18]
subss xmm4, dword [rbp + 0x10]
movaps xmm3, xmm4
mulss xmm3, xmm7
movaps xmm0, xmm3
addss xmm0, dword [rbp + 0x10]
cvttss2si edx, xmm0
mov dword [rsp + 0x54], edx
cvttss2si ecx, dword [rbp + 0x14]
mov dword [rbp + 0x1a8], ecx
addss xmm3, xmm3
subss xmm4, xmm3
cvttss2si eax, xmm4
mov dword [rbp - 0x68], eax
movss xmm0, dword [rbp - 0x38]
subss xmm0, dword [rbp + 0x14]
cvttss2si edi, xmm0
mov dword [rsp + 0x50], edi
cmp edx, dword [0x180226260]
jg 0x18014e9ee
add eax, edx
js 0x18014e9ee
cmp ecx, dword [0x180226264]
jg 0x18014e9ee
lea r15d, [rdi + rcx]
test r15d, r15d
js 0x18014e9ee
mov ebx, r12d
mov dword [rbp - 0x64], r12d
xor r11d, r11d
mov dword [rbp - 0x30], r11d
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0xf0]
call fcn.18017a8c0
mov rax, qword [rax]
add rax, 0x18
mov qword [rbp - 0x60], rax
mov r9, r14
test rsi, rsi
cmovne r9, rsi
movzx eax, byte [0x18023ad51]
mov byte [rsp + 0x20], al
mov r8, r13
lea rdx, [rbp - 0x28]
call fcn.1801772b0
mov rcx, r14
call fcn.1800b3470
mov r13d, dword [rax]
mov rcx, r14
call fcn.1800b3370
mov r14d, dword [rax]
cmp r13d, r14d
cmovl r14d, r13d
mov rcx, qword [rbp - 0x10]
call fcn.1800b3670
movzx eax, byte [rax]
mov byte [rbp + 0x190], al
test byte [0x18023b0d4], 0x10
je 0x18014dc03
mov dword [rsp + 0x58], 0xff000000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp - 0x68]
mov r8d, dword [rbp + 0x1a8]
mov edx, dword [rsp + 0x54]
call fcn.1801783f0
test byte [0x18023b0d4], 2
je 0x18014dd4f
movd xmm2, r14d
cvtdq2ps xmm2, xmm2
movd xmm0, r13d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movzx edx, byte [0x18023acd8]
mov eax, dword [0x18023acdc]
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 [0x18023acd9]
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 [0x18023acda]
movzx eax, byte [0x18023acde]
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 [0x18023acdb]
movzx eax, byte [0x18023acdf]
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 [rsp + 0x54]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si ebx, xmm0
sub edi, ebx
add edi, dword [rbp + 0x1a8]
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.180178370
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.180178370
mov ebx, 5
mov edi, dword [rsp + 0x50]
mov rsi, qword [rbp - 8]
test byte [0x18023b0d4], 4
je 0x18014dde1
mov dword [rsp + 0x50], 2
movd xmm3, r15d
cvtdq2ps xmm3, xmm3
movd xmm2, r14d
cvtdq2ps xmm2, xmm2
movd xmm0, r13d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mulss xmm2, xmm1
subss xmm3, xmm2
subss xmm3, xmm9
cvttss2si r9d, xmm3
mov r8d, dword [rsp + 0x54]
sub r8d, ebx
sub r8d, 5
mov dword [rsp + 0x38], r14d
lea rax, [0x1801b031c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rbx, [0x180230de4]
mov qword [rsp + 0x20], rbx
mov r15, qword [rbp - 0x60]
mov rdx, r15
lea rcx, [0x180226220]
call fcn.180177f70
jmp 0x18014ddec
mov r15, qword [rbp - 0x60]
lea rbx, [0x180230de4]
mov r13, qword [rbp - 0x10]
test byte [0x18023b0d4], 1
je 0x18014deba
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014de61
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x18014de58
sub ecx, 2
je 0x18014de3d
cmp ecx, 1
jne 0x18014de61
mov rcx, r13
call fcn.18014abf0
lea rcx, str.Teleporter_Entrance
cmp dword [rax], 0
lea rax, str.Teleporter_Exit
cmovne rcx, rax
jmp 0x18014de68
lea rcx, str.Sentry
cmp byte [rbp + 0x190], 0
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x18014de68
lea rcx, str.Dispenser
jmp 0x18014de68
lea rcx, str.Unknown
mov r12d, dword [r15 + 8]
add r12d, 2
mov dword [rsp + 0x50], 1
mov r9d, dword [rbp + 0x1a8]
sub r9d, r12d
mov r14d, dword [rbp - 0x68]
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
add eax, dword [rsp + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov r8d, eax
mov rdx, r15
lea rcx, [0x180226220]
call fcn.180178190
jmp 0x18014debe
mov r14d, dword [rbp - 0x68]
test byte [0x18023b0d4], 8
je 0x18014df83
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x48]
mov rbx, rax
mov rcx, qword [rbp + 0x198]
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 0x18014df14
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x18014df1c
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
divss xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
cvttss2si ecx, xmm0
mov dword [rsp + 0x50], 1
mov r9d, dword [rbp + 0x1a8]
add r9d, edi
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
mov edi, dword [rsp + 0x54]
lea r8d, [rdi + rax]
mov dword [rsp + 0x38], ecx
lea rcx, [0x1801fe1b8]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [0x180230de4]
mov qword [rsp + 0x20], rcx
mov rdx, r15
lea rcx, [0x180226220]
call fcn.180178190
jmp 0x18014df87
mov edi, dword [rsp + 0x54]
test byte [0x18023b0d4], 0x20
je 0x18014e1b3
mov rcx, r13
call fcn.18014acf0
cmp byte [rax], 0
jne 0x18014e1b3
test rsi, rsi
je 0x18014e1b3
xorps xmm0, xmm0
xor eax, eax
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
movups xmmword [rbp + 0xa0], xmm0
mov dword [rbp + 0xb0], eax
mov rax, qword [0x18022cb10]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
lea rcx, [rsi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [rbp + 0x30]
mov edx, eax
mov rcx, qword [0x18022cb10]
call rbx
test al, al
je 0x18014e1b3
mov edi, dword [r15 + 8]
add r12d, 2
add edi, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xor r12d, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
lea rax, [rbp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x18014e040
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.1800916b0
nop
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r8, qword [rbp - 0x58]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov r8, rbx
lea rcx, [rsp + 0x78]
call fcn.18017d5f0
or dword [rbp + 0x1a0], 2
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
mov r9d, 0xffffffff
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 esi, dword [rbp + 0x1a8]
mov r9d, esi
sub r9d, edi
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
mov edi, dword [rsp + 0x54]
lea r8d, [rdi + rax]
mov qword [rsp + 0x38], rcx
lea rcx, [0x1801fe1b0]
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, r15
lea rcx, [0x180226220]
call fcn.180178190
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x18014e196
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18014e191
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014ea4e
call fcn.18017f7ac
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea rcx, [rbp - 0x58]
call fcn.18008f640
jmp 0x18014e1bc
xor r12d, r12d
mov esi, dword [rbp + 0x1a8]
test byte [0x18023b0d4], 0x40
je 0x18014e320
cmp byte [rbp + 0x190], 0
jne 0x18014e320
mov ecx, 4
mov eax, dword [0x18022b1cc]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022d0e0], ecx
jle 0x18014e2a2
lea rcx, [0x18022d0e0]
call fcn.18017f85c
cmp dword [0x18022d0e0], 0xffffffff
jne 0x18014e2a2
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014e28d
nop dword [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014e241
mov rdx, r12
test rcx, rcx
je 0x18014e284
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 0x18014e260
cmp r9d, 0xc262c48c
je 0x18014e30b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e230
mov eax, r12d
mov dword [0x18022d0d0], eax
lea rcx, [0x18022d0e0]
call fcn.18017f7f0
movsxd rax, dword [0x18022d0d0]
mov ebx, dword [rax + r13]
mov rcx, r13
call fcn.1800b3770
mov ecx, dword [rax]
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x68], 0xff57cafe
lea r8d, [rdi + 4]
add r8d, r14d
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, esi
mov rdx, r15
lea rcx, [0x180226220]
call fcn.180178190
mov r12d, dword [r15 + 8]
jmp 0x18014e324
lea r8, str.m_iHighestUpgradeLevel
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
jmp 0x18014e290
mov r12d, dword [rbp - 0x64]
test byte [0x18023b0d4], 0x80
je 0x18014e9e4
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 [0x18022b1cc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rbx + rax]
cmp dword [0x18022d0c8], ecx
jle 0x18014e419
lea rcx, [0x18022d0c8]
call fcn.18017f85c
mov edi, ebx
cmp dword [0x18022d0c8], 0xffffffff
jne 0x18014e417
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014e402
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014e3b2
mov rdx, r11
test rcx, rcx
je 0x18014e3f4
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 0x18014e5c1
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e3a1
mov edi, 4
mov eax, r11d
mov dword [0x18022d0b4], eax
lea rcx, [0x18022d0c8]
call fcn.18017f7f0
xor edx, edx
movsxd rax, dword [0x18022d0b4]
movss xmm0, dword [rax + r13]
mulss xmm0, xmm6
comiss xmm6, xmm0
jbe 0x18014e493
cvttss2si eax, xmm0
test eax, eax
je 0x18014e493
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x6c], 0xff57cafe
cvtps2pd xmm0, xmm0
lea r9d, [r12 + rsi]
mov r8d, dword [rsp + 0x54]
add r8d, 4
add r8d, r14d
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 rbx, qword [rbp - 0x60]
mov rdx, rbx
lea rcx, [0x180226220]
call fcn.180178190
add r12d, dword [rbx + 8]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, dword [0x18022b1cc]
mov r14, qword gs:[0x58]
test rax, rax
je 0x18014e597
cmp dword [rax + 0x28], 0x58
jne 0x18014e597
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rdi + rax]
cmp dword [0x18022d0dc], ecx
jle 0x18014e572
lea rcx, [0x18022d0dc]
call fcn.18017f85c
cmp dword [0x18022d0dc], 0xffffffff
jne 0x18014e572
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014e55d
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014e514
mov rdx, r11
test rcx, rcx
je 0x18014e554
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014e530
cmp r9d, 0x80133484
je 0x18014e5db
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e503
mov eax, r11d
mov dword [0x18022d0f0], eax
lea rcx, [0x18022d0dc]
call fcn.18017f7f0
movsxd rax, dword [0x18022d0f0]
cmp byte [rax + r13], 0
je 0x18014e597
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18014fbb0
mov r15, qword [rbp - 0x78]
mov rcx, r13
call fcn.1800b3570
cmp byte [rax], 0
je 0x18014e60b
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014e5f0
xor edi, edi
mov r8d, 6
lea rdx, str.SAPPED
jmp 0x18014e6f7
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
mov edi, 4
jmp 0x18014e405
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
jmp 0x18014e560
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014fbb0
xor edi, edi
jmp 0x18014e72b
mov ecx, 4
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022d0e4], ecx
jle 0x18014e6d1
lea rcx, [0x18022d0e4]
call fcn.18017f85c
cmp dword [0x18022d0e4], 0xffffffff
jne 0x18014e6d1
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor edi, edi
test rax, rax
je 0x18014e6a9
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], dil
jne 0x18014e664
mov rdx, rdi
test rcx, rcx
je 0x18014e6a0
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014e680
cmp r9d, 0xc262c48c
je 0x18014e6bf
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e653
mov eax, edi
mov dword [0x18022d100], eax
lea rcx, [0x18022d0e4]
call fcn.18017f7f0
jmp 0x18014e6d3
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
jmp 0x18014e6ab
xor edi, edi
movsxd rax, dword [0x18022d100]
cmp byte [rax + r13], 0
je 0x18014e72f
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014e717
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.180126cb0
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e733
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014fbb0
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014e907
cmp dword [rax + 0x28], 0x58
jne 0x18014e907
mov ecx, 4
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022d0b8], ecx
jle 0x18014e811
lea rcx, [0x18022d0b8]
call fcn.18017f85c
cmp dword [0x18022d0b8], 0xffffffff
jne 0x18014e811
mov rcx, qword [0x18022cad0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014e7fd
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014e7b1
mov rdx, rdi
test rcx, rcx
je 0x18014e7f4
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 0x18014e7d0
cmp r9d, 0xc262c48c
je 0x18014e879
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014e7a0
mov eax, edi
mov dword [0x18022d0bc], eax
lea rcx, [0x18022d0b8]
call fcn.18017f7f0
movsxd rax, dword [0x18022d0bc]
cmp byte [rax + r13], 0
jne 0x18014e907
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1c]
lea r8, [rbp - 0x64]
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.1800b3970
cmp dword [rbp - 0x20], 0
jne 0x18014e8aa
cmp rbx, r15
je 0x18014e88e
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.180126cb0
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e8aa
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.18017f3f0
jmp 0x18014e7ff
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014fbb0
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
cmp byte [rbp + 0x190], 0
jne 0x18014e907
cmp dword [rbp - 0x1c], 0
jne 0x18014e907
cmp rbx, r15
je 0x18014e8eb
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.180126cb0
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014e907
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014fbb0
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 8], rsi
cmp rsi, rbx
je 0x18014e990
mov rdi, rsi
xor r11d, r11d
mov dword [rbp + 0x190], r11d
mov dword [rsp + 0x70], 0xff57cafe
mov esi, dword [rbp + 0x1a8]
mov r14d, dword [rsp + 0x54]
add r14d, esi
mov r13, qword [rbp - 0x60]
nop dword [rax]
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18014e94d
mov rax, qword [rdi]
lea r9d, [r12 + rsi]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 2]
mov rdx, r13
lea rcx, [0x180226220]
call fcn.180178190
add r12d, dword [r13 + 8]
add rdi, 0x20
cmp rdi, rbx
jne 0x18014e940
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x18014e9e4
mov rdi, rsi
cmp rsi, rbx
je 0x18014e9b1
nop dword [rax]
mov rcx, rdi
call fcn.1800f13b0
add rdi, 0x20
cmp rdi, rbx
jne 0x18014e9a0
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x18014e9d9
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014ea55
mov rdx, r15
mov rcx, rsi
call fcn.18017f7ac
mov r13, qword [rbp + 0x198]
xor r12d, r12d
mov edi, dword [rbp + 0x1a0]
mov rdx, qword [rbp + 0x18]
add rdx, 8
mov qword [rbp + 0x18], rdx
cmp rdx, qword [rbp + 0x20]
jne 0x18014d840
mov rcx, qword [0x18022cb88]
mov rax, qword [rcx]
movss xmm1, dword [0x1802034d0]
call qword [rax + 0x360]
lea r11, [rsp + 0x248]
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