Function at 0x18014fe00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x238
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
mov r13, rdx
xor r11d, r11d
mov r12d, r11d
mov dword [rbp + 0x198], r11d
mov dword [rbp + 0x180], r11d
cmp dword [0x18023fdf4], r11d
je 0x1801510d8
mov rcx, qword [0x180230b98]
mov rax, qword [rcx]
movd xmm1, dword [0x18023fe74]
cvtdq2ps xmm1, xmm1
call qword [rax + 0x360]
mov dword [rbp + 0x180], 3
lea r8, [rbp + 0x180]
lea rdx, [rbp - 0x18]
lea rcx, [0x18022a890]
call fcn.1800b3fa0
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
mov qword [rbp + 8], rdx
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x10], rax
cmp rdx, rax
je 0x1801510c0
movss xmm7, dword [0x1802065c0]
movss xmm9, dword [0x180206690]
movss xmm8, dword [0x180206780]
movss xmm6, dword [0x1802067f0]
nop dword [rax + rax]
mov r14, qword [rdx]
mov qword [rbp - 0x20], r14
mov rcx, r14
call fcn.18014acf0
mov rcx, qword [0x180230b08]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x2c], eax
lea rdx, [rbp - 0x2c]
call r8
mov rsi, rax
mov qword [rbp + 0x18], rax
test rax, rax
je 0x180150070
lea rcx, [rax + 0x10]
mov rdx, qword [rcx]
call qword [rdx + 0x48]
mov ebx, eax
mov rcx, qword [0x180230b20]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
je 0x180150067
test byte [0x18023fef4], 8
je 0x18014ff70
mov dword [rbp + 0x180], ebx
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0xb0]
lea rcx, [0x18022a910]
call fcn.1800d7fd0
mov rcx, qword [rax]
cmp byte [rcx + 0x14], 0
jne 0x18015000e
test byte [0x18023fef4], 0x10
je 0x180150012
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x48], 0xf
mov rax, qword [str.Default]
mov dword [rbp - 0x60], eax
movzx eax, word [0x1801f7cc4]
mov word [rbp - 0x5c], ax
movzx eax, byte [0x1801f7cc6]
mov byte [rbp - 0x5a], al
mov byte [rbp - 0x59], 0
or r12d, 1
mov dword [rbp + 0x198], r12d
mov dword [rbp + 0x180], r12d
mov dword [rbp + 0x190], ebx
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0xc0]
lea rcx, [0x18022a990]
call fcn.1800b41e0
mov rcx, qword [rax]
mov ebx, dword [rcx + 0x14]
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0xd0]
lea rcx, [0x180240260]
call fcn.1801401c0
mov rcx, qword [rax]
cmp ebx, dword [rcx + 0x34]
jle 0x180150012
xor bl, bl
jmp 0x180150014
mov bl, 1
test r12b, 1
je 0x18015002e
and r12d, 0xfffffffe
mov dword [rbp + 0x198], r12d
lea rcx, [rbp - 0x60]
call fcn.180092690
test bl, bl
je 0x1801500b8
test byte [0x18023fef4], 1
jne 0x180150059
mov rcx, rsi
call fcn.1800a99e0
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a99e0
cmp ebx, dword [rax]
jne 0x1801510aa
test byte [0x18023fef4], 2
jne 0x1801500b8
mov rcx, rsi
jmp 0x1801500a1
test byte [0x18023fef4], 4
jmp 0x1801500b2
mov eax, dword [0x18023fef4]
test al, 1
jne 0x18015009a
mov rcx, r14
call fcn.1800a99e0
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a99e0
cmp ebx, dword [rax]
jne 0x1801510aa
mov eax, dword [0x18023fef4]
test al, 2
jne 0x1801500b8
mov rcx, r14
call fcn.1800a99e0
mov ebx, dword [rax]
mov rcx, r13
call fcn.1800a99e0
cmp ebx, dword [rax]
je 0x1801510aa
mov rcx, r14
call fcn.1800a9ae0
mov rcx, r14
call fcn.1800a9be0
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 [0x180230b20]
mov rdx, qword [rcx]
call qword [rdx + 0x60]
cmp ebx, eax
jne 0x18015014c
mov rcx, qword [0x180230b20]
mov qword [rbp - 0x14], 0
mov dword [rbp - 0x18], 0
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + 0x98]
mov dword [rbp - 0x10], 0
mov dword [rbp - 0x18], 0
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.1800bdfe0
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 - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
lea r8, [rbp - 4]
mov rdx, rdi
mov rcx, r14
call fcn.18017e8f0
test al, al
je 0x1801510aa
movss xmm4, dword [rbp - 8]
subss xmm4, dword [rbp - 4]
movaps xmm3, xmm4
mulss xmm3, xmm7
movaps xmm0, xmm3
addss xmm0, dword [rbp - 4]
cvttss2si edx, xmm0
mov dword [rsp + 0x54], edx
cvttss2si ecx, dword [rbp - 0x40]
mov dword [rbp + 0x190], ecx
addss xmm3, xmm3
subss xmm4, xmm3
cvttss2si eax, xmm4
mov dword [rbp - 0x68], eax
movss xmm0, dword [rbp - 0x3c]
subss xmm0, dword [rbp - 0x40]
cvttss2si edi, xmm0
mov dword [rsp + 0x50], edi
cmp edx, dword [0x18022a270]
jg 0x1801510aa
add eax, edx
js 0x1801510aa
cmp ecx, dword [0x18022a274]
jg 0x1801510aa
lea r15d, [rdi + rcx]
test r15d, r15d
js 0x1801510aa
xor eax, eax
mov ebx, eax
mov dword [rbp - 0x64], eax
mov r12d, eax
mov dword [rbp - 0x38], eax
lea r8, [rbp - 0x38]
lea rdx, [rbp + 0xe0]
call fcn.18017d4c0
mov rcx, qword [rax]
add rcx, 0x18
mov qword [rbp], rcx
mov r9, r14
test rsi, rsi
cmovne r9, rsi
movzx eax, byte [0x18023fa71]
mov byte [rsp + 0x20], al
mov r8, r13
lea rdx, [rbp - 0x30]
call fcn.180179e90
mov rcx, r14
call fcn.1800b67a0
mov r13d, dword [rax]
mov rcx, r14
call fcn.1800b66a0
mov r14d, dword [rax]
cmp r13d, r14d
cmovl r14d, r13d
mov rcx, qword [rbp - 0x20]
call fcn.1800b69a0
movzx eax, byte [rax]
mov byte [rbp + 0x180], al
test byte [0x18023fdf4], 0x10
je 0x1801502a7
mov dword [rsp + 0x58], 0xff000000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, dword [rbp - 0x68]
mov r8d, dword [rbp + 0x190]
mov edx, dword [rsp + 0x54]
call fcn.18017afe0
test byte [0x18023fdf4], 2
je 0x1801503f3
movd xmm2, r14d
cvtdq2ps xmm2, xmm2
movd xmm0, r13d
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movzx edx, byte [0x18023f9f8]
mov eax, dword [0x18023f9fc]
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 [0x18023f9f9]
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 [0x18023f9fa]
movzx eax, byte [0x18023f9fe]
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 [0x18023f9fb]
movzx eax, byte [0x18023f9ff]
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 + 0x190]
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.18017af60
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.18017af60
mov ebx, 5
mov edi, dword [rsp + 0x50]
mov rsi, qword [rbp + 0x18]
test byte [0x18023fdf4], 4
je 0x180150485
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, [0x1801b343c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rbx, [0x180234e84]
mov qword [rsp + 0x20], rbx
mov r13, qword [rbp]
mov rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ab60
jmp 0x180150490
mov r13, qword [rbp]
lea rbx, [0x180234e84]
mov r15, qword [rbp - 0x20]
test byte [0x18023fdf4], 1
je 0x18015055f
lea rcx, [r15 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x180150505
mov ecx, dword [rax + 0x28]
sub ecx, 0x56
je 0x1801504fc
sub ecx, 2
je 0x1801504e1
cmp ecx, 1
jne 0x180150505
mov rcx, r15
call fcn.18014d290
lea rcx, str.teleporter_entrance
cmp dword [rax], r12d
lea rax, str.teleporter_exit
cmovne rcx, rax
jmp 0x18015050c
lea rcx, str.sentry
cmp byte [rbp + 0x180], r12b
lea rax, str.mini_sentry
cmovne rcx, rax
jmp 0x18015050c
lea rcx, str.dispenser
jmp 0x18015050c
lea rcx, str.unknown
mov r12d, dword [r13 + 8]
add r12d, 2
mov dword [rsp + 0x50], 1
mov r9d, dword [rbp + 0x190]
sub r9d, r12d
mov r14d, dword [rbp - 0x68]
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
mov r8d, dword [rsp + 0x54]
add r8d, eax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
mov rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
jmp 0x180150563
mov r14d, dword [rbp - 0x68]
test byte [0x18023fdf4], 8
je 0x180150627
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x48]
mov rbx, rax
mov rcx, qword [rbp + 0x188]
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 0x1801505b8
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1801505c0
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 + 0x190]
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, [0x180201278]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [0x180234e84]
mov qword [rsp + 0x20], rcx
mov rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
jmp 0x18015062b
mov edi, dword [rsp + 0x54]
test byte [0x18023fdf4], 0x20
je 0x18015085e
mov rcx, r15
call fcn.18014d390
cmp byte [rax], 0
jne 0x18015085e
test rsi, rsi
je 0x18015085e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0xa0], eax
mov rax, qword [0x180230b20]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x40]
lea rcx, [rsi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [rbp + 0x20]
mov edx, eax
mov rcx, qword [0x180230b20]
call rbx
test al, al
je 0x18015085e
mov edi, dword [r13 + 8]
add edi, 2
add edi, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
lea rax, [rbp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1801506e0
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.1800946e0
nop
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova r8, qword [rbp - 0x60]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
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], rsi
mov qword [rbp - 0x70], rsi
mov r8, rbx
lea rcx, [rsp + 0x78]
call fcn.180180110
mov r12d, dword [rbp + 0x198]
or r12d, 2
mov dword [rbp + 0x198], r12d
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova r8, qword [rbp - 0x60]
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 + 0x190]
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, [0x180201270]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x180150840
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015083b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180151104
call fcn.1801822cc
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], bx
lea rcx, [rbp - 0x60]
call fcn.180092690
jmp 0x18015086d
xor ebx, ebx
mov r12d, dword [rbp + 0x198]
mov esi, dword [rbp + 0x190]
test byte [0x18023fdf4], 0x40
je 0x1801509d2
cmp byte [rbp + 0x180], 0
jne 0x1801509d2
mov ecx, 4
mov eax, dword [0x18022f1ec]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802310f8], ecx
jle 0x180150951
lea rcx, [0x1802310f8]
call fcn.18018237c
cmp dword [0x1802310f8], 0xffffffff
jne 0x180150951
mov rcx, qword [0x180230ae0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x18015093d
nop dword [rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x1801508f1
mov rdx, rbx
test rcx, rcx
je 0x180150934
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 0x180150910
cmp r9d, 0xc262c48c
je 0x1801509bd
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x1801508e0
mov eax, ebx
mov dword [0x1802310e8], eax
lea rcx, [0x1802310f8]
call fcn.180182310
movsxd rax, dword [0x1802310e8]
mov ebx, dword [rax + r15]
mov rcx, r15
call fcn.1800b6aa0
mov ecx, dword [rax]
xor r11d, r11d
mov dword [rsp + 0x50], r11d
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, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
mov esi, dword [r13 + 8]
jmp 0x1801509d5
lea r8, str.m_iHighestUpgradeLevel
mov rdx, qword [r10 + 0x18]
call fcn.180181f10
jmp 0x18015093f
mov esi, dword [rbp - 0x64]
test byte [0x18023fdf4], 0x80
je 0x1801510a3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor edx, edx
mov r12d, edx
mov qword [rbp - 0x78], rdx
mov eax, 4
mov ebx, eax
mov edi, eax
mov eax, dword [0x18022f1ec]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rbx + rax]
cmp dword [0x1802310e0], ecx
jle 0x180150ac9
lea rcx, [0x1802310e0]
call fcn.18018237c
mov edi, ebx
cmp dword [0x1802310e0], 0xffffffff
jne 0x180150ac7
mov rcx, qword [0x180230ae0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x180150ab2
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x180150a63
mov rdx, r11
test rcx, rcx
je 0x180150aa4
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 0x180150a80
cmp r9d, 0xc262c48c
je 0x180150c81
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180150a52
mov edi, 4
mov eax, r11d
mov dword [0x1802310cc], eax
lea rcx, [0x1802310e0]
call fcn.180182310
xor edx, edx
movsxd rax, dword [0x1802310cc]
movss xmm0, dword [rax + r15]
mulss xmm0, xmm6
comiss xmm6, xmm0
jbe 0x180150b45
cvttss2si eax, xmm0
test eax, eax
je 0x180150b45
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x6c], 0xff57cafe
cvtps2pd xmm0, xmm0
mov r9d, dword [rbp + 0x190]
add r9d, esi
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 rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
add esi, dword [r13 + 8]
lea rcx, [r15 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, dword [0x18022f1ec]
mov rbx, qword gs:[0x58]
test rax, rax
je 0x180150c57
cmp dword [rax + 0x28], 0x58
jne 0x180150c57
mov rax, qword [rbx + r14*8]
mov ecx, dword [rdi + rax]
cmp dword [0x1802310f4], ecx
jle 0x180150c32
lea rcx, [0x1802310f4]
call fcn.18018237c
cmp dword [0x1802310f4], 0xffffffff
jne 0x180150c32
mov rcx, qword [0x180230ae0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x180150c1d
nop word [rax + rax]
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], r11b
jne 0x180150bd1
mov rdx, r11
test rcx, rcx
je 0x180150c14
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 0x180150bf0
cmp r9d, 0x80133484
je 0x180150c9b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180150bc0
mov eax, r11d
mov dword [0x180231108], eax
lea rcx, [0x1802310f4]
call fcn.180182310
movsxd rax, dword [0x180231108]
cmp byte [rax + r15], 0
je 0x180150c57
lea r8, str.wrangled
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.180152270
mov r12, qword [rbp - 0x78]
mov rcx, r15
call fcn.1800b68a0
cmp byte [rax], 0
je 0x180150ccb
mov rbx, qword [rbp - 0x80]
cmp rbx, r12
je 0x180150cb0
xor edi, edi
mov r8d, 6
lea rdx, str.sapped
jmp 0x180150db7
lea r8, str.m_flPercentageConstructed
mov rdx, qword [r10 + 0x18]
call fcn.180181f10
mov edi, 4
jmp 0x180150ab5
lea r8, str.m_bPlayerControlled
mov rdx, qword [r10 + 0x18]
call fcn.180181f10
jmp 0x180150c20
lea r8, str.sapped
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180152270
xor edi, edi
jmp 0x180150deb
mov ecx, 4
mov rax, qword [rbx + r14*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802310fc], ecx
jle 0x180150d91
lea rcx, [0x1802310fc]
call fcn.18018237c
cmp dword [0x1802310fc], 0xffffffff
jne 0x180150d91
mov rcx, qword [0x180230ae0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor edi, edi
test rax, rax
je 0x180150d69
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], dil
jne 0x180150d24
mov rdx, rdi
test rcx, rcx
je 0x180150d60
nop word [rax + rax]
movsx eax, byte [rdx + r8]
xor eax, r9d
imul r9d, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180150d40
cmp r9d, 0xc262c48c
je 0x180150d7f
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180150d13
mov eax, edi
mov dword [0x180231118], eax
lea rcx, [0x1802310fc]
call fcn.180182310
jmp 0x180150d93
lea r8, str.m_bDisabled
mov rdx, qword [r10 + 0x18]
call fcn.180181f10
jmp 0x180150d6b
xor edi, edi
movsxd rax, dword [0x180231118]
cmp byte [rax + r15], 0
je 0x180150def
mov rbx, qword [rbp - 0x80]
cmp rbx, r12
je 0x180150dd7
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.180129430
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x180150df3
lea r8, str.disabled
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180152270
mov r12, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
lea rcx, [r15 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x180150fc7
cmp dword [rax + 0x28], 0x58
jne 0x180150fc7
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax + r14*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1802310d0], ecx
jle 0x180150ed1
lea rcx, [0x1802310d0]
call fcn.18018237c
cmp dword [0x1802310d0], 0xffffffff
jne 0x180150ed1
mov rcx, qword [0x180230ae0]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
test rax, rax
je 0x180150ebd
nop
mov r8, qword [r10 + 0x10]
mov rcx, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180150e71
mov rdx, rdi
test rcx, rcx
je 0x180150eb4
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 0x180150e90
cmp r9d, 0xc262c48c
je 0x180150f39
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180150e60
mov eax, edi
mov dword [0x1802310d4], eax
lea rcx, [0x1802310d0]
call fcn.180182310
movsxd rax, dword [0x1802310d4]
cmp byte [rax + r15], 0
jne 0x180150fc7
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x24]
lea r8, [rbp - 0x64]
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.1800b6ca0
cmp dword [rbp - 0x28], 0
jne 0x180150f6a
cmp rbx, r12
je 0x180150f4e
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.180129430
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x180150f6a
lea r8, str.m_bBuilding
mov rdx, qword [r10 + 0x18]
call fcn.180181f10
jmp 0x180150ebf
lea r8, str.no_ammo
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180152270
mov r12, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
cmp byte [rbp + 0x180], 0
jne 0x180150fc7
cmp dword [rbp - 0x24], 0
jne 0x180150fc7
cmp rbx, r12
je 0x180150fab
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.180129430
add rbx, 0x20
mov qword [rbp - 0x80], rbx
jmp 0x180150fc7
lea r8, str.no_rockets
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180152270
mov r12, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
cmp r14, rbx
je 0x18015104b
mov rdi, r14
xor r11d, r11d
mov dword [rbp + 0x180], r11d
mov dword [rsp + 0x70], 0xff57cafe
mov r15d, dword [rsp + 0x54]
add r15d, dword [rbp + 0x190]
add esi, dword [rbp + 0x190]
nop dword [rax + rax]
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18015100d
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8d, [r15 + 2]
mov rdx, r13
lea rcx, [0x18022a230]
call fcn.18017ad80
add rdi, 0x20
add esi, dword [r13 + 8]
cmp rdi, rbx
jne 0x180151000
test r14, r14
je 0x18015109c
mov rdi, r14
cmp r14, rbx
je 0x180151069
mov rcx, rdi
call fcn.1800f46c0
add rdi, 0x20
cmp rdi, rbx
jne 0x180151058
sub r12, r14
and r12, 0xffffffffffffffe0
mov rax, r14
cmp r12, 0x1000
jb 0x180151091
add r12, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015110b
mov rdx, r12
mov rcx, r14
call fcn.1801822cc
mov r12d, dword [rbp + 0x198]
mov r13, qword [rbp + 0x188]
mov rdx, qword [rbp + 8]
add rdx, 8
mov qword [rbp + 8], rdx
cmp rdx, qword [rbp + 0x10]
jne 0x18014fee0
mov rcx, qword [0x180230b98]
mov rax, qword [rcx]
movss xmm1, dword [0x180206650]
call qword [rax + 0x360]
lea r11, [rsp + 0x238]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3