Function at 0x180162f60
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 - 0x238]
sub rsp, 0x2f8
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
mov rsi, rdx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x44], r12d
mov dword [rbp + 0x240], r12d
cmp dword [0x1802a6774], r12d
je 0x1801643c1
mov rcx, qword [0x1802971e0]
mov rax, qword [rcx]
movd xmm1, dword [0x1802a67f4]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x240], 3
lea r8, [rbp + 0x240]
lea rdx, [rbp + 0x50]
lea rcx, [0x18028f650]
call fcn.1800c9360
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0x28], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp + 0x40], rcx
cmp rax, rcx
je 0x1801643a9
xorps xmm7, xmm7
movss xmm8, dword [0x18026315c]
movss xmm10, dword [0x180263240]
movss xmm9, dword [0x180263344]
movss xmm6, dword [0x1802633b0]
nop dword [rax]
nop word [rax + rax]
mov r13, qword [rax]
mov qword [rbp - 0x68], r13
mov rcx, r13
call fcn.18015d490
mov rcx, qword [0x180297150]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x10], eax
lea rdx, [rbp - 0x10]
call r8
mov r14, rax
mov qword [rbp], rax
test rax, rax
je 0x1801631e5
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov edi, eax
mov rcx, qword [0x180297168]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp edi, eax
je 0x1801631dc
test byte [0x1802a6874], 8
je 0x1801630e0
mov dword [rbp + 0x240], edi
lea r8, [rbp + 0x240]
lea rdx, [rbp + 0x130]
lea rcx, [0x18028f6d0]
call fcn.1800e1e40
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x180163184
test byte [0x1802a6874], 0x10
je 0x180163188
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x68], 0xf
mov rax, qword [str.Default]
mov dword [rsp + 0x50], eax
movzx eax, word [0x180254b9c]
mov word [rsp + 0x54], ax
movzx eax, byte [0x180254b9e]
mov byte [rsp + 0x56], al
mov byte [rsp + 0x57], 0
or r15d, 1
mov dword [rsp + 0x44], r15d
mov dword [rbp + 0x240], r15d
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x140]
lea rcx, [0x1802a6be0]
call fcn.180152d80
mov rbx, qword [rax]
mov dword [rbp + 0x250], edi
lea r8, [rbp + 0x250]
lea rdx, [rbp + 0x150]
lea rcx, [0x18028f750]
call fcn.1800c95a0
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp eax, dword [rbx + 0x34]
jle 0x180163188
xor bl, bl
jmp 0x18016318a
mov bl, 1
test r15b, 1
je 0x1801631a3
and r15d, 0xfffffffe
mov dword [rsp + 0x44], r15d
lea rcx, [rsp + 0x50]
call fcn.18009a190
test bl, bl
je 0x18016322d
test byte [0x1802a6874], 1
jne 0x1801631ce
mov rcx, r14
call fcn.1800bed50
mov ebx, dword [rax]
mov rcx, rsi
call fcn.1800bed50
cmp ebx, dword [rax]
jne 0x180164393
test byte [0x1802a6874], 2
jne 0x18016322d
mov rcx, r14
jmp 0x180163216
test byte [0x1802a6874], 4
jmp 0x180163227
mov eax, dword [0x1802a6874]
test al, 1
jne 0x18016320f
mov rcx, r13
call fcn.1800bed50
mov ebx, dword [rax]
mov rcx, rsi
call fcn.1800bed50
cmp ebx, dword [rax]
jne 0x180164393
mov eax, dword [0x1802a6874]
test al, 2
jne 0x18016322d
mov rcx, r13
call fcn.1800bed50
mov ebx, dword [rax]
mov rcx, rsi
call fcn.1800bed50
cmp ebx, dword [rax]
je 0x180164393
mov rax, qword [r13 + 8]
lea rcx, [r13 + 8]
call qword [rax + 0x110]
mov rdi, rax
lea rcx, [r13 + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x180297168]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x1801632b4
mov rcx, qword [0x180297168]
mov qword [rbp - 0x54], 0
mov dword [rbp - 0x58], 0
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
call qword [rax + 0x98]
mov dword [rbp - 0x50], 0
mov dword [rbp - 0x58], 0
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.1800d3530
mov rax, qword [r13 + 8]
lea rcx, [r13 + 8]
call qword [rax + 8]
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 - 4]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0xc]
lea r8, [rbp - 8]
mov rdx, rdi
mov rcx, r13
call fcn.180195cf0
test al, al
je 0x18016438c
movss xmm4, dword [rbp - 0xc]
subss xmm4, dword [rbp - 8]
movaps xmm3, xmm4
mulss xmm3, xmm8
movaps xmm0, xmm3
addss xmm0, dword [rbp - 8]
cvttss2si eax, xmm0
mov dword [rbp + 0x250], eax
cvttss2si ecx, dword [rbp - 4]
mov dword [rsp + 0x48], ecx
addss xmm3, xmm3
subss xmm4, xmm3
cvttss2si edx, xmm4
mov dword [rbp + 0x258], edx
movss xmm0, dword [rbp - 0x48]
subss xmm0, dword [rbp - 4]
cvttss2si edi, xmm0
mov dword [rsp + 0x40], edi
cmp eax, dword [0x18028efa0]
jg 0x18016438c
add eax, edx
js 0x18016438c
cmp ecx, dword [0x18028efa4]
jg 0x18016438c
lea r15d, [rdi + rcx]
test r15d, r15d
js 0x180164387
mov ebx, r12d
mov dword [rbp - 0x6c], r12d
mov dword [rbp - 0x40], 2
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x160]
call fcn.180194850
mov rsi, qword [rax]
add rsi, 0x18
mov qword [rbp + 0x30], rsi
xor r11d, r11d
mov dword [rbp - 0x38], r11d
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0x190]
call fcn.180194850
mov rcx, qword [rax]
add rcx, 0x18
mov qword [rbp + 0x20], rcx
mov dword [rbp - 0x30], 1
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x170]
call fcn.180194850
mov rax, qword [rax]
add rax, 0x18
mov qword [rbp - 0x60], rax
mov r9, r13
test r14, r14
cmovne r9, r14
movzx eax, byte [0x1802a63f1]
mov byte [rsp + 0x20], al
mov r8, qword [rbp + 0x248]
lea rdx, [rbp - 0x28]
call fcn.180191040
mov rcx, r13
call fcn.1800cbb60
mov r13d, dword [rax]
mov rcx, qword [rbp - 0x68]
call fcn.1800cba60
mov r14d, dword [rax]
cmp r13d, r14d
cmovl r14d, r13d
mov rcx, qword [rbp - 0x68]
call fcn.1800cbd60
movzx eax, byte [rax]
mov byte [rbp + 0x240], al
test byte [0x1802a6774], 0x10
je 0x180163460
mov dword [rsp + 0x70], 0xff000000
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp + 0x258]
mov r8d, dword [rsp + 0x48]
mov edx, dword [rbp + 0x250]
call fcn.180192180
test byte [0x1802a6774], 2
je 0x1801635ac
movd xmm2, r14d
cvtdq2ps xmm2, xmm2
movd xmm0, r13d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movzx edx, byte [0x1802a6378]
mov eax, dword [0x1802a637c]
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 + 0x78], cl
movzx edx, byte [0x1802a6379]
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 + 0x79], al
movzx ecx, byte [0x1802a637a]
movzx eax, byte [0x1802a637e]
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 + 0x7a], al
movzx ecx, byte [0x1802a637b]
movzx eax, byte [0x1802a637f]
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 + 0x7b], al
mov dword [rsp + 0x74], 0xff000000
mov esi, dword [rbp + 0x250]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si ebx, xmm0
sub edi, ebx
add edi, dword [rsp + 0x48]
lea eax, [rbx + 2]
lea r8d, [rdi - 1]
lea edx, [rsi - 7]
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 4
call fcn.180192100
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 2
mov r8d, edi
lea edx, [rsi - 6]
call fcn.180192100
mov ebx, 5
mov edi, dword [rsp + 0x40]
mov rsi, qword [rbp + 0x30]
test byte [0x1802a6774], 4
je 0x18016363a
mov dword [rsp + 0x40], 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, xmm10
cvttss2si r9d, xmm3
mov r8d, dword [rbp + 0x250]
sub r8d, ebx
sub r8d, 5
mov dword [rsp + 0x38], r14d
lea rax, [0x18020bbd4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18029b644]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [0x18028ef60]
call fcn.180191d00
mov r13, qword [rbp - 0x68]
test byte [0x1802a6774], 1
je 0x180163716
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1801636af
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x1801636a6
sub ecx, 2
je 0x18016368b
cmp ecx, 1
jne 0x1801636af
mov rcx, r13
call fcn.1801600f0
lea rcx, str.Teleporter_In
cmp dword [rax], 0
lea rax, str.Teleporter_Out
cmovne rcx, rax
jmp 0x1801636b6
lea rcx, str.Sentry
cmp byte [rbp + 0x240], 0
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x1801636b6
lea rcx, str.Dispenser
jmp 0x1801636b6
lea rcx, str.Unknown_Building
mov r15, qword [rbp + 0x20]
mov r12d, dword [r15 + 8]
add r12d, 2
mov dword [rsp + 0x40], 1
mov ebx, dword [rsp + 0x48]
mov r9d, ebx
sub r9d, r12d
mov eax, dword [rbp + 0x258]
cdq
sub eax, edx
sar eax, 1
mov r14d, dword [rbp + 0x250]
lea r8d, [r14 + rax]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [0x18029b644]
mov qword [rsp + 0x20], rcx
mov rdx, r15
lea rcx, [0x18028ef60]
call fcn.180191f20
jmp 0x180163725
mov r15, qword [rbp + 0x20]
mov ebx, dword [rsp + 0x48]
mov r14d, dword [rbp + 0x250]
test byte [0x1802a6774], 8
je 0x1801637e8
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x48]
mov rbx, rax
mov rax, qword [rbp + 0x248]
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 0x18016377e
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180163786
movaps xmm0, xmm1
call fcn.1801ce444
divss xmm0, xmm9
call fcn.1801be384
cvttss2si ecx, xmm0
mov dword [rsp + 0x40], 1
mov ebx, dword [rsp + 0x48]
lea r9d, [rdi + rbx]
mov eax, dword [rbp + 0x258]
cdq
sub eax, edx
sar eax, 1
lea r8d, [r14 + rax]
mov dword [rsp + 0x38], ecx
lea rcx, [0x18025cfb8]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [0x18029b644]
mov qword [rsp + 0x20], rcx
mov rdx, rsi
lea rcx, [0x18028ef60]
call fcn.180191f20
test byte [0x1802a6774], 0x20
je 0x180163b53
mov rcx, r13
call fcn.1801601f0
cmp byte [rax], 0
jne 0x180163b53
mov rsi, qword [rbp]
test rsi, rsi
je 0x180163b53
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
mov dword [rbp + 0x120], eax
mov rax, qword [0x180297168]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
mov rax, qword [rsi + 0x10]
lea rcx, [rsi + 0x10]
call qword [rax + 0x48]
lea r8, [rbp + 0xa0]
mov edx, eax
mov rcx, qword [0x180297168]
call rbx
test al, al
je 0x180163b4f
mov r14d, dword [r15 + 8]
add r14d, 2
add r14d, r12d
cmp byte [0x1802a0aa1], 0
je 0x1801639ad
mov rax, qword [rsi + 0x10]
lea rcx, [rsi + 0x10]
call qword [rax + 0x48]
mov ebx, eax
mov rcx, qword [0x180297168]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x1801638cb
lea rcx, [0x18025cee4]
jmp 0x18016394e
mov rax, qword [rsi + 0x10]
lea rcx, [rsi + 0x10]
call qword [rax + 0x48]
mov dword [rbp - 0x20], eax
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x180]
lea rcx, [0x18028f6d0]
call fcn.1800e1e40
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
je 0x180163902
lea rcx, [0x1802544c8]
jmp 0x18016394e
mov rcx, rsi
call fcn.1800bed50
mov ebx, dword [rax]
mov rdi, qword [rbp + 0x248]
mov rcx, rdi
call fcn.1800bed50
cmp ebx, dword [rax]
je 0x180163928
lea rcx, [0x1802544b8]
jmp 0x18016394e
mov rcx, rsi
call fcn.1800bed50
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800bed50
lea rcx, [0x18025cfa8]
cmp ebx, dword [rax]
lea rax, [0x1802543c4]
cmovne rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x7c], 0xff57cafe
mov ebx, dword [rsp + 0x48]
mov r9d, ebx
sub r9d, r14d
mov esi, dword [rbp + 0x258]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov r14d, dword [rbp + 0x250]
lea r8d, [r14 + rax]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x20], rcx
mov rdx, r15
lea rcx, [0x18028ef60]
call fcn.180191d00
jmp 0x180163b60
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xor edi, edi
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
lea rax, [rbp + 0xa0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1801639d0
lea rdx, [rbp + 0xa0]
lea rcx, [rbp]
call fcn.18009c230
nop
lea r8, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r8, qword [rbp]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
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 + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180197510
or dword [rsp + 0x44], 4
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
lea r8, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r8, qword [rbp]
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 + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
mov dword [rsp + 0x40], 1
mov dword [rbp - 0x80], 0xff57cafe
mov ebx, dword [rsp + 0x48]
mov r9d, ebx
sub r9d, r14d
mov esi, dword [rbp + 0x258]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov r14d, dword [rbp + 0x250]
lea r8d, [r14 + rax]
mov qword [rsp + 0x38], rcx
lea rcx, [0x18025cfa0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
mov rdx, r15
lea rcx, [0x18028ef60]
call fcn.180191f20
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180163b31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180163b2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801643f2
call fcn.180199c38
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
lea rcx, [rbp]
call fcn.18009a190
jmp 0x180163b62
mov ebx, dword [rsp + 0x48]
mov esi, dword [rbp + 0x258]
mov r14d, dword [rbp + 0x250]
xor edi, edi
test byte [0x1802a6774], 0x40
je 0x180163bd3
cmp byte [rbp + 0x240], 0
jne 0x180163bd3
mov rcx, r13
call fcn.1800cbe60
mov ecx, dword [rax]
mov dword [rbp + 0x250], edi
mov dword [rbp - 0x7c], 0xff57cafe
lea r8d, [r14 + 4]
add r8d, esi
mov dword [rsp + 0x38], ecx
lea rax, [0x18025d184]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rdi, qword [rbp - 0x60]
mov rdx, rdi
lea rcx, [0x18028ef60]
call fcn.180191f20
mov r12d, dword [rdi + 8]
jmp 0x180163bdb
mov rdi, qword [rbp - 0x60]
mov r12d, dword [rbp - 0x6c]
test byte [0x1802a6774], 0x80
je 0x180164384
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r8d, r8d
mov r15d, r8d
mov qword [rsp + 0x60], r8
mov ecx, 4
mov eax, dword [0x18029475c]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x180297764], ecx
jle 0x180163cc5
lea rcx, [0x180297764]
call fcn.180199ce8
cmp dword [0x180297764], 0xffffffff
jne 0x180163cc2
mov rcx, qword [0x180297128]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x180163cad
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x180163c65
mov rdx, r11
test rcx, rcx
je 0x180163ca4
nop word [rax + rax]
movsx eax, byte [r8 + rdx]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180163c80
cmp r9d, 0xc262c48c
je 0x180163f60
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180163c54
mov eax, r11d
mov dword [0x180297748], eax
lea rcx, [0x180297764]
call fcn.180199c7c
xor r8d, r8d
movsxd rax, dword [0x180297748]
movss xmm0, dword [rax + r13]
mulss xmm0, xmm6
comiss xmm6, xmm0
jbe 0x180163d30
cvttss2si eax, xmm0
test eax, eax
je 0x180163d30
mov dword [rbp + 0x250], r8d
mov dword [rbp - 0x78], 0xff57cafe
lea r9d, [r12 + rbx]
lea r8d, [r14 + 4]
add r8d, esi
lea rax, str.CONSTRUCTING
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea rcx, [0x18028ef60]
call fcn.180191f20
add r12d, dword [rdi + 8]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x180163e2c
cmp dword [rax + 0x28], 0x59
jne 0x180163e2c
mov rcx, r13
call fcn.1801602f0
comiss xmm0, xmm7
jbe 0x180163e2c
lea rax, str.RECHARGES_IN_:.1f_SEC
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0x17
movss dword [rbp + 0x68], xmm0
movabs rax, 0x7000000000000000
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x70], 1
lea rax, [rbp + 0x60]
mov qword [rbp + 0x78], rax
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp], xmm0
movaps xmm1, xmmword [rbp + 0x50]
movdqa xmmword [rbp + 0x30], xmm1
lea r8, [rbp]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x80]
call fcn.1800b2950
or dword [rsp + 0x44], 2
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rax, qword [rbp + 0x80]
xor r11d, r11d
mov dword [rbp + 0x250], r11d
mov dword [rbp - 0x74], 0xff57cafe
lea r9d, [r12 + rbx]
lea r8d, [r14 + 4]
add r8d, esi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea rcx, [0x18028ef60]
call fcn.180191d00
nop
lea rcx, [rbp + 0x80]
call fcn.18009a190
add r12d, dword [rdi + 8]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, 4
mov edi, dword [0x18029475c]
mov rsi, qword gs:[0x58]
test rax, rax
je 0x180163f37
cmp dword [rax + 0x28], 0x58
jne 0x180163f37
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rbx + rax]
cmp dword [0x180297778], ecx
jle 0x180163f11
lea rcx, [0x180297778]
call fcn.180199ce8
cmp dword [0x180297778], 0xffffffff
jne 0x180163f11
mov rcx, qword [0x180297128]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x180163efd
nop
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180163eb1
xor eax, eax
mov edx, eax
test rcx, rcx
je 0x180163ef4
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 0x180163ed0
cmp r9d, 0x80133484
je 0x180163f75
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180163ea0
xor eax, eax
mov dword [0x180297788], eax
lea rcx, [0x180297778]
call fcn.180199c7c
movsxd rax, dword [0x180297788]
cmp byte [rax + r13], 0
je 0x180163f37
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180165fe0
mov r15, qword [rsp + 0x60]
mov rcx, r13
call fcn.1800cbc60
cmp byte [rax], 0
je 0x180163fa3
mov rbx, qword [rsp + 0x58]
cmp rbx, r15
je 0x180163f8a
mov r8d, 6
lea rdx, str.SAPPED
jmp 0x180164082
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.180199880
jmp 0x180163cb0
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.180199880
jmp 0x180163eff
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180165fe0
jmp 0x1801640cb
mov ecx, ebx
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18029777c], ecx
jle 0x18016405d
lea rcx, [0x18029777c]
call fcn.180199ce8
cmp dword [0x18029777c], 0xffffffff
jne 0x18016405d
mov rcx, qword [0x180297128]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x180164049
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180164001
xor eax, eax
mov edx, eax
test rcx, rcx
je 0x180164040
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 0x180164020
cmp r9d, 0xc262c48c
je 0x1801640a5
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180163ff0
xor eax, eax
mov dword [0x1802977a0], eax
lea rcx, [0x18029777c]
call fcn.180199c7c
movsxd rax, dword [0x1802977a0]
cmp byte [rax + r13], 0
je 0x1801640d0
mov rbx, qword [rsp + 0x58]
cmp rbx, r15
je 0x1801640b7
mov r8d, 8
lea rdx, str.DISABLED
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x10], rax
mov rcx, rbx
call fcn.18013c540
add rbx, 0x20
mov qword [rsp + 0x58], rbx
jmp 0x1801640d5
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.180199880
jmp 0x18016404b
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180165fe0
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
lea rcx, [r13 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1801642ad
cmp dword [rax + 0x28], 0x58
jne 0x1801642ad
mov ecx, 4
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x18029774c], ecx
jle 0x1801641c1
lea rcx, [0x18029774c]
call fcn.180199ce8
cmp dword [0x18029774c], 0xffffffff
jne 0x1801641c1
mov rcx, qword [0x180297128]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor edi, edi
test rax, rax
je 0x180164199
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], dil
jne 0x180164151
mov rdx, rdi
test rcx, rcx
je 0x180164190
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 0x180164170
cmp r9d, 0xc262c48c
je 0x1801641af
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180164140
mov eax, edi
mov dword [0x180297750], eax
lea rcx, [0x18029774c]
call fcn.180199c7c
jmp 0x1801641c3
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.180199880
jmp 0x18016419b
xor edi, edi
movsxd rax, dword [0x180297750]
cmp byte [rax + r13], 0
jne 0x1801642ad
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x18]
mov rcx, r13
call fcn.1800cc060
cmp dword [rbp - 0x18], 0
jne 0x18016424d
cmp rbx, r15
je 0x18016422f
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.18013c540
add rbx, 0x20
mov qword [rsp + 0x58], rbx
jmp 0x18016424d
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180165fe0
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
cmp byte [rbp + 0x240], 0
jne 0x1801642ad
cmp dword [rbp - 0x14], 0
jne 0x1801642ad
cmp rbx, r15
je 0x18016428f
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.18013c540
add rbx, 0x20
mov qword [rsp + 0x58], rbx
jmp 0x1801642ad
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180165fe0
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp + 0x250], rsi
cmp rsi, rbx
je 0x180164332
mov rdi, rsi
xor eax, eax
mov dword [rbp + 0x240], eax
mov dword [rbp - 0x70], 0xff57cafe
add r14d, dword [rbp + 0x258]
mov r13d, dword [rsp + 0x48]
mov rsi, qword [rbp - 0x60]
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1801642ed
mov rax, qword [rdi]
lea r9d, [r12 + r13]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x240]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 4]
mov rdx, rsi
lea rcx, [0x18028ef60]
call fcn.180191f20
add r12d, dword [rsi + 8]
add rdi, 0x20
cmp rdi, rbx
jne 0x1801642e0
mov rsi, qword [rbp + 0x250]
test rsi, rsi
je 0x180164384
mov rdi, rsi
cmp rsi, rbx
je 0x180164351
nop
mov rcx, rdi
call fcn.1800ffdb0
add rdi, 0x20
cmp rdi, rbx
jne 0x180164340
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x180164379
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801643f8
mov rdx, r15
mov rcx, rsi
call fcn.180199c38
xor r12d, r12d
mov r15d, dword [rsp + 0x44]
mov rsi, qword [rbp + 0x248]
mov rax, qword [rbp + 0x28]
add rax, 8
mov qword [rbp + 0x28], rax
cmp rax, qword [rbp + 0x40]
jne 0x180163050
mov rcx, qword [0x1802971e0]
mov rax, qword [rcx]
movss xmm1, dword [0x180263200]
call qword [rax + 0x360]
lea r11, [rsp + 0x2f8]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1801afdbc
nop
call fcn.1801afdbc
int3