Function at 0x18014c310
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 [0x180238ea4], r12d
je 0x18014d5d2
mov rcx, qword [0x18022aac8]
mov rax, qword [rcx]
movd xmm1, dword [0x180238f24]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x190], 3
lea r8, [rbp + 0x190]
lea rdx, [rbp]
lea rcx, [0x180224820]
call fcn.1800bbfb0
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 0x18014d5ba
movss xmm7, dword [0x1802013e8]
movss xmm9, dword [0x1802014b8]
movss xmm8, dword [0x18020159c]
movss xmm6, dword [0x18020160c]
nop dword [rax + rax]
mov r14, qword [rdx]
mov qword [rbp - 0x10], r14
mov rcx, r14
call fcn.180147200
mov rcx, qword [0x18022aa40]
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 0x18014c57b
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x18022aa58]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
je 0x18014c572
test byte [0x180238fa4], 8
je 0x18014c480
mov dword [rbp + 0x190], ebx
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0xc0]
lea rcx, [0x1802248a0]
call fcn.1800d3ef0
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18014c51b
test byte [0x180238fa4], 0x10
je 0x18014c51f
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 [0x1801f5ae4]
mov word [rbp - 0x54], ax
movzx eax, byte [0x1801f5ae6]
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, [0x180224920]
call fcn.1800bc1f0
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x14]
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0xe0]
lea rcx, [0x180239310]
call fcn.18013c970
mov rcx, qword [rax]
cmp ebx, dword [rcx + 0x34]
jle 0x18014c51f
xor bl, bl
jmp 0x18014c521
mov bl, 1
test dil, 1
je 0x18014c539
and edi, 0xfffffffe
mov dword [rbp + 0x1a0], edi
lea rcx, [rbp - 0x58]
call fcn.18008ede0
test bl, bl
je 0x18014c5c3
test byte [0x180238fa4], 1
jne 0x18014c564
mov rcx, rsi
call fcn.1800b1f40
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800b1f40
cmp ebx, dword [rax]
jne 0x18014d5a4
test byte [0x180238fa4], 2
jne 0x18014c5c3
mov rcx, rsi
jmp 0x18014c5ac
test byte [0x180238fa4], 4
jmp 0x18014c5bd
mov eax, dword [0x180238fa4]
test al, 1
jne 0x18014c5a5
mov rcx, r14
call fcn.1800b1f40
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800b1f40
cmp ebx, dword [rax]
jne 0x18014d5a4
mov eax, dword [0x180238fa4]
test al, 2
jne 0x18014c5c3
mov rcx, r14
call fcn.1800b1f40
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800b1f40
cmp ebx, dword [rax]
je 0x18014d5a4
mov rcx, r14
call fcn.1800b2040
mov rcx, r14
call fcn.1800b2140
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 [0x18022aa58]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x18014c657
mov rcx, qword [0x18022aa58]
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.1800c5e30
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.18017a8b0
test al, al
je 0x18014d59e
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 [0x180224230]
jg 0x18014d59e
add eax, edx
js 0x18014d59e
cmp ecx, dword [0x180224234]
jg 0x18014d59e
lea r15d, [rdi + rcx]
test r15d, r15d
js 0x18014d59e
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.180179480
mov rax, qword [rax]
add rax, 0x18
mov qword [rbp - 0x60], rax
mov r9, r14
test rsi, rsi
cmovne r9, rsi
movzx eax, byte [0x180238b21]
mov byte [rsp + 0x20], al
mov r8, r13
lea rdx, [rbp - 0x28]
call fcn.180175e70
mov rcx, r14
call fcn.1800be610
mov r13d, dword [rax]
mov rcx, r14
call fcn.1800be510
mov r14d, dword [rax]
cmp r13d, r14d
cmovl r14d, r13d
mov rcx, qword [rbp - 0x10]
call fcn.1800be810
movzx eax, byte [rax]
mov byte [rbp + 0x190], al
test byte [0x180238ea4], 0x10
je 0x18014c7b3
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.180176fb0
test byte [0x180238ea4], 2
je 0x18014c8ff
movd xmm2, r14d
cvtdq2ps xmm2, xmm2
movd xmm0, r13d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movzx edx, byte [0x180238aa8]
mov eax, dword [0x180238aac]
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 [0x180238aa9]
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 [0x180238aaa]
movzx eax, byte [0x180238aae]
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 [0x180238aab]
movzx eax, byte [0x180238aaf]
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.180176f30
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.180176f30
mov ebx, 5
mov edi, dword [rsp + 0x50]
mov rsi, qword [rbp - 8]
test byte [0x180238ea4], 4
je 0x18014c991
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, [0x1801ae2dc]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rbx, [0x18022ebb4]
mov qword [rsp + 0x20], rbx
mov r15, qword [rbp - 0x60]
mov rdx, r15
lea rcx, [0x1802241f0]
call fcn.180176b30
jmp 0x18014c99c
mov r15, qword [rbp - 0x60]
lea rbx, [0x18022ebb4]
mov r13, qword [rbp - 0x10]
test byte [0x180238ea4], 1
je 0x18014ca6a
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18014ca11
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x18014ca08
sub ecx, 2
je 0x18014c9ed
cmp ecx, 1
jne 0x18014ca11
mov rcx, r13
call fcn.1801497a0
lea rcx, str.Teleporter_Entrance
cmp dword [rax], 0
lea rax, str.Teleporter_Exit
cmovne rcx, rax
jmp 0x18014ca18
lea rcx, str.Sentry
cmp byte [rbp + 0x190], 0
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x18014ca18
lea rcx, str.Dispenser
jmp 0x18014ca18
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, [0x1802241f0]
call fcn.180176d50
jmp 0x18014ca6e
mov r14d, dword [rbp - 0x68]
test byte [0x180238ea4], 8
je 0x18014cb33
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 0x18014cac4
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x18014cacc
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, [0x1801fc1c8]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [0x18022ebb4]
mov qword [rsp + 0x20], rcx
mov rdx, r15
lea rcx, [0x1802241f0]
call fcn.180176d50
jmp 0x18014cb37
mov edi, dword [rsp + 0x54]
test byte [0x180238ea4], 0x20
je 0x18014cd63
mov rcx, r13
call fcn.1801498a0
cmp byte [rax], 0
jne 0x18014cd63
test rsi, rsi
je 0x18014cd63
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 [0x18022aa58]
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 [0x18022aa58]
call rbx
test al, al
je 0x18014cd63
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 0x18014cbf0
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.180090e50
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.18017c0d0
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, [0x1801fc0b0]
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, [0x1802241f0]
call fcn.180176d50
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x18014cd46
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18014cd41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014d5fe
call fcn.18017e28c
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea rcx, [rbp - 0x58]
call fcn.18008ede0
jmp 0x18014cd6c
xor r12d, r12d
mov esi, dword [rbp + 0x1a8]
test byte [0x180238ea4], 0x40
je 0x18014ced0
cmp byte [rbp + 0x190], 0
jne 0x18014ced0
mov ecx, 4
mov eax, dword [0x18022910c]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022b030], ecx
jle 0x18014ce52
lea rcx, [0x18022b030]
call fcn.18017e33c
cmp dword [0x18022b030], 0xffffffff
jne 0x18014ce52
mov rcx, qword [0x18022aa18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014ce3d
nop dword [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014cdf1
mov rdx, r12
test rcx, rcx
je 0x18014ce34
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 0x18014ce10
cmp r9d, 0xc262c48c
je 0x18014cebb
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014cde0
mov eax, r12d
mov dword [0x18022b020], eax
lea rcx, [0x18022b030]
call fcn.18017e2d0
movsxd rax, dword [0x18022b020]
mov ebx, dword [rax + r13]
mov rcx, r13
call fcn.1800be910
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, [0x1802241f0]
call fcn.180176d50
mov r12d, dword [r15 + 8]
jmp 0x18014ced4
lea r8, str.m_iHighestUpgradeLevel
mov rdx, qword [r10 + 0x18]
call fcn.18017ded0
jmp 0x18014ce40
mov r12d, dword [rbp - 0x64]
test byte [0x180238ea4], 0x80
je 0x18014d594
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 [0x18022910c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rbx + rax]
cmp dword [0x18022b018], ecx
jle 0x18014cfc9
lea rcx, [0x18022b018]
call fcn.18017e33c
mov edi, ebx
cmp dword [0x18022b018], 0xffffffff
jne 0x18014cfc7
mov rcx, qword [0x18022aa18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014cfb2
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014cf62
mov rdx, r11
test rcx, rcx
je 0x18014cfa4
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 0x18014cf80
cmp r9d, 0xc262c48c
je 0x18014d171
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014cf51
mov edi, 4
mov eax, r11d
mov dword [0x18022b004], eax
lea rcx, [0x18022b018]
call fcn.18017e2d0
xor edx, edx
movsxd rax, dword [0x18022b004]
movss xmm0, dword [rax + r13]
mulss xmm0, xmm6
comiss xmm6, xmm0
jbe 0x18014d043
cvttss2si eax, xmm0
test eax, eax
je 0x18014d043
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, [0x1802241f0]
call fcn.180176d50
add r12d, dword [rbx + 8]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, dword [0x18022910c]
mov r14, qword gs:[0x58]
test rax, rax
je 0x18014d147
cmp dword [rax + 0x28], 0x58
jne 0x18014d147
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rdi + rax]
cmp dword [0x18022b02c], ecx
jle 0x18014d122
lea rcx, [0x18022b02c]
call fcn.18017e33c
cmp dword [0x18022b02c], 0xffffffff
jne 0x18014d122
mov rcx, qword [0x18022aa18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x18014d10d
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x18014d0c4
mov rdx, r11
test rcx, rcx
je 0x18014d104
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014d0e0
cmp r9d, 0x80133484
je 0x18014d18b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014d0b3
mov eax, r11d
mov dword [0x18022b040], eax
lea rcx, [0x18022b02c]
call fcn.18017e2d0
movsxd rax, dword [0x18022b040]
cmp byte [rax + r13], 0
je 0x18014d147
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18014e760
mov r15, qword [rbp - 0x78]
mov rcx, r13
call fcn.1800be710
cmp byte [rax], 0
je 0x18014d1bb
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014d1a0
xor edi, edi
mov r8d, 6
lea rdx, str.SAPPED
jmp 0x18014d2a7
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.18017ded0
mov edi, 4
jmp 0x18014cfb5
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.18017ded0
jmp 0x18014d110
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014e760
xor edi, edi
jmp 0x18014d2db
mov ecx, 4
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022b034], ecx
jle 0x18014d281
lea rcx, [0x18022b034]
call fcn.18017e33c
cmp dword [0x18022b034], 0xffffffff
jne 0x18014d281
mov rcx, qword [0x18022aa18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor edi, edi
test rax, rax
je 0x18014d259
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], dil
jne 0x18014d214
mov rdx, rdi
test rcx, rcx
je 0x18014d250
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18014d230
cmp r9d, 0xc262c48c
je 0x18014d26f
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014d203
mov eax, edi
mov dword [0x18022b050], eax
lea rcx, [0x18022b034]
call fcn.18017e2d0
jmp 0x18014d283
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.18017ded0
jmp 0x18014d25b
xor edi, edi
movsxd rax, dword [0x18022b050]
cmp byte [rax + r13], 0
je 0x18014d2df
mov rbx, qword [rbp - 0x80]
cmp rbx, r15
je 0x18014d2c7
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.180125f90
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014d2e3
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014e760
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 0x18014d4b7
cmp dword [rax + 0x28], 0x58
jne 0x18014d4b7
mov ecx, 4
mov rax, qword [r14 + rsi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18022b008], ecx
jle 0x18014d3c1
lea rcx, [0x18022b008]
call fcn.18017e33c
cmp dword [0x18022b008], 0xffffffff
jne 0x18014d3c1
mov rcx, qword [0x18022aa18]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18014d3ad
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18014d361
mov rdx, rdi
test rcx, rcx
je 0x18014d3a4
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 0x18014d380
cmp r9d, 0xc262c48c
je 0x18014d429
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18014d350
mov eax, edi
mov dword [0x18022b00c], eax
lea rcx, [0x18022b008]
call fcn.18017e2d0
movsxd rax, dword [0x18022b00c]
cmp byte [rax + r13], 0
jne 0x18014d4b7
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.1800beb10
cmp dword [rbp - 0x20], 0
jne 0x18014d45a
cmp rbx, r15
je 0x18014d43e
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.180125f90
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014d45a
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.18017ded0
jmp 0x18014d3af
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014e760
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
cmp byte [rbp + 0x190], 0
jne 0x18014d4b7
cmp dword [rbp - 0x1c], 0
jne 0x18014d4b7
cmp rbx, r15
je 0x18014d49b
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.180125f90
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x18014d4b7
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18014e760
mov r15, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x78]
mov qword [rbp - 8], rsi
cmp rsi, rbx
je 0x18014d540
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 0x18014d4fd
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, [0x1802241f0]
call fcn.180176d50
add r12d, dword [r13 + 8]
add rdi, 0x20
cmp rdi, rbx
jne 0x18014d4f0
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x18014d594
mov rdi, rsi
cmp rsi, rbx
je 0x18014d561
nop dword [rax]
mov rcx, rdi
call fcn.1800f0710
add rdi, 0x20
cmp rdi, rbx
jne 0x18014d550
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x18014d589
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18014d605
mov rdx, r15
mov rcx, rsi
call fcn.18017e28c
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 0x18014c3f0
mov rcx, qword [0x18022aac8]
mov rax, qword [rcx]
movss xmm1, dword [0x180201478]
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