Function at 0x549050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ebx, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x90], eax
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.0052c9c0
add esp, 8
mov edi, eax
test eax, eax
mov dword [esp + 0xc], ebx
je 0x54919a
mov esi, dword [ebx + 0xc]
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
xor eax, eax
cmp ebx, fcn.00562fa0
je 0x5490a9
mov ecx, ebx
call dword [0x63e63c]
mov ecx, edi
call ebx
cmp esi, eax
jne 0x5496b3
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x549123
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x10]
cmp ebx, 0x562fb0
mov dword [esp + 4], ecx
jne 0x54913b
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov edx, ecx
sar edx, 2
lea ebx, [edx - 1]
cmp ebx, esi
mov esi, dword [esp + 8]
jne 0x5496b3
cmp ebx, 2
jb 0x5496df
cmp edx, 1
mov edx, dword [esp + 4]
jbe 0x549696
cmp dword [eax + 4], edx
jne 0x5496b3
mov eax, dword [eax + ecx - 8]
cmp eax, esi
jne 0x5496b3
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.00568175
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
call dword [0x63e63c]
mov ecx, edi
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call ebx
test al, al
jne 0x549123
jmp 0x5496b3
mov byte [eax + 2], 0
mov word [eax], 0
jmp 0x549183
cmp ecx, 0x3f
je 0x549183
add eax, edi
cmp ecx, 0x3c
je 0x549159
mov edx, 0x3f
sub edx, ecx
push edx
push 0
push eax
call fcn.00569910
add esp, 0xc
lea eax, [esp + 0x30]
push 1
push edi
push eax
call fcn.004dde80
add esp, 0xc
xor eax, eax
jmp 0x549226
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
xorps xmm0, xmm0
lea edi, [esp + 0x48]
movups xmmword [edi + 0x34], xmm0
movups xmmword [edi + 0x28], xmm0
movups xmmword [edi + 0x18], xmm0
movups xmmword [edi + 8], xmm0
movups xmmword [edi - 8], xmm0
movapd xmm0, xmmword [0x62f520]
movupd xmmword [edi - 0x18], xmm0
test ebx, ebx
je 0x5491fd
lea eax, [ebx*8]
mov ecx, ebx
shr ecx, 0x1d
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
cmp ebx, 0x40
jae 0x5495a9
mov eax, ebx
mov dword [esp + 0x88], eax
push eax
push esi
push edi
call fcn.00569390
add esp, 0xc
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x44]
mov byte [esp + ecx + 0x48], 0x80
lea eax, [ecx + 1]
cmp eax, 0x39
jae 0x549164
cmp eax, 0x38
je 0x54923b
mov ecx, 0x38
sub ecx, eax
add eax, edi
push ecx
push 0
push eax
call fcn.00569910
add esp, 0xc
lea esi, [esp + 0x30]
mov eax, dword [esp + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
push 1
push edi
push esi
call fcn.004dde80
add esp, 0xc
mov esi, dword [esi]
mov ebx, dword [0x64a734]
cmp ebx, 1
jbe 0x549667
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x54965b
mov eax, dword [0x64a73c]
test eax, eax
je 0x549289
mov edi, dword [eax + 0x50]
test edi, edi
jne 0x549701
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax]
cmp edi, 0x558840
je 0x549356
mov ecx, edi
call dword [0x63e63c]
mov ecx, ebx
call edi
push eax
call fcn.004f7340
add esp, 4
mov edi, eax
cmp dword [ebx + 0x18], 0
je 0x54961e
mov dword [esp + 0x30], 0
mov eax, dword [0x655080]
mov dword [esp + 4], eax
test eax, eax
je 0x5495d2
lea esi, [esp + 0x2c]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x1c]
push edi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx + 0xc]
push esi
call fcn.004f8080
mov esi, dword [esi]
test esi, esi
je 0x5495d2
mov eax, dword [ebx]
mov edi, dword [eax + 8]
cmp edi, method.std::__Cr::basic_streambuf_char__struct_std::__Cr::char_traits_char__.virtual_4
je 0x549328
mov ecx, edi
call dword [0x63e63c]
mov ecx, ebx
push esi
call edi
push esi
call fcn.004f78e0
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x54934d
xor edx, edx
cmp edi, esi
sete dl
mov ecx, dword [esp + 4]
push edx
push eax
call fcn.00540400
mov ebx, dword [esp + 0xc]
jmp 0x54908b
push 0x14
call fcn.00564ea5
add esp, 4
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov esi, edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ebx, 0
mov edi, 0
inc esi
mov dword [esp + 8], eax
je 0x5493de
mov dword [esp + 4], edx
cmp esi, 0x40000000
jae 0x5496f8
lea eax, [esi*4]
push eax
call fcn.00564ea5
add esp, 4
mov ebx, eax
mov eax, dword [esp + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea edi, [ebx + esi*4]
mov dword [eax + 8], edi
mov eax, dword [esp + 4]
lea eax, [eax*4 + 4]
xor ecx, ecx
mov edx, ebx
add edx, ecx
je 0x54969d
mov dword [edx], 0
add ecx, 4
cmp eax, ecx
jne 0x5493be
mov eax, dword [esp + 8]
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xc]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [ecx + 0x14]
sub esp, 8
movsd qword [esp], xmm0
mov esi, eax
call fcn.00591c60
add esp, 8
fstp qword [esp + 0x20]
sub edi, ebx
cmp edi, 4
jbe 0x5496a4
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov dword [ebx + 4], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ebx, eax
sub ebx, ecx
sar ebx, 2
lea edx, [ebx - 1]
cmp edx, 3
jb 0x5494ff
add ebx, 0xfffffffd
mov edi, 2
mov ecx, dword [esp + 4]
mov dword [esp + 4], ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, ecx
sub esp, 8
movsd qword [esp], xmm0
call fcn.00591c60
add esp, 8
fstp qword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
call fcn.004ef3c0
add esp, 4
mov eax, dword [esp + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
cmp eax, edi
jbe 0x5496a4
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x10]
subsd xmm1, xmm0
movd xmm2, ebx
por xmm2, xmmword [0x627190]
subsd xmm2, qword [0x6271a0]
divsd xmm1, xmm2
addsd xmm1, xmm0
sub esp, 8
movsd qword [esp], xmm1
call fcn.00591cb0
fstp qword [esp]
call fcn.00591c0d
add esp, 8
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
mov ecx, dword [esp + 4]
cmp ecx, eax
lea ecx, [ecx + 1]
cmovl ecx, eax
mov dword [esi + edi*4], ecx
inc edi
dec ebx
jne 0x54944f
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, ecx
je 0x5496a4
mov dword [eax - 4], 0x7fffffff
mov eax, dword [esp + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
sub edi, esi
je 0x5496ee
js 0x5496f5
mov ecx, edi
shr ecx, 2
mov edx, esi
and edi, 3
jne 0x5495fd
sub esi, eax
cmp esi, 0xfffffffc
ja 0x549599
mov esi, 0xff
movzx edi, byte [edx]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x630a84]
movzx edi, byte [edx + 1]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x630a84]
movzx edi, byte [edx + 2]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x630a84]
movzx edi, byte [edx + 3]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x630a84]
add edx, 4
cmp edx, eax
jne 0x549543
mov eax, dword [esp + 8]
mov dword [eax + 0xc], ecx
mov ebx, dword [esp + 0xc]
jmp 0x5492b0
mov eax, ebx
shr eax, 6
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.004dde80
add esp, 0xc
mov eax, ebx
and eax, 0x3f
je 0x5491fd
and ebx, 0xffffffc0
add esi, ebx
jmp 0x5491eb
and byte [ebx + 0x1c], 0xbf
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x63e63c]
lea eax, [esp + 0x2c]
mov ecx, ebx
push edi
mov edi, eax
push eax
call esi
mov esi, dword [edi]
mov eax, dword [ebx + 0x1c]
lock or dword [esi + 8], eax
jmp 0x54930e
movzx ebx, byte [edx]
mov dword [esp + 4], ebx
movzx ebx, cl
xor ebx, dword [esp + 4]
shr ecx, 8
xor ecx, dword [ebx*4 + 0x630a84]
inc edx
dec edi
jne 0x5495fd
jmp 0x549537
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
lea ecx, [eax - 1]
mov dword [ebx + 0x18], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub edx, ecx
cmp edx, 4
jbe 0x549696
mov ecx, dword [ecx + 4]
mov dword [ebx + 0x10], ecx
lea edx, [eax - 2]
mov ecx, dword [edi]
mov esi, dword [edi + 4]
sub esi, ecx
sar esi, 2
cmp esi, edx
jbe 0x549696
mov eax, dword [ecx + eax*4 - 8]
mov dword [ebx + 0x14], eax
jmp 0x5492c5
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x549275
push 0x64a734
call fcn.00409590
add esp, 4
test al, al
je 0x54974b
mov dword [0x64a738], 0
mov ebx, 0x64a738
mov dword [0x64a734], ebx
jmp 0x549266
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
jmp 0x5496a9
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
jmp 0x5496a9
push str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x624173
call fcn.00591ed0
mov eax, dword [esp + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call fcn.0052b630
add esp, 8
push eax
push 0x62fb00
call fcn.004faec0
add esp, 8
call fcn.005c7650
mov edi, eax
jmp 0x549123
cmp dword [esp + 4], 0xffffffff
jne 0x5496b3
xor eax, eax
dec eax
jmp 0x54911b
xor ecx, ecx
jmp 0x549599
int3
mov ecx, dword [esp + 8]
call fcn.00591ed0
bswap esi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
call dword [0x63e63c]
mov ecx, edi
push esi
call dword [esp + 8]
mov byte [esp + 4], al
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 4], 0
jne 0x549290
call fcn.005c7650
mov esi, eax
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.00568175
mov eax, esi
jmp 0x549133
mov ebx, dword [0x64a734]
jmp 0x549266