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

Disassembly:
sub esp, 0x34
mov eax, dword [0x10df0cc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
xor ebp, ebp
mov dword [esp + 0x14], edi
call dword [0x10cf0f0]
add eax, 0x3e8
mov esi, 0x400
mov dword [0x110a988], eax
mov eax, dword [0x110a920]
push esi
add eax, 0xd800
push eax
push edi
call dword [0x10cf0e0]
mov ecx, dword [0x110a920]
mov edx, 0x80000000
push 3
lea ecx, [ecx + 0xd800]
call fcn.00402797
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [0x10dfaf0], ebx
cmp ebx, 0xffffffff
jne 0x401bbb
mov eax, 0x10dae84
jmp 0x401e71
mov ecx, dword [0x110a920]
push esi
mov esi, dword [0x10cf1e0]
lea eax, [ecx + 0xd800]
push eax
lea eax, [ecx + 0xb800]
push eax
call esi
mov ecx, dword [0x110a920]
lea ecx, [ecx + 0xb800]
call fcn.004025b4
push 0x400
push eax
mov eax, dword [0x110a920]
add eax, 0xe000
push eax
call esi
cmp ebx, dword [0x110991c]
jne 0x401c0c
mov ebx, dword [0x110a99c]
jmp 0x401c17
push 0
push ebx
call dword [0x10cf0d4]
mov ebx, eax
mov dword [0x10e1790], ebx
test ebx, ebx
jle 0x401d98
cmp dword [0x110a984], 0
mov eax, 0x8000
mov ecx, dword [0x10dfaf0]
mov esi, 0x200
cmovne esi, eax
mov edx, 0x10f73a0
cmp ebx, esi
cmovb esi, ebx
push esi
mov dword [esp + 0x14], esi
call fcn.00402894
test eax, eax
je 0x401e64
cmp dword [0x110a984], 0
jne 0x401cf8
push 7
pop ecx
mov esi, 0x10f73a0
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
test ecx, 0xfffffff0
jne 0x401d08
cmp dword [esp + 0x28], 0xdeadbeef
jne 0x401d08
cmp dword [esp + 0x34], 0x74736e49
jne 0x401d08
cmp dword [esp + 0x30], 0x74666f73
jne 0x401d08
cmp dword [esp + 0x2c], 0x6c6c754e
jne 0x401d08
mov edx, dword [esp + 0x18]
mov eax, dword [0x10e0f8c]
or edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [0x110a984], eax
mov eax, edx
and eax, 2
mov dword [esp + 0x18], edx
or dword [0x1109900], eax
cmp ecx, ebx
jg 0x401e6c
mov eax, edx
and al, 0xc
cmp al, 4
je 0x401d94
inc dword [esp + 0x14]
lea ebx, [ecx - 4]
mov esi, dword [esp + 0x10]
cmp esi, ebx
jbe 0x401d0c
mov esi, ebx
jmp 0x401d0c
test byte [esp + 0x18], 2
jne 0x401d0c
xor ecx, ecx
call fcn.00401ae2
jmp 0x401d0c
mov esi, dword [esp + 0x10]
cmp ebx, dword [0x10e1790]
jge 0x401d84
cmp dword [0x1108294], 0
mov ecx, esi
mov edx, 0x10f73a0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
jne 0x401d64
xor ecx, ecx
push 8
mov edx, ecx
pop edi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x401d33
mov dword [ecx*4 + 0x1108290], edx
inc ecx
cmp ecx, 0x100
jl 0x401d2e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
not ebp
test esi, esi
je 0x401d82
movzx eax, byte [edx]
xor eax, ebp
shr ebp, 8
movzx eax, al
xor ebp, dword [eax*4 + 0x1108290]
inc edx
sub ecx, 1
jne 0x401d6a
not ebp
add dword [0x10e0f8c], esi
sub ebx, esi
test ebx, ebx
jg 0x401c25
mov edi, dword [esp + 0x14]
xor ecx, ecx
inc ecx
call fcn.00401ae2
cmp dword [0x110a984], 0
je 0x401e6c
test edi, edi
je 0x401ddf
mov ecx, dword [0x10e0f8c]
call fcn.004020e5
mov ecx, dword [0x10dfaf0]
lea edx, [esp + 0x1c]
push 4
call fcn.00402894
test eax, eax
je 0x401e6c
cmp ebp, dword [esp + 0x1c]
jne 0x401e6c
push dword [esp + 0x38]
push 0x40
pop edi
push edi
call dword [0x10cf1d4]
mov ecx, dword [0x110a984]
mov esi, eax
lea ecx, [ecx + 0x1c]
call fcn.004020e5
push dword [esp + 0x38]
xor edx, edx
or ecx, 0xffffffff
push esi
call fcn.00401e84
cmp eax, dword [esp + 0x38]
jne 0x401e6c
test byte [esp + 0x24], 1
mov eax, dword [esi]
mov dword [0x110a990], esi
mov dword [0x110a980], eax
je 0x401e2c
inc dword [0x110a98c]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x401e32
push 1
push ecx
mov ecx, dword [esp + 0x28]
xor edx, edx
call fcn.004020f6
mov ecx, 0x110a940
mov dword [esi + 0x3c], eax
sub esi, ecx
mov al, byte [esi + ecx + 4]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x401e54
xor eax, eax
jmp 0x401e71
xor ecx, ecx
inc ecx
call fcn.00401ae2
mov eax, 0x10db1b8
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041408a
add esp, 0x34
ret