Function at 0x4975a0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
mov eax, dword [0x4ce724]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x110]
push edi
xor eax, eax
movzx ecx, byte [eax + 0x4cfcd8]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4cfc68], dl
setne cl
mov byte [esp + eax + 0xd4], cl
movzx ecx, byte [eax + 0x4cfcd9]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4cfc68], dl
setne cl
mov byte [esp + eax + 0xd5], cl
movzx ecx, byte [eax + 0x4cfcda]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4cfc68], dl
setne cl
mov byte [esp + eax + 0xd6], cl
movzx ecx, byte [eax + 0x4cfcdb]
mov edx, ecx
sar edx, 3
movzx edx, byte [edx + esi]
and ecx, 7
test byte [ecx*2 + 0x4cfc68], dl
setne cl
mov byte [esp + eax + 0xd7], cl
add eax, 4
cmp eax, 0x38
jl 0x4975c1
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x1e
jmp 0x497674
mov ecx, dword [esp + 0x10]
cmp word [esp + 0x118], 1
mov eax, dword [esp + 0x14]
je 0x497686
lea eax, [ecx + ecx]
movzx ebp, byte [ecx + 0x4cfd10]
lea ebx, [esp + eax*4 + 0x20]
lea eax, [esp + eax*4 + 0x1c]
mov dword [ebx], 0
mov dword [esp + 0x18], eax
mov dword [eax], 0
xor esi, esi
lea ecx, [ebp + 3]
lea eax, [ebp + 2]
lea ecx, [ecx]
lea edi, [ecx - 3]
cmp edi, 0x1c
jge 0x4976c1
mov dl, byte [esp + eax + 0xd2]
jmp 0x4976c8
mov dl, byte [esp + edi + 0xb8]
lea edi, [ecx - 2]
cmp edi, 0x1c
mov byte [esp + esi + 0x9c], dl
jge 0x4976e0
mov dl, byte [esp + eax + 0xd3]
jmp 0x4976e7
mov dl, byte [esp + edi + 0xb8]
cmp eax, 0x1c
mov byte [esp + esi + 0x9d], dl
jge 0x4976fc
mov dl, byte [esp + eax + 0xd4]
jmp 0x497703
mov dl, byte [esp + eax + 0xb8]
cmp ecx, 0x1c
mov byte [esp + esi + 0x9e], dl
jge 0x497718
mov dl, byte [esp + eax + 0xd5]
jmp 0x49771f
mov dl, byte [esp + ecx + 0xb8]
mov byte [esp + esi + 0x9f], dl
add esi, 4
add eax, 4
add ecx, 4
cmp esi, 0x1c
jl 0x4976b0
mov edi, 0x1c
lea edx, [ebp + 0x1f]
lea eax, [ebp + 0x1e]
lea ecx, [edx - 3]
cmp ecx, 0x38
jge 0x497754
mov cl, byte [esp + eax + 0xd2]
jmp 0x49775b
mov cl, byte [esp + ecx + 0xb8]
lea esi, [edx - 2]
cmp esi, 0x38
mov byte [esp + edi + 0x9c], cl
jge 0x497773
mov cl, byte [esp + eax + 0xd3]
jmp 0x49777a
mov cl, byte [esp + esi + 0xb8]
cmp eax, 0x38
mov byte [esp + edi + 0x9d], cl
jge 0x49778f
mov cl, byte [esp + eax + 0xd4]
jmp 0x497796
mov cl, byte [esp + eax + 0xb8]
cmp edx, 0x38
mov byte [esp + edi + 0x9e], cl
jge 0x4977ab
mov cl, byte [esp + eax + 0xd5]
jmp 0x4977b2
mov cl, byte [esp + edx + 0xb8]
mov byte [esp + edi + 0x9f], cl
add edi, 4
add eax, 4
add edx, 4
cmp edi, 0x38
jl 0x497743
xor eax, eax
lea ecx, [ecx]
movzx edx, byte [eax + 0x4cfd20]
cmp byte [esp + edx + 0x9c], 0
mov ecx, dword [esp + 0x18]
je 0x4977ee
mov edx, dword [eax*4 + 0x4cfc78]
or dword [ecx], edx
movzx edx, byte [eax + 0x4cfd38]
cmp byte [esp + edx + 0x9c], 0
je 0x497808
mov edx, dword [eax*4 + 0x4cfc78]
or dword [ebx], edx
movzx edx, byte [eax + 0x4cfd21]
cmp byte [esp + edx + 0x9c], 0
je 0x497822
mov edx, dword [eax*4 + 0x4cfc7c]
or dword [ecx], edx
movzx edx, byte [eax + 0x4cfd39]
cmp byte [esp + edx + 0x9c], 0
je 0x49783c
mov edx, dword [eax*4 + 0x4cfc7c]
or dword [ebx], edx
movzx edx, byte [eax + 0x4cfd22]
cmp byte [esp + edx + 0x9c], 0
je 0x497856
mov edx, dword [eax*4 + 0x4cfc80]
or dword [ecx], edx
movzx edx, byte [eax + 0x4cfd3a]
cmp byte [esp + edx + 0x9c], 0
je 0x497870
mov edx, dword [eax*4 + 0x4cfc80]
or dword [ebx], edx
movzx edx, byte [eax + 0x4cfd23]
cmp byte [esp + edx + 0x9c], 0
je 0x49788a
mov edx, dword [eax*4 + 0x4cfc84]
or dword [ecx], edx
movzx edx, byte [eax + 0x4cfd3b]
cmp byte [esp + edx + 0x9c], 0
je 0x4978a4
mov edx, dword [eax*4 + 0x4cfc84]
or dword [ebx], edx
movzx edx, byte [eax + 0x4cfd24]
cmp byte [esp + edx + 0x9c], 0
je 0x4978be
mov edx, dword [eax*4 + 0x4cfc88]
or dword [ecx], edx
movzx edx, byte [eax + 0x4cfd3c]
cmp byte [esp + edx + 0x9c], 0
je 0x4978d8
mov edx, dword [eax*4 + 0x4cfc88]
or dword [ebx], edx
movzx edx, byte [eax + 0x4cfd25]
cmp byte [esp + edx + 0x9c], 0
je 0x4978f2
mov edx, dword [eax*4 + 0x4cfc8c]
or dword [ecx], edx
movzx ecx, byte [eax + 0x4cfd3d]
cmp byte [esp + ecx + 0x9c], 0
je 0x49790c
mov edx, dword [eax*4 + 0x4cfc8c]
or dword [ebx], edx
add eax, 6
cmp eax, 0x18
jl 0x4977d0
mov eax, dword [esp + 0x14]
inc dword [esp + 0x10]
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x14], eax
jg 0x497670
lea ecx, [esp + 0x1c]
call fcn.00497360
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00467d4f
add esp, 0x100
ret