Function at 0x10062ce0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080d56
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
call fcn.10060830
lea eax, [esi + 0x32c8]
mov dword [ebp - 0x48], eax
cmp esi, eax
je 0x1006345a
lea edi, [esi + 0x40]
mov ecx, eax
mov dword [ebp - 0x40], edi
cmp byte [edi - 0x3c], 0
je 0x10063446
mov ecx, dword [edi - 0x40]
mov byte [edi - 0xb], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [edi - 0x40]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x74], eax
call fcn.10046440
mov ecx, dword fs:[0x2c]
xorps xmm1, xmm1
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x5c]
addss xmm0, xmm1
mov dword [ebp - 0x54], eax
mov eax, dword [0x100e42e0]
mov esi, dword [ecx + eax*4]
mov eax, dword [0x100e86d0]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x58]
addss xmm0, xmm1
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x54]
addss xmm0, dword [ebp - 0x74]
movss dword [ebp - 0x68], xmm0
cmp eax, dword [esi + 4]
jle 0x10062e0c
push 0x100e86d0
call fcn.1007bfd7
add esp, 4
cmp dword [0x100e86d0], 0xffffffff
jne 0x10062e0c
push 0x10082a70
mov byte [0x100e86fc], 0
call fcn.1007be5e
add esp, 4
push 0x100e86d0
call fcn.1007bf8d
add esp, 4
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x5c]
call fcn.100757b0
mov eax, dword [0x100e86d0]
cmp eax, dword [esi + 4]
jle 0x10062e5e
push 0x100e86d0
call fcn.1007bfd7
add esp, 4
cmp dword [0x100e86d0], 0xffffffff
jne 0x10062e5e
push 0x10082a70
mov byte [0x100e86fc], 0
call fcn.1007be5e
add esp, 4
push 0x100e86d0
call fcn.1007bf8d
add esp, 4
lea edx, [edi - 0x2c]
lea ecx, [ebp - 0x70]
call fcn.100757b0
movss xmm0, dword [ebp - 0x84]
movss dword [ebp - 0x3c], xmm0
subss xmm0, dword [edi - 0x28]
addss xmm0, dword [0x1008d6d8]
movss dword [edi - 0x10], xmm0
divss xmm0, dword [0x1008d6b8]
movss dword [edi - 0x14], xmm0
call fcn.100167e0
movss xmm1, dword [ebp - 0x88]
xorps xmm4, xmm4
movss xmm3, dword [0x1008d70c]
movups xmm0, xmmword [eax + 4]
movups xmmword [ebp - 0x178], xmm0
movq xmm0, qword [eax + 0x14]
movq qword [ebp - 0x168], xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [edi - 8], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [edi - 4], xmm0
movss xmm0, dword [ebp - 0x54]
movss dword [edi], xmm0
movss xmm2, dword [edi - 0x14]
movaps xmm0, xmm2
addss xmm0, xmm1
addss xmm0, xmm3
comiss xmm4, xmm0
ja 0x10062f5f
mov eax, dword [ebp - 0x170]
subss xmm1, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
subss xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x1008fa00]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x10062f5f
movss xmm1, dword [ebp - 0x3c]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm4, xmm0
ja 0x10062f5f
mov eax, dword [ebp - 0x16c]
subss xmm1, dword [edi - 0x10]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
subss xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x1008fa00]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10062f63
mov byte [edi - 0xb], 1
mov ecx, dword [edi - 0x40]
call fcn.10041560
mov dword [ebp - 0x98], 0
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [ebp - 0x3c], xmm0
sqrtss xmm0, dword [ebp - 0x3c]
movss dword [ebp - 0x98], xmm0
mov esi, dword [edi - 0x40]
movss xmm0, dword [ebp - 0x98]
lea ecx, [esi + 4]
movss dword [edi + 4], xmm0
mov eax, dword [esi + 0x2990]
mov dword [ebp - 0x4c], eax
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edx, eax
test edx, edx
jne 0x10062fd0
or eax, 0xffffffff
jmp 0x10063048
mov ecx, dword [0x100e896c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10062fed
or eax, 0xffffffff
jmp 0x10063048
mov edi, dword fs:[0x2c]
mov edx, dword [0x100e42e0]
mov eax, dword [0x100f38d0]
mov ecx, dword [edi + edx*4]
mov edi, dword [ebp - 0x40]
cmp eax, dword [ecx + 4]
jle 0x1006303a
push 0x100f38d0
call fcn.1007bfd7
add esp, 4
cmp dword [0x100f38d0], 0xffffffff
jne 0x1006303a
mov eax, dword [0x100e890c]
push 0x100f38d0
mov dword [0x100f38c4], eax
call fcn.1007bf8d
add esp, 4
push dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov ecx, esi
call dword [0x100f38c4]
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x58]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x64]
mov ecx, dword [edi - 0x40]
add ecx, 8
mov dword [edi + 0x10], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [edi - 0x40]
mov byte [edi + 0x14], al
call fcn.10040fb0
mov edx, eax
test edx, edx
jne 0x1006307d
mov dword [ebp - 0x3c], eax
jmp 0x100630cc
mov ecx, dword [0x100e8960]
push dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x100630cc
mov ecx, dword [esi]
mov edx, dword [ecx + 0x734]
mov ecx, esi
call edx
test eax, eax
je 0x100630cc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x734]
call eax
mov ecx, esi
mov eax, dword [eax + 0x14]
mov dword [edi + 0x1c], eax
call fcn.10041280
mov eax, dword [eax]
mov dword [edi + 0x20], eax
mov al, byte [esi + 0x3285]
mov byte [edi + 0x2d], al
mov ecx, dword [edi - 0x40]
call fcn.1005f540
mov ecx, dword [edi - 0x40]
mov eax, dword [eax]
mov dword [edi + 0x24], eax
call fcn.10041360
mov ecx, dword [edi - 0x40]
mov eax, dword [eax]
mov dword [edi + 0x28], eax
call fcn.100418a0
mov al, byte [eax]
mov byte [edi + 0x2c], al
call fcn.10045870
imul ecx, dword [edi - 0x38], 0xe4
add ecx, eax
mov al, byte [ecx + 0x80]
mov byte [edi + 0x35], al
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x38], eax
mov al, byte [ecx + 0x69]
mov ecx, dword [edi - 0x40]
mov byte [edi + 0x3c], al
lea eax, [ebp - 0x2c]
push eax
call fcn.1007ae80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xa
jbe 0x100631bc
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xa
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0x68686846
mov dword [ebp - 0x30], 0
mov byte [eax + 0xa], 0
mov eax, 3
mov dword [ebp - 0x38], eax
inc eax
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x33]
xor edx, edx
mov dword [ebp - 0x44], esi
mov eax, 3
sub edi, esi
lea ecx, [edx + esi]
mov esi, eax
sub esi, edx
mov dl, byte [ebp - 0x34]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, dl
mov byte [ecx - 1], al
sub esi, 1
jne 0x10063182
mov esi, dword [ebp - 0x44]
mov eax, 3
mov edi, dword [ebp - 0x40]
mov ecx, esi
mov byte [esi + eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100631a6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10010c50
mov ecx, dword [ebp - 0x1c]
lea edx, [edi + 0x40]
lea eax, [ebp - 0x2c]
cmp edx, eax
je 0x100631d7
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
mov ecx, edx
push eax
call fcn.100109d0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10063223
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov esi, dword [eax + 8]
cmp byte [esi], 0x43
jne 0x100631f1
inc esi
push str.Weapon
push esi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x10063207
lea esi, [eax + 6]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10063210
sub ecx, edx
push ecx
push esi
lea ecx, [edi + 0x58]
call fcn.100109d0
mov ecx, dword [edi - 0x38]
mov esi, dword [ebp - 0x64]
movss xmm0, dword [edi - 0x34]
add esi, 0x32c8
imul eax, ecx, 0x6c
movss dword [ebp - 0x154], xmm0
movss xmm0, dword [edi - 0x30]
movss dword [ebp - 0x150], xmm0
movq xmm0, qword [edi - 0x2c]
add esi, eax
movq qword [ebp - 0x14c], xmm0
mov eax, dword [edi - 0x40]
mov dword [ebp - 0x160], eax
mov al, byte [edi - 0x3c]
mov byte [ebp - 0x15c], al
mov eax, dword [edi - 0x24]
mov dword [ebp - 0x144], eax
mov eax, dword [edi - 0x18]
movq xmm0, qword [edi - 0x20]
mov dword [ebp - 0x138], eax
mov al, byte [edi - 0xc]
mov byte [ebp - 0x12c], al
mov al, byte [edi - 0xb]
mov byte [ebp - 0x12b], al
mov eax, dword [edi]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x118], eax
mov al, byte [edi + 0x14]
mov byte [ebp - 0x10c], al
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x104], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x100], eax
mov eax, dword [edi + 0x24]
movq qword [ebp - 0x140], xmm0
movss xmm0, dword [edi - 0x14]
mov dword [ebp - 0xfc], eax
mov eax, dword [edi + 0x28]
movss dword [ebp - 0x134], xmm0
movss xmm0, dword [edi - 0x10]
mov dword [ebp - 0xf8], eax
mov al, byte [edi + 0x2c]
movss dword [ebp - 0x130], xmm0
movq xmm0, qword [edi - 8]
mov byte [ebp - 0xf4], al
mov al, byte [edi + 0x2d]
movq qword [ebp - 0x128], xmm0
movss xmm0, dword [edi + 4]
mov byte [ebp - 0xf3], al
mov al, byte [edi + 0x34]
movss dword [ebp - 0x11c], xmm0
movss xmm0, dword [edi + 0xc]
mov byte [ebp - 0xec], al
mov al, byte [edi + 0x35]
movss dword [ebp - 0x114], xmm0
movss xmm0, dword [edi + 0x10]
mov byte [ebp - 0xeb], al
mov eax, dword [edi + 0x38]
mov dword [ebp - 0xe8], eax
mov al, byte [edi + 0x3c]
movss dword [ebp - 0x110], xmm0
movss xmm0, dword [edi + 0x18]
mov byte [ebp - 0xe4], al
lea eax, [edi + 0x40]
movss dword [ebp - 0x108], xmm0
movss xmm0, dword [edi + 0x30]
mov dword [ebp - 0x158], ecx
lea ecx, [ebp - 0xe0]
push eax
mov dword [ebp - 0x3c], esi
movss dword [ebp - 0xf0], xmm0
call fcn.1000f4e0
lea eax, [edi + 0x58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
call fcn.1000f4e0
mov byte [ebp - 4], 2
lea eax, [edi + 0x70]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1000f4e0
add esi, 0x3c
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
jne 0x10063484
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.100651a0
mov eax, dword [ebp - 0x3c]
add eax, 0x14
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_signal]
add esp, 4
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
lea ecx, [ebp - 0x160]
call fcn.10063490
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10063443
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10063439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006347e
push edx
push ecx
call fcn.1007be73
add esp, 8
mov ecx, dword [ebp - 0x48]
add edi, 0xc8
mov dword [ebp - 0x40], edi
lea eax, [edi - 0x40]
cmp eax, ecx
jne 0x10062d44
lea esp, [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3