Function at 0x18015ad50
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 - 0x248]
sub rsp, 0x308
vmovaps xmmword [rax - 0x58], xmm6
vmovaps xmmword [rax - 0x68], xmm7
vmovaps xmmword [rax - 0x78], xmm8
vmovaps xmmword [rax - 0x88], xmm9
vmovaps xmmword [rax - 0x98], xmm10
vmovaps xmmword [rax - 0xa8], xmm11
vmovaps xmmword [rax - 0xb8], xmm12
mov rdi, rdx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x40], r12d
mov dword [rbp + 0x250], r12d
cmp dword [0x1802532a4], r12d
je 0x18015c131
mov rcx, qword [0x180243f50]
mov rax, qword [rcx]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [0x180253324]
call qword [rax + 0x360]
mov dword [rbp + 0x250], 3
lea r8, [rbp + 0x250]
lea rdx, [rbp + 0x40]
lea rcx, [0x18023d900]
call fcn.1800c8090
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0x10], rax
mov rcx, qword [rcx + 0x20]
mov qword [rbp + 0x30], rcx
cmp rax, rcx
je 0x18015c119
vmovss xmm8, dword [0x180219380]
vmovss xmm9, dword [0x180219180]
vmovss xmm10, dword [0x1802192b0]
vmovss xmm12, dword [0x180218a98]
vmovss xmm11, dword [0x180218b98]
vmovss xmm6, dword [0x180218c08]
vxorps xmm7, xmm7, xmm7
nop dword [rax]
nop word [rax + rax]
mov r14, qword [rax]
mov qword [rbp + 0x20], r14
mov rcx, r14
call fcn.1801550c0
mov rcx, qword [0x180243ec0]
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 r13, rax
test rax, rax
je 0x18015b35b
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov edi, eax
mov rcx, qword [0x180243ed8]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp edi, eax
je 0x18015b00d
test byte [0x1802533a4], 8
je 0x18015aeec
mov dword [rbp + 0x250], edi
lea r8, [rbp + 0x250]
lea rdx, [rbp + 0x90]
lea rcx, [0x18023d980]
call fcn.1800e0860
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18015af92
test byte [0x1802533a4], 0x10
je 0x18015af96
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x70], 0xf
mov rax, qword [str.Default]
mov dword [rsp + 0x58], eax
movzx eax, word [0x18020a7dc]
mov word [rsp + 0x5c], ax
movzx eax, byte [0x18020a7de]
mov byte [rsp + 0x5e], al
mov byte [rsp + 0x5f], 0
or r15d, 1
mov dword [rsp + 0x40], r15d
mov dword [rbp + 0x250], r15d
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0xa0]
lea rcx, [0x180253710]
call fcn.180149fc0
mov rbx, qword [rax]
mov dword [rbp + 0x260], edi
lea r8, [rbp + 0x260]
lea rdx, [rbp + 0xb0]
lea rcx, [0x18023da00]
call fcn.1800c82d0
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
cmp eax, dword [rbx + 0x34]
jle 0x18015af96
xor bl, bl
jmp 0x18015af98
mov bl, 1
test r15b, 1
je 0x18015afb1
and r15d, 0xfffffffe
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x58]
call fcn.180098e30
test bl, bl
je 0x18015b01a
test byte [0x1802533a4], 1
jne 0x18015afe1
mov rcx, r13
call fcn.1800bdde0
mov ebx, dword [rax]
mov rdi, qword [rbp + 0x258]
mov rcx, rdi
call fcn.1800bdde0
cmp ebx, dword [rax]
jne 0x18015c0ed
jmp 0x18015afe8
mov rdi, qword [rbp + 0x258]
test byte [0x1802533a4], 2
jne 0x18015b021
mov rcx, r13
call fcn.1800bdde0
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800bdde0
cmp ebx, dword [rax]
je 0x18015c0ed
jmp 0x18015b021
test byte [0x1802533a4], 4
je 0x18015c0ed
mov rdi, qword [rbp + 0x258]
mov dword [rbp + 0x260], r12d
mov dword [rbp + 0x268], r12d
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x268]
lea r8, [rbp + 0x260]
mov rdx, r14
call fcn.1801583c0
test al, al
je 0x18015c0ed
mov ebx, r12d
mov dword [rbp - 0x64], r12d
mov r15d, r12d
mov dword [rbp - 8], 2
lea r8, [rbp - 8]
lea rdx, [rbp + 0xc0]
call fcn.18018b050
mov rsi, qword [rax]
add rsi, 0x18
mov qword [rsp + 0x48], rsi
mov dword [rbp - 0x60], r12d
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0xd0]
call fcn.18018b050
mov rcx, qword [rax]
add rcx, 0x18
mov qword [rbp - 0x40], rcx
mov dword [rbp], 1
lea r8, [rbp]
lea rdx, [rbp + 0xe0]
call fcn.18018b050
mov r12, qword [rax]
add r12, 0x18
mov qword [rbp - 0x50], r12
mov r9, r14
test r13, r13
cmovne r9, r13
movzx eax, byte [0x180252f21]
mov byte [rsp + 0x20], al
mov r8, rdi
lea rdx, [rbp + 8]
call fcn.180187840
mov rcx, r14
call fcn.1800ca840
mov r12d, dword [rax]
mov rcx, r14
call fcn.1800ca740
mov r14d, dword [rax]
cmp r12d, r14d
cmovl r14d, r12d
mov rcx, qword [rbp + 0x20]
call fcn.1800caa40
movzx eax, byte [rax]
mov byte [rbp + 0x250], al
mov edi, dword [rsp + 0x50]
test byte [0x1802532a4], 0x10
je 0x18015b16c
mov dword [rsp + 0x78], 0xff000000
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rbp + 0x268]
mov edx, dword [rbp + 0x260]
call fcn.180188a20
test byte [0x1802532a4], 2
je 0x18015b2bd
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, r14d
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, r12d
vdivss xmm3, xmm1, xmm0
movzx edx, byte [0x180252ea8]
mov eax, dword [0x180252eac]
movzx ecx, al
sub ecx, edx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vmulss xmm2, xmm0, xmm3
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, edx
vaddss xmm2, xmm2, xmm1
vcvttss2si ecx, xmm2
mov byte [rbp - 0x80], cl
movzx edx, byte [0x180252ea9]
shr eax, 8
movzx ecx, al
sub ecx, edx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vmulss xmm2, xmm0, xmm3
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, edx
vaddss xmm2, xmm2, xmm1
vcvttss2si eax, xmm2
mov byte [rbp - 0x7f], al
movzx ecx, byte [0x180252eaa]
movzx eax, byte [0x180252eae]
sub eax, ecx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vmulss xmm2, xmm0, xmm3
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, ecx
vaddss xmm2, xmm2, xmm1
vcvttss2si eax, xmm2
mov byte [rbp - 0x7e], al
movzx ecx, byte [0x180252eab]
movzx eax, byte [0x180252eaf]
sub eax, ecx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vmulss xmm2, xmm0, xmm3
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, ecx
vaddss xmm2, xmm2, xmm1
vcvttss2si eax, xmm2
mov byte [rbp - 0x7d], al
mov dword [rsp + 0x7c], 0xff000000
mov esi, dword [rbp + 0x260]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edi
vmulss xmm1, xmm0, xmm3
vcvttss2si ebx, xmm1
sub edi, ebx
add edi, dword [rbp + 0x268]
lea eax, [rbx + 2]
lea r8d, [rdi - 1]
lea edx, [rsi - 7]
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9d, 4
call fcn.1801889a0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 2
mov r8d, edi
lea edx, [rsi - 6]
call fcn.1801889a0
mov ebx, 5
mov rsi, qword [rsp + 0x48]
mov edi, dword [rsp + 0x50]
test byte [0x1802532a4], 4
je 0x18015b395
mov dword [rsp + 0x48], 2
mov eax, dword [rbp + 0x268]
add eax, edi
vxorps xmm3, xmm3, xmm3
vcvtsi2ss xmm3, xmm3, eax
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, r14d
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, r12d
vdivss xmm2, xmm1, xmm0
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, edi
vmulss xmm2, xmm2, xmm1
vsubss xmm0, xmm3, xmm2
vsubss xmm3, xmm0, xmm12
vcvttss2si r9d, xmm3
mov r8d, dword [rbp + 0x260]
sub r8d, ebx
sub r8d, 5
mov dword [rsp + 0x38], r14d
lea rax, [0x1801c17d4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rbx, [0x180248274]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
lea rcx, [0x18023d260]
call fcn.1801885a0
jmp 0x18015b39c
mov eax, dword [0x1802533a4]
test al, 1
jne 0x18015b385
mov rcx, r14
call fcn.1800bdde0
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800bdde0
cmp ebx, dword [rax]
jne 0x18015c0ed
mov eax, dword [0x1802533a4]
test al, 2
jne 0x18015b021
mov rcx, r14
jmp 0x18015aff4
lea rbx, [0x180248274]
mov r12, qword [rbp + 0x20]
test byte [0x1802532a4], 1
je 0x18015b46e
lea rcx, [r12 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18015b412
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x18015b409
sub ecx, 2
je 0x18015b3ee
cmp ecx, 1
jne 0x18015b412
mov rcx, r12
call fcn.180157da0
lea rcx, str.Teleporter_In
cmp dword [rax], 0
lea rax, str.Teleporter_Out
cmovne rcx, rax
jmp 0x18015b419
lea rcx, str.Sentry
cmp byte [rbp + 0x250], 0
lea rax, str.Mini_Sentry
cmovne rcx, rax
jmp 0x18015b419
lea rcx, str.Dispenser
jmp 0x18015b419
lea rcx, str.Unknown_Building
mov r14, qword [rbp - 0x40]
mov r15d, dword [r14 + 8]
add r15d, 2
mov dword [rsp + 0x48], 1
mov r9d, dword [rbp + 0x268]
sub r9d, r15d
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbp + 0x260]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov r8d, eax
mov rdx, r14
lea rcx, [0x18023d260]
call fcn.1801887c0
jmp 0x18015b472
mov r14, qword [rbp - 0x40]
test byte [0x1802532a4], 8
je 0x18015b55f
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x48]
mov rbx, rax
mov rax, qword [rbp + 0x258]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
vmovss xmm0, dword [rbx + 4]
vsubss xmm4, xmm0, dword [rax + 4]
vmovss xmm1, dword [rbx]
vsubss xmm2, xmm1, dword [rax]
vmulss xmm3, xmm2, xmm2
vmulss xmm0, xmm4, xmm4
vaddss xmm0, xmm3, xmm0
vxorps xmm1, xmm1, xmm1
vucomiss xmm1, xmm0
ja 0x18015b4ca
vsqrtss xmm0, xmm0, xmm0
jmp 0x18015b4cf
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
vdivss xmm0, xmm0, xmm11
vmovaps xmm3, xmm8
vmovaps xmm2, xmm3
vandnps xmm3, xmm3, xmm0
vandps xmm2, xmm2, xmm0
vroundps xmm0, xmm3, 0
vsubss xmm3, xmm3, xmm0
vcmpeqss xmm3, xmm3, xmm9
vandps xmm3, xmm3, xmm10
vaddss xmm3, xmm3, xmm0
vorps xmm3, xmm3, xmm2
vcvttss2si ecx, xmm3
mov dword [rsp + 0x48], 1
mov r9d, dword [rbp + 0x268]
add r9d, edi
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
add eax, dword [rbp + 0x260]
mov dword [rsp + 0x38], ecx
lea rcx, [0x180212a20]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [0x180248274]
mov qword [rsp + 0x20], rcx
mov r8d, eax
mov rdx, rsi
lea rcx, [0x18023d260]
call fcn.1801887c0
test byte [0x1802532a4], 0x20
je 0x18015b8aa
mov rcx, r12
call fcn.180157ea0
cmp byte [rax], 0
jne 0x18015b8aa
test r13, r13
je 0x18015b8aa
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups ymmword [rbp + 0x100], ymm0
vmovups ymmword [rbp + 0x120], ymm0
vmovups ymmword [rbp + 0x140], ymm0
vmovups ymmword [rbp + 0x160], ymm0
mov dword [rbp + 0x180], eax
mov rax, qword [0x180243ed8]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
mov rax, qword [r13 + 0x10]
lea rcx, [r13 + 0x10]
vzeroupper
call qword [rax + 0x48]
lea r8, [rbp + 0x100]
mov edx, eax
mov rcx, qword [0x180243ed8]
call rbx
test al, al
je 0x18015b8aa
mov esi, dword [r14 + 8]
add esi, 2
add esi, r15d
cmp byte [0x18024d6d1], 0
je 0x18015b701
mov rax, qword [r13 + 0x10]
lea rcx, [r13 + 0x10]
call qword [rax + 0x48]
mov ebx, eax
mov rcx, qword [0x180243ed8]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x18015b626
lea rcx, [0x180212a54]
jmp 0x18015b6a3
mov rax, qword [r13 + 0x10]
lea rcx, [r13 + 0x10]
call qword [rax + 0x48]
mov dword [rbp - 0x20], eax
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0xf0]
lea rcx, [0x18023d980]
call fcn.1800e0860
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
je 0x18015b65d
lea rcx, [0x18020a120]
jmp 0x18015b6a3
mov rcx, r13
call fcn.1800bdde0
mov ebx, dword [rax]
mov rdi, qword [rbp + 0x258]
mov rcx, rdi
call fcn.1800bdde0
cmp ebx, dword [rax]
je 0x18015b683
lea rcx, [0x18020a110]
jmp 0x18015b6a3
mov rcx, r13
call fcn.1800bdde0
mov ebx, dword [rax]
mov rcx, rdi
call fcn.1800bdde0
lea rcx, [0x180212a30]
cmp ebx, dword [rax]
cmovne rcx, qword [rbp - 0x58]
mov qword [rbp - 0x58], rcx
mov dword [rsp + 0x48], 1
mov dword [rbp - 0x7c], 0xff57cafe
mov edi, dword [rbp + 0x268]
mov r9d, edi
sub r9d, esi
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
mov esi, dword [rbp + 0x260]
lea r8d, [rsi + rax]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x20], rcx
mov rdx, r14
lea rcx, [0x18023d260]
call fcn.1801885a0
jmp 0x18015b8b6
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x40], xmm0
xor r13d, r13d
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x18015b723
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x40]
call fcn.18009aed0
nop
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r8, qword [rbp - 0x40]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.18018ddd0
mov r15d, dword [rsp + 0x40]
or r15d, 4
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r8, qword [rbp - 0x40]
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 + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov dword [rbp - 0x78], 0xff57cafe
mov edi, dword [rbp + 0x268]
mov r9d, edi
sub r9d, esi
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
mov esi, dword [rbp + 0x260]
lea r8d, [rsi + rax]
mov qword [rsp + 0x38], rcx
lea rcx, [0x180212a40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x20], rcx
mov rdx, r14
lea rcx, [0x18023d260]
call fcn.1801887c0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x18015b88b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015b886
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015c10b
call fcn.18019051c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r13w
lea rcx, [rbp - 0x40]
call fcn.180098e30
jmp 0x18015b8be
mov esi, dword [rbp + 0x260]
mov edi, dword [rbp + 0x268]
mov r15d, dword [rsp + 0x40]
xor r13d, r13d
test byte [0x1802532a4], 0x40
je 0x18015b931
cmp byte [rbp + 0x250], 0
jne 0x18015b931
mov rcx, r12
call fcn.1800cab40
mov ecx, dword [rax]
mov dword [rsp + 0x48], r13d
mov dword [rbp - 0x74], 0xff57cafe
mov r14d, dword [rsp + 0x44]
lea r8d, [r14 + 4]
add r8d, esi
mov dword [rsp + 0x38], ecx
lea rax, [0x180212c5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov rbx, qword [rbp - 0x50]
mov rdx, rbx
lea rcx, [0x18023d260]
call fcn.1801887c0
mov r13d, dword [rbx + 8]
jmp 0x18015b93e
mov r14d, dword [rsp + 0x44]
mov rbx, qword [rbp - 0x50]
mov r13d, dword [rbp - 0x64]
test byte [0x1802532a4], 0x80
je 0x18015c0ea
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x58], xmm0
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov ecx, 4
mov eax, dword [0x18024256c]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802444bc], ecx
jle 0x18015ba21
lea rcx, [0x1802444bc]
call fcn.1801905cc
cmp dword [0x1802444bc], 0xffffffff
jne 0x18015ba21
mov rcx, qword [0x180243e98]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18015ba0d
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18015b9c3
xor edx, edx
test rcx, rcx
je 0x18015ba04
nop dword [rax]
nop dword [rax + rax]
movsx eax, byte [r8 + rdx]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x18015b9e0
cmp r9d, 0xc262c48c
je 0x18015bcb0
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18015b9b2
xor eax, eax
mov dword [0x1802444a0], eax
lea rcx, [0x1802444bc]
call fcn.180190560
movsxd rax, dword [0x1802444a0]
vmulss xmm1, xmm6, dword [rax + r12]
vcomiss xmm6, xmm1
jbe 0x18015ba88
vcvttss2si eax, xmm1
test eax, eax
je 0x18015ba88
mov dword [rsp + 0x48], 0
mov dword [rbp - 0x70], 0xff57cafe
lea r9d, [rdi + r13]
lea r8d, [rsi + 4]
add r8d, r14d
lea rax, str.CONSTRUCTING
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [0x18023d260]
call fcn.1801887c0
add r13d, dword [rbx + 8]
lea rcx, [r12 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18015bb78
cmp dword [rax + 0x28], 0x59
jne 0x18015bb78
mov rcx, r12
call fcn.180157fa0
vcomiss xmm0, xmm7
jbe 0x18015bb78
lea rax, str.RECHARGES_IN_:.1f_SEC
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0x17
vmovss dword [rbp + 0x58], xmm0
movabs rax, 0x7000000000000000
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x60], 1
lea rax, [rbp + 0x50]
mov qword [rbp + 0x68], rax
vmovups xmm0, xmmword [rbp + 0x60]
vmovdqa xmmword [rbp - 0x40], xmm0
vmovups xmm1, xmmword [rbp + 0x40]
vmovdqa xmmword [rbp + 0x20], xmm1
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x70]
call fcn.1800b12c0
or dword [rsp + 0x40], 2
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rax, qword [rbp + 0x70]
mov dword [rsp + 0x48], 0
mov dword [rbp - 0x6c], 0xff57cafe
lea r9d, [rdi + r13]
lea r8d, [rsi + 4]
add r8d, r14d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [0x18023d260]
call fcn.1801885a0
nop
lea rcx, [rbp + 0x70]
call fcn.180098e30
add r13d, dword [rbx + 8]
lea rcx, [r12 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, 4
mov edi, dword [0x18024256c]
mov rsi, qword gs:[0x58]
test rax, rax
je 0x18015bc87
cmp dword [rax + 0x28], 0x58
jne 0x18015bc87
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rbx + rax]
cmp dword [0x1802444d0], ecx
jle 0x18015bc61
lea rcx, [0x1802444d0]
call fcn.1801905cc
cmp dword [0x1802444d0], 0xffffffff
jne 0x18015bc61
mov rcx, qword [0x180243e98]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18015bc4d
nop dword [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18015bc01
xor edx, edx
test rcx, rcx
je 0x18015bc44
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 0x18015bc20
cmp r9d, 0x80133484
je 0x18015bcc5
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18015bbf0
xor eax, eax
mov dword [0x1802444e0], eax
lea rcx, [0x1802444d0]
call fcn.180190560
movsxd rax, dword [0x1802444e0]
cmp byte [rax + r12], 0
je 0x18015bc87
lea r8, str.WRANGLED
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.18015d560
mov r15, qword [rsp + 0x68]
mov rcx, r12
call fcn.1800ca940
cmp byte [rax], 0
je 0x18015bcf3
mov rbx, qword [rsp + 0x60]
cmp rbx, r15
je 0x18015bcda
mov r8d, 6
lea rdx, str.SAPPED
jmp 0x18015bdd2
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.180190160
jmp 0x18015ba0f
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.180190160
jmp 0x18015bc4f
lea r8, str.SAPPED
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18015d560
jmp 0x18015be1d
mov ecx, ebx
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802444d4], ecx
jle 0x18015bdad
lea rcx, [0x1802444d4]
call fcn.1801905cc
cmp dword [0x1802444d4], 0xffffffff
jne 0x18015bdad
mov rcx, qword [0x180243e98]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18015bd99
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18015bd51
xor edx, edx
test rcx, rcx
je 0x18015bd90
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 0x18015bd70
cmp r9d, 0xc262c48c
je 0x18015bdf7
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18015bd40
xor eax, eax
mov dword [0x1802444f8], eax
lea rcx, [0x1802444d4]
call fcn.180190560
movsxd rax, dword [0x1802444f8]
cmp byte [rax + r12], 0
je 0x18015be22
mov rbx, qword [rsp + 0x60]
cmp rbx, r15
je 0x18015be09
mov r8d, 8
lea rdx, str.DISABLED
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x10], rax
mov rcx, rbx
call fcn.1801335e0
add rbx, 0x20
mov qword [rsp + 0x60], rbx
jmp 0x18015be27
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.180190160
jmp 0x18015bd9b
lea r8, str.DISABLED
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18015d560
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
lea rcx, [r12 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18015c011
cmp dword [rax + 0x28], 0x58
jne 0x18015c011
mov ecx, 4
mov rax, qword [rsi + rdi*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802444a4], ecx
jle 0x18015bf01
lea rcx, [0x1802444a4]
call fcn.1801905cc
cmp dword [0x1802444a4], 0xffffffff
jne 0x18015bf01
mov rcx, qword [0x180243e98]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18015beed
nop dword [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18015bea1
xor edx, edx
test rcx, rcx
je 0x18015bee4
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 0x18015bec0
cmp r9d, 0xc262c48c
je 0x18015bf74
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x18015be90
xor eax, eax
mov dword [0x1802444a8], eax
lea rcx, [0x1802444a4]
call fcn.180190560
movsxd rax, dword [0x1802444a8]
cmp byte [rax + r12], 0
jne 0x18015c011
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x18]
mov rcx, r12
call fcn.1800cad40
cmp dword [rbp - 0x18], 0
jne 0x18015bfa7
cmp rbx, r15
je 0x18015bf89
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov r8d, 7
lea rdx, str.NO_AMMO
mov rcx, rbx
call fcn.1801335e0
add rbx, 0x20
mov qword [rsp + 0x60], rbx
jmp 0x18015bfa7
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.180190160
jmp 0x18015beef
lea r8, str.NO_AMMO
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18015d560
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
cmp byte [rbp + 0x250], 0
jne 0x18015c011
cmp dword [rbp - 0x14], 0
jne 0x18015c011
cmp rbx, r15
je 0x18015bff3
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov r8d, 0xa
lea rdx, str.NO_ROCKETS
mov rcx, rbx
call fcn.1801335e0
add rbx, 0x20
mov qword [rsp + 0x60], rbx
jmp 0x18015c011
lea r8, str.NO_ROCKETS
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18015d560
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [rbp - 0x40], rsi
cmp rsi, rbx
je 0x18015c094
mov rdi, rsi
mov dword [rbp + 0x250], 0
mov dword [rbp - 0x68], 0xff57cafe
add r14d, dword [rbp + 0x260]
mov r12, qword [rbp - 0x50]
mov esi, dword [rbp + 0x268]
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18015c051
mov rax, qword [rdi]
lea r9d, [rsi + r13]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 4]
mov rdx, r12
lea rcx, [0x18023d260]
call fcn.1801887c0
add r13d, dword [r12 + 8]
add rdi, 0x20
cmp rdi, rbx
jne 0x18015c044
mov rsi, qword [rbp - 0x40]
test rsi, rsi
je 0x18015c0e5
mov rdi, rsi
cmp rsi, rbx
je 0x18015c0b2
mov rcx, rdi
call fcn.1800fd1d0
add rdi, 0x20
cmp rdi, rbx
jne 0x18015c0a1
sub r15, rsi
and r15, 0xffffffffffffffe0
mov rax, rsi
cmp r15, 0x1000
jb 0x18015c0da
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015c112
mov rdx, r15
mov rcx, rsi
call fcn.18019051c
mov r15d, dword [rsp + 0x40]
xor r12d, r12d
mov rax, qword [rbp + 0x10]
add rax, 8
mov qword [rbp + 0x10], rax
cmp rax, qword [rbp + 0x30]
je 0x18015c119
mov rdi, qword [rbp + 0x258]
jmp 0x18015ae60
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
mov rcx, qword [0x180243f50]
mov rax, qword [rcx]
vmovss xmm1, dword [0x180218a50]
call qword [rax + 0x360]
lea r11, [rsp + 0x308]
vmovaps xmm6, xmmword [r11 - 0x18]
vmovaps xmm7, xmmword [r11 - 0x28]
vmovaps xmm8, xmmword [r11 - 0x38]
vmovaps xmm9, xmmword [r11 - 0x48]
vmovaps xmm10, xmmword [r11 - 0x58]
vmovaps xmm11, xmmword [r11 - 0x68]
vmovaps xmm12, xmmword [r11 - 0x78]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret