Function at 0x40c610
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x44]
jmp 0x40c633
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40c630
cmp edi, 0x20
je 0x40c630
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x10], ebx
xor edi, edi
mov ebx, 0xffffffff
jmp 0x40c675
mov edi, dword [esp + 8]
inc edi
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x10]
add ecx, edi
movzx edx, byte [esi + ecx - 1]
lea edi, [edx - 0x30]
cmp edi, 0xa
jb 0x40c670
mov edi, ebx
mov dword [esp + 0x24], edx
cmp edx, 0x2e
jne 0x40c69f
mov ebx, dword [esp + 8]
test edi, edi
js 0x40c670
mov dword [esp + 0x20], ecx
mov ebx, edi
test edi, edi
setns ch
mov edi, dword [esp + 8]
jns 0x40c6b2
mov ebx, edi
mov dword [esp + 0x18], ebx
xor edx, edx
mov dl, ch
mov ebx, edi
mov ecx, edx
sub ebx, edx
movzx edx, byte [esp + 7]
je 0x40c715
neg ecx
cmp ebx, 9
mov dword [esp + 0xc], ecx
jle 0x40c737
mov dword [esp + 0x14], ebx
lea edi, [ebx - 0xa]
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + esi]
movzx edx, byte [ebx + esi - 1]
cmp dl, 0x2e
jne 0x40c6f0
movzx edx, byte [ecx]
lea ecx, [ebx + ebp]
mov dword [esp], ecx
movsx edx, dl
lea ecx, [edx - 0x30]
test edi, edi
je 0x40c88d
mov ebx, ecx
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
jne 0x40c755
mov ch, byte [edi + 1]
add edi, 2
jmp 0x40c756
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40c723
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
fldz
fld st(0)
fchs
cmp dl, 0x2d
jne 0x40ca54
jmp 0x40ca5a
fldz
test ebx, ebx
jle 0x40c74e
mov edx, ecx
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + eax]
mov dword [esp], ecx
jmp 0x40c89d
fld st(0)
jmp 0x40c8e4
inc edi
mov dword [esp], edi
mov edi, ebx
or edi, 0xa
and edx, 0xa
imul edi, edx
and ebx, 0xfffffff5
xor edx, 0xa
imul edx, ebx
movsx ecx, ch
add edx, edi
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0x14]
cmp edx, 0xc
jl 0x40c88d
mov ebx, ecx
lea edi, [edx - 0xc]
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
mov dword [esp + 0x1c], edi
jne 0x40c79f
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40c7a0
inc edx
mov dword [esp], edx
mov edi, ebx
or edi, 0xa
mov edx, ebx
and edx, 0xa
imul edi, edx
and ebx, 0xfffffff5
xor edx, 0xa
imul edx, ebx
movsx ecx, ch
add edx, edi
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 0x1c], 0
je 0x40c88d
mov ebx, ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x40c7e2
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40c7e3
inc edx
mov dword [esp], edx
mov edi, ebx
or edi, 0xa
mov edx, ebx
and edx, 0xa
imul edi, edx
and ebx, 0xfffffff5
xor edx, 0xa
imul edx, ebx
movsx ecx, ch
add edx, edi
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0x14]
cmp edx, 0xe
jl 0x40c88d
mov ebx, ecx
add edx, 0xfffffff2
mov dword [esp + 0x14], edx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x40c82a
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40c82b
inc edx
mov dword [esp], edx
mov edi, ebx
or edi, 0xa
mov edx, ebx
and edx, 0xa
imul edi, edx
and ebx, 0xfffffff5
xor edx, 0xa
imul edx, ebx
movsx ecx, ch
add edx, edi
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 0x14], 0
je 0x40c88d
mov ebx, ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x40c869
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40c86a
inc edx
mov dword [esp], edx
mov edi, ebx
or edi, 0xa
mov edx, ebx
and edx, 0xa
imul edi, edx
and ebx, 0xfffffff5
xor edx, 0xa
imul edx, ebx
movsx ecx, ch
add edx, edi
add ecx, edx
add ecx, 0xffffffd0
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
add edx, edi
cmp edx, 9
jl 0x40c8a9
mov edx, 9
inc edx
xor edi, edi
jmp 0x40c8cb
mov ch, byte [ebx + 1]
add ebx, 2
mov dword [esp], ebx
lea edi, [edi + edi*4]
movsx ebx, ch
lea edi, [ebx + edi*2]
add edi, 0xffffffd0
dec edx
cmp edx, 1
jle 0x40c8d8
mov ebx, dword [esp]
mov ch, byte [ebx]
cmp ch, 0x2e
je 0x40c8b0
inc ebx
jmp 0x40c8b6
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
mov edi, dword [esp + 8]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x24]
or edx, 0x20
cmp edx, 0x65
mov ebx, dword [esp + 0x18]
jne 0x40c920
mov eax, dword [esp + 0x20]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
movzx ecx, byte [esp + 7]
je 0x40c933
mov ebx, dword [esp + 0x10]
add ebx, esi
mov eax, ebx
lea ebp, [ebx + edi]
jmp 0x40c93e
add eax, edi
add dword [esp + 0x10], eax
xor eax, eax
mov edx, dword [esp + 0xc]
movzx ecx, byte [esp + 7]
jmp 0x40c997
mov esi, dword [esp + 0x10]
add esi, ebp
mov eax, esi
lea ebp, [esi + edi]
mov ebx, edi
movzx ebx, byte [eax + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x40c980
xor eax, eax
mov esi, eax
and esi, 0xfffffff5
mov edi, eax
and edi, 0xa
or eax, 0xa
imul eax, edi
xor edi, 0xa
imul edi, esi
movsx esi, bl
add esi, eax
lea eax, [edi + esi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x40c950
cmp dl, 0x2d
mov dword [esp + 0x10], ebp
jne 0x40c98b
neg eax
mov edi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
add edx, edi
cmp edx, 0x10
jge 0x40c9a3
mov edx, 0xf
add ebx, eax
add ebx, edx
mov eax, ebx
mov ebp, dword [esp + 0xc]
sub eax, ebp
sub eax, edi
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x40c9e2
mov edx, 0x1ff
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x40c9da
mov dword [esi], 0x22
mov ebx, dword [esp + 0x10]
fldz
jmp 0x40c9f4
sub ebp, ebx
lea esi, [edi + ebp]
add esi, 0xf
fld1
test esi, esi
mov ebx, dword [esp + 0x10]
je 0x40ca29
fstp st(0)
fld1
mov esi, 0x44e718
mov edi, ebx
jmp 0x40ca20
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
mov ebx, edi
jb 0x40ca29
test dl, 1
je 0x40ca10
fmul qword [esi]
jmp 0x40ca10
fld st(1)
fmul st(1)
test eax, eax
jns 0x40ca3d
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40ca4b
mov dword [eax], ebx
fld st(0)
fchs
cmp cl, 0x2d
je 0x40ca5a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret