Function at 0x10029260
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 0x1016009d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x58
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 0x1f0], 0
mov esi, dword [ebx + 8]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
jne 0x100292df
push 0x4000
call fcn.10146843
add esp, 4
mov dword [edi + 0x1f0], eax
push 0x4000
call fcn.10146843
add esp, 4
mov dword [edi + 0x1f4], eax
push dword [ebx + 0xc]
mov ecx, edi
push dword [esi + 0x4c]
push dword [esi + 0x48]
push esi
call fcn.1000bb60
test eax, eax
je 0x100296b5
cmp dword [esi + 0x64], 0
jne 0x10029683
mov ecx, dword [esi + 0x48]
xor edx, edx
mov eax, dword [esi + 0x4c]
mov word [esi + 0x13c], dx
mov edx, dword [edi + 0x50]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
test edx, edx
jne 0x10029450
test eax, eax
jl 0x10029683
jg 0x10029336
test ecx, ecx
je 0x10029683
test eax, eax
ja 0x10029347
jb 0x10029342
cmp ecx, 0x4000
jae 0x10029347
mov dword [ebp - 0x44], eax
jmp 0x10029353
mov ecx, 0x4000
mov dword [ebp - 0x44], 0
push 1
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [edi + 0x1f0]
mov ecx, edi
call fcn.1000c630
push 0
test eax, eax
je 0x1002943b
push 0
push dword [ebp - 0x20]
mov ecx, edi
push dword [edi + 0x1f0]
call fcn.1000c020
test eax, eax
je 0x10029424
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov esi, dword [edi + 0x1f0]
movzx ecx, word [eax + 0x13c]
test edx, edx
je 0x100293c1
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
shr cx, 8
movzx eax, al
xor cx, word [eax*2 + 0x10170b08]
movzx ecx, cx
sub edx, 1
jne 0x100293a2
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov word [esi + 0x13c], cx
mov ecx, dword [ebp - 0x3c]
sub ecx, edx
mov dword [ebp - 0x3c], ecx
sbb eax, 0
add dword [esi + 0x50], edx
mov dword [ebp - 0x34], eax
adc dword [esi + 0x54], 0
cmp dword [edi + 0x480], 0
jne 0x1002940d
test eax, eax
jg 0x10029336
jl 0x10029683
test ecx, ecx
jne 0x10029334
lea eax, [ecx + 1]
jmp 0x100296b7
push 0
push dword [esi + 4]
lea ecx, [edi + 8]
push 0xa0000017
call fcn.1000baa0
jmp 0x100296b5
push 0
push dword [esi + 4]
lea ecx, [edi + 8]
push 0xa0000030
call fcn.1000baa0
jmp 0x100296b5
push dword [esi + 4]
lea ecx, [edi + 8]
push 0xa0000102
call fcn.1000baa0
jmp 0x100296b5
cmp edx, 0x25f
je 0x10029464
cmp edx, 0x25e
jne 0x100296b5
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0x101d3450
mov dword [ebp - 0x2c], 0x101d3448
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x3f4]
mov dword [ebp - 0x24], edi
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
cmp edx, 0x25f
jne 0x100294bf
mov edi, 7
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], edi
jmp 0x100294db
cmp edx, 0x25e
jne 0x100294d8
mov edi, 6
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x4c], edi
jmp 0x100294db
mov edi, dword [ebp - 0x4c]
push 0x7200
call fcn.101427a2
add esp, 4
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x7200
push 0
push esi
call fcn.10143f10
add esp, 0xc
mov ecx, esi
push 0
call fcn.1005fe60
xor eax, eax
mov dword [esi], vtable.CEncodeLzHuf.0
dec edi
mov dword [esi + 0x71f4], 0x10170b08
mov dword [esi + 0x71e8], 0
mov dword [esi + 0x71ec], 0
mov dword [esi + 0x4240], 0
mov dword [esi + 0x71f8], 0
mov dword [esi + 0x71fc], 0
mov word [esi + 0x71f0], ax
mov byte [ebp - 4], 1
cmp edi, 6
ja case.0x1002955f.1
jmp dword [edi*4 + 0x100296d8]
mov dword [esi + 0x28], 0x100000d
mov eax, 0x2000
jmp 0x1002958e
mov dword [esi + 0x28], 0x100000f
mov eax, 0x8000
jmp 0x1002958e
mov dword [esi + 0x28], 0x1000010
mov eax, 0x10000
cmp dword [esi + 0x71f8], 0
mov dword [esi + 0x3c], eax
lea eax, [eax*2 + 0x100]
mov dword [esi + 0x38], eax
jne case.0x1002955f.1
mov eax, dword [esi + 0x4240]
test eax, eax
je 0x100295bb
push eax
call fcn.10146720
add esp, 4
push 0x8000
mov dword [esi + 0x4240], 0
mov dword [esi + 0x4244], 0x8000
call fcn.10146843
add esp, 4
mov dword [esi + 0x4240], eax
test eax, eax
jne 0x10029621
nop word [eax + eax]
mov eax, 0xcccccccd
mul dword [esi + 0x4244]
shr edx, 3
lea eax, [edx + edx*8]
mov dword [esi + 0x4244], eax
cmp eax, 0x1000
jb 0x10029621
push eax
call fcn.10146843
add esp, 4
mov dword [esi + 0x4240], eax
test eax, eax
je 0x100295f0
push 0x40000
call fcn.10146843
add esp, 4
mov dword [esi + 0x71f8], eax
push 0x40000
call fcn.10146843
add esp, 4
mov dword [esi + 0x71fc], eax
push 0x20100
call fcn.10146843
add esp, 4
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call int.1006cc90
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], 0
mov word [eax + 0x13c], di
mov eax, 1
jmp 0x100296b7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8