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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0358
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100cd4bc]
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 0x1004b35c
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x1004b13b
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x1004b35c
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.10008170
add esp, 0x10
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1004b181
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x1004b19e
mov dword [esi + 0x10], edi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x1004b198
mov eax, dword [esi]
mov byte [eax + edi], 0
jmp 0x1004b1ac
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10014260
xor ecx, ecx
mov dword [ebp - 0x28], ecx
test edi, edi
jle 0x1004b25b
nop dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, edx
cmp dword [edx + 0x14], 0x10
jb 0x1004b1cd
mov eax, dword [edx]
cmp dword [esi + 0x14], 0x10
lea edi, [eax + ecx]
mov eax, esi
jb 0x1004b1da
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 0x1004b247
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 0x1004b200
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 0x1004b1c0
mov edx, dword [esi + 0x10]
cmp edx, 8
jb 0x1004b355
mov eax, dword [ebp + 0x2c]
cmp eax, 1
je 0x1004b305
test eax, eax
je 0x1004b305
cmp eax, 3
je 0x1004b289
cmp eax, 2
jne 0x1004b355
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1004b293
mov ecx, dword [esi]
movsx edi, byte [ecx + edx - 1]
mov ecx, esi
jb 0x1004b29e
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 0x1004b2d4
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1004b2ba
mov eax, dword [esi]
sub eax, ecx
mov cl, byte [ebp - 0x21]
cmp byte [eax + edx - 1], cl
mov ecx, dword [ebp - 0x28]
jne 0x1004b355
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jl 0x1004b2b0
mov eax, edx
sub eax, edi
cmp eax, edx
ja 0x1004b2f2
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x1004b2e7
mov esi, dword [esi]
mov byte [esi + eax], 0
mov esi, 1
jmp 0x1004b35e
push 0
sub eax, edx
mov ecx, esi
push eax
call fcn.10014260
mov esi, 1
jmp 0x1004b35e
lea edi, [edx - 8]
xor ecx, ecx
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1004b31a
mov eax, dword [esi]
sub eax, ecx
cmp byte [eax + edx - 1], 0
jne 0x1004b32b
inc ecx
cmp ecx, 8
jl 0x1004b310
jmp 0x1004b32f
mov edi, edx
sub edi, ecx
cmp edi, edx
ja 0x1004b349
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x1004b33e
mov esi, dword [esi]
mov byte [esi + edi], 0
mov esi, 1
jmp 0x1004b35e
push 0
sub edi, edx
mov ecx, esi
push edi
call fcn.10014260
mov esi, 1
jmp 0x1004b35e
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1004b38e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004b384
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b3ad
push edx
push ecx
call fcn.100612ce
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.100612dc
mov esp, ebp
pop ebp
ret 0x28
call fcn.1006f8ee
int3