Function at 0x45f630
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
xor eax, eax
movzx ecx, byte [eax + 0x489310]
mov byte [ecx + 0x49d360], al
inc eax
cmp eax, 0x40
jl 0x45f638
push ebx
push esi
push edi
push 0x10
mov esi, 0x49c320
pop ecx
xor eax, eax
mov edi, esi
and dword [ebp - 4], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x489070]
test eax, eax
je 0x45f6a8
movzx ecx, byte [0x489060]
push 0x1c
lea edi, [eax + ecx - 1]
pop ebx
mov eax, edi
cdq
idiv ebx
cmp edx, ecx
jge 0x45f686
sub edi, ebx
movzx eax, byte [edi + str.91__]
test eax, eax
jle 0x45f69f
dec eax
mov ecx, eax
and eax, 7
or ecx, 7
sub ecx, eax
inc ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x49c320], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jl 0x45f65f
push 8
push 8
push esi
push 0x499e80
call fcn.0045f945
add esp, 0x10
and dword [ebp - 4], 0
mov dword [ebp - 8], 0x49a680
push 0x10
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
push 0x10
lea edi, [ebp - 0x58]
pop ecx
rep stosd dword es:[edi], eax
movzx ecx, byte [eax + 0x489070]
test ecx, ecx
je 0x45f6f2
mov dl, al
inc dl
mov byte [ebp + ecx - 0x59], dl
inc eax
cmp eax, 0x40
jl 0x45f6df
xor edi, edi
movzx ecx, byte [edi + 0x489070]
test ecx, ecx
je 0x45f721
add ecx, dword [ebp - 4]
push 0x1c
pop ebx
mov eax, ecx
cdq
idiv ebx
cmp edx, dword [ebp - 4]
jg 0x45f717
sub ecx, ebx
mov al, byte [ebp + ecx - 0x58]
mov byte [edi + 0x49c320], al
inc edi
cmp edi, 0x40
jl 0x45f6fa
push 8
push 8
push esi
push dword [ebp - 8]
call fcn.0045f945
add dword [ebp - 8], 0x800
add esp, 0x10
inc dword [ebp - 4]
cmp dword [ebp - 8], 0x49b680
jl 0x45f6ce
mov ecx, 0x488ff8
mov edi, esi
dec ecx
dec ecx
xor edx, edx
cmp edx, 2
jge 0x45f75e
xor eax, eax
jmp 0x45f78a
movzx eax, byte [ecx + edx]
movzx eax, byte [eax + 0x488fb7]
cmp eax, 0x20
jle 0x45f773
sub eax, 0x20
jmp 0x45f778
test eax, eax
jle 0x45f78a
dec eax
test eax, eax
jle 0x45f78a
dec eax
mov ebx, eax
and eax, 7
or ebx, 7
sub ebx, eax
inc ebx
mov eax, ebx
push 8
mov byte [edi + edx], al
inc edx
pop ebx
cmp edx, ebx
jl 0x45f755
add ecx, 6
add edi, ebx
cmp ecx, 0x489026
jl 0x45f753
push ebx
push 4
push esi
push 0x49b720
call fcn.0045f945
mov edi, esi
add esp, 0x10
xor ecx, ecx
dec edi
movzx eax, byte [ecx + 0x4892d0]
movzx eax, byte [eax + 0x488fb7]
test eax, eax
jle 0x45f7d8
dec eax
mov edx, eax
and eax, 7
or edx, 7
sub edx, eax
inc edx
mov eax, edx
mov dl, cl
inc dl
inc ecx
cmp ecx, 0x40
mov byte [edi + eax], dl
jl 0x45f7b8
push ebx
push ebx
push esi
push 0x49bb20
call fcn.0045f945
add esp, 0x10
xor eax, eax
movzx ecx, byte [eax + 0x488ff8]
inc eax
mov cl, byte [ecx + 0x4892af]
cmp eax, 0x30
mov byte [eax + 0x49c31f], cl
jl 0x45f7f7
and dword [ebp - 4], 0
mov dword [ebp - 8], 0x499e60
mov ebx, 0x49cb60
xor esi, esi
mov eax, esi
push 8
sar eax, 2
mov edx, esi
pop ecx
and eax, 4
and edx, ecx
or eax, edx
mov edx, esi
sar eax, 1
and edx, 0x20
mov edi, esi
or eax, edx
mov edx, esi
and edx, 1
and edi, 2
shl edx, 3
or edx, edi
sar eax, 1
shl edx, 2
or eax, edx
mov edx, esi
and edx, 4
or eax, edx
mov edx, dword [ebp - 4]
movzx eax, byte [eax + edx + 0x4890b0]
mov edx, eax
mov edi, eax
sar edx, 2
and edx, 2
and edi, 4
or edx, edi
mov edi, eax
and edi, 1
and eax, 2
shl edi, 2
or edi, eax
xor eax, eax
sar edx, 1
shl edi, 1
or edx, edi
mov edi, 0x499e60
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, edx
mov ecx, edi
sar eax, cl
mov ecx, dword [ebp - 8]
and al, 1
mov byte [ecx + edi], al
inc edi
cmp edi, 4
jl 0x45f891
push 0x17
xor eax, eax
pop edx
mov ecx, edx
movzx edi, byte [ecx + 0x49c320]
add eax, eax
movzx edi, byte [edi + 0x499e5f]
or eax, edi
dec ecx
jns 0x45f8ac
mov byte [ebp - 0x10], al
mov ecx, 0xff3f3f3f
sar eax, 6
mov byte [ebp - 0xf], al
sar eax, 6
mov byte [ebp - 0xe], al
sar eax, 6
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x10]
and eax, ecx
shl eax, 2
mov dword [ebx - 0x800], eax
xor eax, eax
movzx edi, byte [edx + 0x49c338]
add eax, eax
movzx edi, byte [edi + 0x499e5f]
or eax, edi
dec edx
jns 0x45f8eb
mov byte [ebp - 0x18], al
sar eax, 6
mov byte [ebp - 0x17], al
sar eax, 6
mov byte [ebp - 0x16], al
sar eax, 6
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x18]
and eax, ecx
shl eax, 2
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x40
jl 0x45f822
add dword [ebp - 8], 4
add dword [ebp - 4], 0x40
cmp ebx, 0x49d360
jl 0x45f820
pop edi
pop esi
pop ebx
leave
ret