Function at 0x4d1d04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
cmp ecx, 0x10
jbe 0x4d1d22
mov ecx, 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 3]
movsx eax, dl
sub eax, 9
cmp eax, 0x17
ja case.0x4d1d33.16
jmp dword [eax*4 + 0x56d110]
test ecx, ecx
lea eax, [esi + 0x2116ecd0]
jne 0x4d1da2
mov dword [ebp - 0x3c], ecx
test ecx, ecx
mov edi, esi
je 0x4d1da0
cmp dl, 0x20
je 0x4d20ad
movsx eax, dl
sub eax, 0x11
sar eax, 1
je 0x4d202c
cmp eax, 1
je 0x4d2060
cmp eax, 2
jne 0x4d20b2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea esi, [eax + ecx*4 + 7]
mov eax, dword [esi]
rol edi, 5
add esi, 4
mov dword [esp], eax
call fcn.0044bfd0
sub eax, 0x35515311
xor edi, eax
dec dword [ebp - 0x3c]
jne 0x4d1d80
lea esi, [esi]
mov eax, edi
add esp, 0x50
pop esi
pop edi
pop ebp
ret
mov ecx, 0x3c5
mov dword [esp + 4], ecx
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_hashtabl.d
call fcn.00420a64
mov dword [ebp - 0x28], ecx
test ecx, ecx
mov edi, dword [ebp - 0x14]
je 0x4d1e10
shr dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 7]
lea esi, [esi]
movzx eax, byte [edx]
mov ecx, edi
not ecx
and ecx, 3
rol esi, 5
inc edi
sar eax, cl
and eax, 3
mov ecx, dword [eax*4 + 0x507f40]
xor eax, eax
xor esi, ecx
test edi, 3
sete al
add edx, eax
dec dword [ebp - 0x28]
jne 0x4d1de0
nop
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov edi, dword [ebp - 0x14]
je 0x4d1e10
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 7]
movzx eax, byte [edx]
mov ecx, edi
not ecx
and ecx, 1
rol esi, 5
inc edi
sar eax, cl
and eax, 0xf
mov ecx, dword [eax*4 + 0x507f40]
xor eax, eax
xor esi, ecx
test edi, 1
sete al
add edx, eax
dec dword [ebp - 0x2c]
jne 0x4d1e30
mov eax, esi
jmp 0x4d1e12
mov dword [ebp - 0x30], ecx
test ecx, ecx
mov edi, esi
je 0x4d1da0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea esi, [edx + ecx + 7]
lea esi, [esi]
movzx eax, byte [esi]
rol edi, 5
inc esi
mov dword [esp], eax
call fcn.00463d90
xor edi, eax
dec dword [ebp - 0x30]
jne 0x4d1e80
jmp 0x4d1da0
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov edi, esi
je 0x4d1da0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea esi, [edx + eax*2 + 7]
lea esi, [esi]
lea edi, [edi]
movzx eax, word [esi]
rol edi, 5
add esi, 2
mov dword [esp], eax
call fcn.00463d90
xor edi, eax
dec dword [ebp - 0x34]
jne 0x4d1ec0
jmp 0x4d1da0
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov edi, esi
je 0x4d1da0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
lea edx, [ecx + edx*4 + 7]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x44], eax
inc ecx
mov dword [ebp - 0x40], ecx
jmp 0x4d1f37
mov dword [ebp - 0xc], 0xf
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
add eax, 2
mov dword [esp + 4], eax
call fcn.004d20c0
rol edi, 5
xor edi, eax
dec dword [ebp - 0x18]
je 0x4d1da0
mov dword [ebp - 0xc], 0x10
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx]
add edx, 4
mov dword [ebp - 0x1c], edx
mov eax, esi
and eax, 7
cmp eax, 3
jne 0x4d1f10
cmp dword [ebp - 0x40], 0x10
mov eax, 1
jg 0x4d1f29
mov edx, fcn.004d20c0
mov eax, dword [esi + 1]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0xc]
mov dword [esp], ecx
call fcn.004d15dc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, 1
test eax, eax
jne 0x4d208c
mov eax, dword [ebp - 0x40]
and eax, 3
movzx ecx, byte [eax + 0x56cfe4]
mov eax, dword [ebp - 0x20]
rol eax, cl
xor eax, edx
jmp 0x4d1f29
mov dword [ebp - 0x24], ecx
test ecx, ecx
mov edi, dword [ebp - 0x14]
je 0x4d1e10
shr dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 7]
lea esi, [esi]
movzx eax, byte [edx]
mov ecx, edi
not ecx
and ecx, 7
rol esi, 5
inc edi
sar eax, cl
and eax, 1
mov eax, dword [eax*4 + 0x507f40]
xor esi, eax
xor eax, eax
test edi, 7
sete al
add edx, eax
dec dword [ebp - 0x24]
jne 0x4d1fc0
mov eax, esi
jmp 0x4d1e12
mov dword [ebp - 0x38], ecx
test ecx, ecx
mov edi, esi
je 0x4d1da0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea esi, [eax + ecx*4 + 7]
lea esi, [esi]
mov eax, dword [esi]
rol edi, 5
add esi, 4
mov dword [esp], eax
call fcn.00463d90
xor edi, eax
dec dword [ebp - 0x38]
jne 0x4d2010
jmp 0x4d1da0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea esi, [edx + ecx + 7]
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [esi]
rol edi, 5
inc esi
mov dword [esp], eax
call fcn.0044bfd0
sub eax, 0x35515311
xor edi, eax
dec dword [ebp - 0x3c]
jne 0x4d2040
jmp 0x4d1da0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea esi, [edx + eax*2 + 7]
movzx eax, word [esi]
rol edi, 5
add esi, 2
mov dword [esp], eax
call fcn.0044bfd0
sub eax, 0x35515311
xor edi, eax
dec dword [ebp - 0x3c]
jne 0x4d206a
jmp 0x4d1da0
mov eax, dword [esi - 3]
mov esi, fcn.004d20c0
mov dword [esp + 4], esi
mov edx, dword [ebp - 0x44]
mov dword [esp], edx
lea edx, [ebp - 0xc]
call fcn.004d15dc
mov edx, eax
jmp 0x4d1f8b
call fcn.0042a3f0
mov esi, 0x35e
mov dword [esp + 4], esi
jmp 0x4d1db9