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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x437701
mov eax, 0xffffff9a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x38], 0
je 0x4376ed
cmp dword [esi + 0x9c], 0
je 0x437715
call fcn.00437c10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.004374d0
add esp, 8
test eax, eax
je 0x437742
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
push edi
push 0x90
call fcn.004df659
mov edi, eax
add esp, 4
test edi, edi
je 0x43778f
push 0x4000
call fcn.004df659
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [edi], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x8c], 0
test eax, eax
jne 0x4377a4
push edi
call fcn.004dbc6f
add esp, 4
pop edi
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 0
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x84], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x80], eax
movq xmm0, qword [esi]
movq qword [edi + 0x60], xmm0
movq xmm0, qword [esi + 8]
movq qword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x70], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x78], xmm0
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0x54]
push ebx
cmp eax, 0xc
jne 0x4378c4
mov dword [edi + 0x8c], 1
mov eax, dword [esi + 0x60]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x1e
add eax, dword [esi + 0x98]
mov dword [edi + 8], 0
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], 0
test eax, eax
je 0x43798c
push 0x57a738
lea edx, [esi + 0xa4]
mov ecx, eax
mov dword [esi + 0xb0], 0x57a738
call fcn.00436b80
mov ecx, dword [esi + 0x9c]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push dword [esi + 0x1c]
call eax
add esp, 0x14
test eax, eax
jne 0x4378ae
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jae 0x43792b
pop ebx
pop edi
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x437818
lea ecx, [edi + 4]
sub esp, 8
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ecx], 0
mov dword [edi + 8], 0
call fcn.00438190
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43790f
mov dword [edi + 0x40], 8
jmp 0x437818
push edi
call fcn.004dbc6f
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esi + 0xac]
and eax, 0xfffd
mov edx, dword [esi + 0xb0]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
movsx eax, byte [ebp + edi - 0x10]
shr ecx, 8
and ecx, 0xff
xor ecx, eax
movsx eax, cl
mov byte [ebp + edi - 0x10], cl
push eax
lea ecx, [esi + 0xa4]
call fcn.00436b30
inc edi
add esp, 4
cmp edi, 0xc
jl 0x437930
mov eax, dword [esi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [esi + 0xa0], 1
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004da4c1
mov esp, ebp
pop ebp
ret