Function at 0x1002d960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100fa00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10103fe8]
push edi
mov eax, dword [esi + 0x3ddc]
cmp eax, dword [esi + 0x3dd8]
je 0x1002dd04
mov edx, 2
mov ecx, esi
call fcn.1002a7e0
mov edi, dword [0x10103fe8]
call fcn.10033f00
cmp dword [edi + 0x3e14], 1
jle 0x1002d9be
nop dword [eax + eax]
call fcn.10032ff0
cmp dword [edi + 0x3e14], 1
jg 0x1002d9b0
mov eax, dword [esi + 0x8c]
lea ebx, [esi + 0x59e8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1002daad
lea edx, [esi + 0x59f8]
mov ecx, ebx
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1002d9f8
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1002d9e2
jmp 0x1002daad
test byte [esi + 0x5aa0], 0x20
je 0x1002da97
movaps xmm0, xmmword [0x100f2350]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x18], 0x4b015549
movaps xmm0, xmmword [0x100f2240]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x14], 0x1554942
movaps xmm0, xmmword [0x100f27e0]
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x10], 0x6d4e
movaps xmm0, xmmword [0x100f26d0]
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0xe], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x49
jb 0x1002da50
movss xmm0, dword [ebx + 8]
sub esp, 0x10
movzx eax, byte [ebx]
cvtps2pd xmm0, xmm0
mov byte [ebp - 0xe], 0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ebx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x57]
push eax
call fcn.1003ca90
mov ecx, dword [esi + 0x8c]
add esp, 0x18
jmp 0x1002da9a
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x10103fe8]
push ebx
mov eax, dword [eax + 0x47b4]
push dword [eax]
call ecx
add esp, 8
mov eax, dword [esi + 0x3e38]
mov byte [esi + 0x3de5], 0
test eax, eax
je 0x1002dace
cmp byte [eax + 0xa8], 0
jne 0x1002dace
mov byte [eax + 0xa6], 0
call fcn.10032ff0
mov eax, dword [0x10103fe8]
mov edi, eax
cmp dword [edi + 0x490c], 0
je 0x1002daed
call fcn.1003b250
mov eax, dword [0x10103fe8]
cmp dword [edi + 0x47b8], 0
je 0x1002db24
cmp byte [eax + 0x480d], 0
je 0x1002db24
cmp dword [eax + 0x4858], 0
jne 0x1002db24
cmp dword [eax + 0x48b0], 0
jne 0x1002db24
mov eax, dword [edi + 0x4810]
test al, 0xf
je 0x1002db24
test al, al
js 0x1002db24
call fcn.1003a6c0
mov al, byte [esi + 0x493c]
test al, al
je 0x1002dbaa
mov eax, dword [esi + 0x495c]
mov bl, byte [esi + 0x4982]
inc eax
cmp eax, dword [esi + 0x3dd8]
jge 0x1002db5f
test byte [esi + 0x4940], 0x20
jne 0x1002db5b
mov ecx, dword [esi + 0x4948]
call fcn.10033e90
test al, al
jne 0x1002db5f
mov al, 1
jmp 0x1002db61
xor al, al
test bl, bl
jne 0x1002db69
test al, al
je 0x1002db78
call fcn.1003b500
mov al, byte [esi + 0x493c]
test al, al
je 0x1002dbaa
mov eax, dword [esi + 0x4944]
cmp eax, dword [esi + 0x3dd8]
jge 0x1002dbaa
test byte [esi + 0x4940], 1
jne 0x1002dbaa
push 0x100f076c
mov byte [esi + 0x493d], 1
call fcn.10036930
add esp, 4
mov byte [esi + 0x493d], 0
mov eax, dword [esi + 0x3dd8]
mov byte [esi + 0x3de4], 0
mov dword [esi + 0x3ddc], eax
call fcn.1002b730
mov ecx, dword [esi + 0x3e0c]
lea ebx, [esi + 0x3e08]
test ecx, ecx
jns 0x1002dbea
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.1003d350
mov dword [ebx], 0
mov ecx, ebx
push dword [esi + 0x3df0]
call fcn.1003d350
mov ecx, dword [esi + 0x3df0]
xor edi, edi
test ecx, ecx
je 0x1002dc3d
nop dword [eax]
mov eax, dword [esi + 0x3df8]
mov edx, dword [eax + edi*4]
cmp byte [edx + 0xa6], 0
je 0x1002dc2b
test dword [edx + 8], 0x1000000
jne 0x1002dc32
mov ecx, ebx
call fcn.1002d090
mov ecx, dword [esi + 0x3df0]
inc edi
cmp edi, ecx
jne 0x1002dc10
mov eax, dword [ebx]
mov dword [esi + 0x3df0], eax
mov eax, dword [esi + 0x3df4]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x3df8]
mov dword [esi + 0x3df4], ecx
mov ecx, dword [ebx + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x3e2c]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x3df8], ecx
mov byte [eax + 0x10], 0
mov byte [esi + 0x3768], 0
mov dword [esi + 0xdd0], 0
mov dword [esi + 0xdcc], 0
mov ecx, dword [esi + 0x3774]
test ecx, ecx
jns 0x1002dcbf
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x3770]
call fcn.1003d8c0
xor edi, edi
mov dword [esi + 0x3770], 0
cmp dword [esi + 0x5a40], edi
jle 0x1002dd04
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x5a48]
add eax, ebx
cmp dword [eax + 4], 3
jne 0x1002dcf8
push eax
mov eax, dword [eax + 0xc]
push esi
call eax
add esp, 8
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x5a40]
jl 0x1002dce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068c51
mov esp, ebp
pop ebp
ret