Function at 0x100513b0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101136a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
mov edi, dword [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], edi
test edi, edi
je 0x1005162c
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x1005140b
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x1005162c
mov ecx, dword [ebp + 0x18]
mov eax, 0x10
cmp ecx, eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
cmova ecx, eax
cmp dword [ebp + 0x1c], 0x10
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.10008600
add esp, 0x10
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10051451
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x1005146e
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10051468
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x1005147c
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.100160f0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x1005152b
nop dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x1005149d
mov eax, dword [edx]
cmp dword [esi + 0x14], 0x10
lea edi, [eax + ecx]
mov eax, esi
jb 0x100514aa
mov eax, dword [esi]
mov edx, dword [edi]
add eax, ecx
cmp dword [ebp + 0x28], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0xc6ef3720
jbe 0x10051517
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
nop word [eax + eax]
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 0x20]
xor ecx, eax
lea eax, [esi + edi]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub edx, ecx
sub dword [ebp - 0x2c], 1
jne 0x100514d0
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
add ecx, 8
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x40]
jl 0x10051490
mov edx, dword [esi + 0x10]
cmp edx, 8
jb 0x10051625
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x100515d5
test eax, eax
je 0x100515d5
cmp eax, 3
je 0x10051559
cmp eax, 2
jne 0x10051625
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10051563
mov ecx, dword [esi]
movsx edi, byte [ecx + edx - 1]
mov ecx, esi
jb 0x1005156e
mov ecx, dword [esi]
mov al, byte [ecx + edx - 1]
xor ecx, ecx
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x100515a4
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1005158a
mov eax, dword [esi]
sub eax, ecx
mov cl, byte [ebp - 0x21]
cmp byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x28]
jne 0x10051625
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jl 0x10051580
mov eax, edx
sub eax, edi
cmp eax, edx
ja 0x100515c2
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x100515b7
mov esi, dword [esi]
mov byte [esi + eax], 0
mov esi, 1
jmp 0x1005162e
push 0
sub eax, edx
mov ecx, esi
push eax
call fcn.100160f0
mov esi, 1
jmp 0x1005162e
lea edi, [edx - 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100515ea
mov eax, dword [esi]
sub eax, ecx
cmp byte [eax + edx - 1], 0
jne 0x100515fb
inc ecx
cmp ecx, 8
jl 0x100515e0
jmp 0x100515ff
mov edi, edx
sub edi, ecx
cmp edi, edx
ja 0x10051619
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x1005160e
mov esi, dword [esi]
mov byte [esi + edi], 0
mov esi, 1
jmp 0x1005162e
push 0
sub edi, edx
mov ecx, esi
push edi
call fcn.100160f0
mov esi, 1
jmp 0x1005162e
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1005165e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10051654
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005167d
push edx
push ecx
call fcn.10067a8e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret 0x28
call fcn.100e0d2e
int3